Click here to Skip to main content
15,913,773 members
Home / Discussions / Database
   

Database

 
GeneralRe: ADO.NET -> OleDb -> data adapter / parmeters question Pin
VenkatFor.NET20-Jun-04 10:16
VenkatFor.NET20-Jun-04 10:16 
GeneralRe: ADO.NET -> OleDb -> data adapter / parmeters question Pin
Vinay9220-Jun-04 16:41
Vinay9220-Jun-04 16:41 
GeneralComboBox Pin
viviansm18-Jun-04 20:42
viviansm18-Jun-04 20:42 
GeneralRe: ComboBox Pin
Karthikeyan Muthurajan20-Jun-04 18:59
Karthikeyan Muthurajan20-Jun-04 18:59 
GeneralStrange strings in SQL statement Pin
tnook18-Jun-04 7:55
tnook18-Jun-04 7:55 
GeneralRe: Strange strings in SQL statement Pin
Steven Campbell18-Jun-04 8:53
Steven Campbell18-Jun-04 8:53 
GeneralRe: Strange strings in SQL statement Pin
tnook18-Jun-04 9:18
tnook18-Jun-04 9:18 
GeneralRe: Strange strings in SQL statement Pin
Steven Campbell18-Jun-04 11:30
Steven Campbell18-Jun-04 11:30 
Sorry, don't have time for a full explanation. Its in the Help.

Basic idea is that instead of quoting the dates, you would put a placeholder there instead, like "... BETWEEN @P1 and @P2". Then you can create and add parameters to your command. When you do it this way, it has the benefit of strong-typing your parameters, which avoids nasty surprises like the one you are getting, as well as sneaky SQL-Injection attacks.

It sounds more complex than it is...

GeneralRe: Strange strings in SQL statement Pin
Michael Potter18-Jun-04 11:56
Michael Potter18-Jun-04 11:56 
GeneralRe: Strange strings in SQL statement Pin
mlsteeves18-Jun-04 14:50
mlsteeves18-Jun-04 14:50 
GeneralRe: Strange strings in SQL statement Pin
Grimolfr28-Jun-04 8:56
Grimolfr28-Jun-04 8:56 
Generalcalculating averaqe time from varchar datatype Pin
Jesse Evans18-Jun-04 6:33
Jesse Evans18-Jun-04 6:33 
GeneralRe: calculating averaqe time from varchar datatype Pin
Colin Angus Mackay18-Jun-04 13:34
Colin Angus Mackay18-Jun-04 13:34 
GeneralRe: calculating averaqe time from varchar datatype Pin
syed saba19-Jun-04 5:19
syed saba19-Jun-04 5:19 
GeneralMS Access as front-end and back-end Pin
winpiglet18-Jun-04 0:07
winpiglet18-Jun-04 0:07 
GeneralRe: MS Access as front-end and back-end Pin
Hesham Amin19-Jun-04 4:36
Hesham Amin19-Jun-04 4:36 
GeneralTruly automate your database development Pin
bradonf17-Jun-04 6:32
bradonf17-Jun-04 6:32 
GeneralWhich design is best Pin
suzyb17-Jun-04 2:16
suzyb17-Jun-04 2:16 
GeneralRe: Which design is best Pin
VenkatFor.NET17-Jun-04 3:53
VenkatFor.NET17-Jun-04 3:53 
Generalprimary keys in MS SQL Pin
Anonymous17-Jun-04 2:11
Anonymous17-Jun-04 2:11 
GeneralRe: primary keys in MS SQL Pin
RichardGrimmer17-Jun-04 3:38
RichardGrimmer17-Jun-04 3:38 
GeneralRe: primary keys in MS SQL Pin
VenkatFor.NET17-Jun-04 4:31
VenkatFor.NET17-Jun-04 4:31 
GeneralRe: primary keys in MS SQL Pin
VenkatFor.NET17-Jun-04 4:33
VenkatFor.NET17-Jun-04 4:33 
GeneralRe: primary keys in MS SQL Pin
Grimolfr28-Jun-04 9:03
Grimolfr28-Jun-04 9:03 
QuestionRunning SQL commands in a batch-file? Pin
matthias s.17-Jun-04 1:30
matthias s.17-Jun-04 1:30 

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.