Click here to Skip to main content
15,924,367 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server text column question Pin
PIEBALDconsult19-Dec-06 9:28
mvePIEBALDconsult19-Dec-06 9:28 
GeneralRe: SQL Server text column question Pin
Marcus Spitzmiller19-Dec-06 9:35
Marcus Spitzmiller19-Dec-06 9:35 
GeneralRe: SQL Server text column question Pin
Eric Dahlvang20-Dec-06 3:51
Eric Dahlvang20-Dec-06 3:51 
GeneralRe: SQL Server text column question Pin
Marcus Spitzmiller20-Dec-06 5:25
Marcus Spitzmiller20-Dec-06 5:25 
AnswerRe: SQL Server text column question Pin
Michael Potter20-Dec-06 10:26
Michael Potter20-Dec-06 10:26 
GeneralRe: SQL Server text column question Pin
Marcus Spitzmiller20-Dec-06 12:12
Marcus Spitzmiller20-Dec-06 12:12 
QuestionQuestions about various DB connection methods Pin
Jay Legue19-Dec-06 8:26
Jay Legue19-Dec-06 8:26 
QuestionHow do I format this... Pin
Steven J Jowett19-Dec-06 4:43
Steven J Jowett19-Dec-06 4:43 
I have a stored procedure that can select data from several tables/views. One two of the parameters are DateTime fields. The SQL code is as follows :-

EXEC(N'SELECT * FROM ' + @objectName + ' WHERE DepotId = ' + @DepotId + ' AND [TIME] >= ' + @StartTime + ' AND [TIME] <= ' + @FinishTime + ' AND Intake = ' + @Intake + ';')

I am getting a error regarding the time parameters. I need to know how to format these for the where clause to work.

I have tried enclosing in double-quotes e.g. [TIME] <= "' + @StartTime + '" AND ...

I have also tried enclosiing hashes e.g. [TIME] <= #' + @StartTime + '# AND ...

neither works, please help

Steve Jowett

AnswerRe: How do I format this... Pin
Steven J Jowett19-Dec-06 5:38
Steven J Jowett19-Dec-06 5:38 
QuestionUser defined function within another User Defined function Pin
VK-Cadec19-Dec-06 3:41
VK-Cadec19-Dec-06 3:41 
AnswerRe: User defined function within another User Defined function Pin
Colin Angus Mackay19-Dec-06 4:21
Colin Angus Mackay19-Dec-06 4:21 
GeneralRe: User defined function within another User Defined function Pin
VK-Cadec19-Dec-06 5:35
VK-Cadec19-Dec-06 5:35 
AnswerRe: User defined function within another User Defined function Pin
ednrgc20-Dec-06 6:29
ednrgc20-Dec-06 6:29 
Questionlink the foxpro(.dbf) table with mssql Pin
Guru_yogi19-Dec-06 0:41
Guru_yogi19-Dec-06 0:41 
Questionaccessing sql server 2000 databse in LAN Pin
abhijitw18-Dec-06 23:40
abhijitw18-Dec-06 23:40 
AnswerRe: accessing sql server 2000 databse in LAN Pin
Colin Angus Mackay19-Dec-06 0:21
Colin Angus Mackay19-Dec-06 0:21 
GeneralRe: accessing sql server 2000 databse in LAN Pin
abhijitw19-Dec-06 17:48
abhijitw19-Dec-06 17:48 
GeneralRe: accessing sql server 2000 databse in LAN Pin
Paul Conrad19-Dec-06 19:15
professionalPaul Conrad19-Dec-06 19:15 
GeneralRe: accessing sql server 2000 databse in LAN Pin
AmirAlilou8-Jan-07 0:03
AmirAlilou8-Jan-07 0:03 
QuestionHOw can I link foxpro tables from MS SQL Server 2000 Pin
Guru_yogi18-Dec-06 19:59
Guru_yogi18-Dec-06 19:59 
AnswerRe: HOw can I link foxpro tables from MS SQL Server 2000 Pin
Steven J Jowett19-Dec-06 5:26
Steven J Jowett19-Dec-06 5:26 
GeneralRe: HOw can I link foxpro tables from MS SQL Server 2000 Pin
Guru_yogi19-Dec-06 18:48
Guru_yogi19-Dec-06 18:48 
QuestionIndexes on views Pin
karam chandrabose18-Dec-06 18:15
karam chandrabose18-Dec-06 18:15 
AnswerRe: Indexes on views Pin
Pete O'Hanlon19-Dec-06 0:30
mvePete O'Hanlon19-Dec-06 0:30 
QuestionUPDATE Query Error Pin
Expert Coming18-Dec-06 14:15
Expert Coming18-Dec-06 14:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.