Click here to Skip to main content
15,929,795 members
Home / Discussions / Database
   

Database

 
GeneralRe: i need query Pin
Colin Angus Mackay21-Aug-07 0:02
Colin Angus Mackay21-Aug-07 0:02 
GeneralRe: i need query Pin
Colin Angus Mackay20-Aug-07 23:34
Colin Angus Mackay20-Aug-07 23:34 
AnswerRe: i need query Pin
Nouman Bhatti21-Aug-07 20:58
Nouman Bhatti21-Aug-07 20:58 
AnswerRe: i need query Pin
T.EDY21-Aug-07 22:24
T.EDY21-Aug-07 22:24 
GeneralRe: i need query Pin
Colin Angus Mackay22-Aug-07 4:50
Colin Angus Mackay22-Aug-07 4:50 
QuestionUpdate and to_date question Pin
Programm3r20-Aug-07 21:28
Programm3r20-Aug-07 21:28 
AnswerRe: Update and to_date question Pin
Chris Meech21-Aug-07 4:24
Chris Meech21-Aug-07 4:24 
QuestionDateTime syntax help Pin
Branislav Vidovic20-Aug-07 14:23
Branislav Vidovic20-Aug-07 14:23 
Hello guys..
Looks like I just need a litle help on my SQL syntax in C#.NET
I have a field in my database which is DateTime type. Looks like I can't get the syntax right for comparing the value from the textBox with the field in database.
Now what I have looks like:
<br />
DateTime ShDate = DateTime.Parse(txtDate.Text);<br />
cmd1.CommandText = "SELECT ShipedDate FROM Details WHERE Details.ShipedDate = #ShDate#";<br />

When I fill dataset with the adapter which has this SelectCommand it will report error in date in the syntax expresion. Now the variable ShDate has a DateTime type in C# and it stores a date from the textbox with a help of conversion and it is in a correct format(I cheked while debuging).
I think the problem is somewhere here = #ShDate#. I bet I am missing some quotation marks ("") or single quote('').
So does any one have a clue?
Thanks..
AnswerRe: DateTime syntax help Pin
Senu Gandhi20-Aug-07 18:01
Senu Gandhi20-Aug-07 18:01 
AnswerRe: DateTime syntax help Pin
edukulla21-Aug-07 20:07
edukulla21-Aug-07 20:07 
AnswerRe: DateTime syntax help Pin
edukulla21-Aug-07 20:46
edukulla21-Aug-07 20:46 
QuestionDatabase Question Pin
dhbaer20-Aug-07 3:48
dhbaer20-Aug-07 3:48 
AnswerRe: Database Question Pin
martin_hughes20-Aug-07 5:12
martin_hughes20-Aug-07 5:12 
GeneralRe: Database Question Pin
dhbaer20-Aug-07 5:21
dhbaer20-Aug-07 5:21 
QuestionSeployment the Windows Application Pin
Thaer Hamael20-Aug-07 3:32
Thaer Hamael20-Aug-07 3:32 
AnswerRe: Seployment the Windows Application Pin
Rami Said Abd Alhalim20-Aug-07 4:40
Rami Said Abd Alhalim20-Aug-07 4:40 
Questionhow can delete data without drop relation ship between tables??? Pin
Rami Said Abd Alhalim20-Aug-07 3:08
Rami Said Abd Alhalim20-Aug-07 3:08 
AnswerRe: how can delete data without drop relation ship between tables??? Pin
kubben20-Aug-07 3:50
kubben20-Aug-07 3:50 
GeneralRe: how can delete data without drop relation ship between tables??? Pin
Rami Said Abd Alhalim20-Aug-07 4:19
Rami Said Abd Alhalim20-Aug-07 4:19 
GeneralRe: how can delete data without drop relation ship between tables??? Pin
kubben20-Aug-07 4:23
kubben20-Aug-07 4:23 
AnswerRe: how can delete data without drop relation ship between tables??? Pin
divyesh143220-Aug-07 3:52
divyesh143220-Aug-07 3:52 
QuestionStored Proc help Pin
tthellebuyck20-Aug-07 2:40
tthellebuyck20-Aug-07 2:40 
AnswerRe: Stored Proc help Pin
andyharman20-Aug-07 3:30
professionalandyharman20-Aug-07 3:30 
AnswerRe: Stored Proc help [modified] Pin
John-ph20-Aug-07 4:12
John-ph20-Aug-07 4:12 
QuestionInvalid Column Name Pin
divyesh143220-Aug-07 2:24
divyesh143220-Aug-07 2:24 

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.