Click here to Skip to main content
15,910,603 members
Home / Discussions / Database
   

Database

 
GeneralRe: Truncation of an input string Pin
Michael Potter23-Jan-07 4:29
Michael Potter23-Jan-07 4:29 
QuestionFull text indexing is sql server 2000 Pin
Uma Kameswari22-Jan-07 1:40
Uma Kameswari22-Jan-07 1:40 
AnswerRe: Full text indexing is sql server 2000 Pin
Paddy Boyd23-Jan-07 1:16
Paddy Boyd23-Jan-07 1:16 
QuestionProcedure problem Pin
KETAN K.21-Jan-07 22:10
KETAN K.21-Jan-07 22:10 
AnswerRe: Procedure problem Pin
Mark J. Miller22-Jan-07 2:56
Mark J. Miller22-Jan-07 2:56 
QuestionProcedure problem Pin
KETAN K.21-Jan-07 22:02
KETAN K.21-Jan-07 22:02 
AnswerRe: Procedure problem Pin
Pete O'Hanlon21-Jan-07 22:39
mvePete O'Hanlon21-Jan-07 22:39 
QuestionDateTime error Pin
DanB198321-Jan-07 8:50
DanB198321-Jan-07 8:50 
I am getting a weird datetime error trying to insert a System.DateTime into a database.

The code i have used is:

cmd.Parameters.Add("@DOB", SqlDbType.DateTime).Value = DOB.Date.ToShortDateString();

where the string returned is 24/11/1972 and also used the format 11/24/1972.

I have also created an SlqDateTime and passed in my System.DateTime object to the constructor then used this code

cmd.Parameters.Add("@DOB", SqlDbType.DateTime).Value = sqlDate;

But every time i catch this exception.

"Conversion failed when converting datetime from character string."


I am pretty confident this is a school boy error so any help would be much appreciated.

Cheers

Dan
AnswerRe: DateTime error Pin
Jon Sagara21-Jan-07 14:57
Jon Sagara21-Jan-07 14:57 
QuestionRetrieving VARCHAR out of MSSQL with ADO Pin
FreeCastle21-Jan-07 6:57
FreeCastle21-Jan-07 6:57 
AnswerRe: Retrieving VARCHAR out of MSSQL with ADO Pin
liur1721-Jan-07 21:55
liur1721-Jan-07 21:55 
GeneralRe: Retrieving VARCHAR out of MSSQL with ADO Pin
FreeCastle22-Jan-07 10:46
FreeCastle22-Jan-07 10:46 
GeneralRe: Retrieving VARCHAR out of MSSQL with ADO Pin
liur1722-Jan-07 22:07
liur1722-Jan-07 22:07 
GeneralRe: Retrieving VARCHAR out of MSSQL with ADO Pin
FreeCastle24-Jan-07 5:16
FreeCastle24-Jan-07 5:16 
QuestionParameters Problem Pin
DanB198321-Jan-07 6:26
DanB198321-Jan-07 6:26 
AnswerRe: Parameters Problem Pin
DanB198321-Jan-07 8:06
DanB198321-Jan-07 8:06 
QuestionHelp required in stored procedures Pin
www.Developerof.NET21-Jan-07 3:52
www.Developerof.NET21-Jan-07 3:52 
AnswerRe: Help required in stored procedures Pin
M.H.1.2.321-Jan-07 5:33
M.H.1.2.321-Jan-07 5:33 
QuestionInform app of changes in database content Pin
zt.Prog21-Jan-07 2:34
zt.Prog21-Jan-07 2:34 
AnswerRe: Inform app of changes in database content Pin
andyharman22-Jan-07 2:15
professionalandyharman22-Jan-07 2:15 
QuestionSqlTriggerContext? Pin
zt.Prog21-Jan-07 1:45
zt.Prog21-Jan-07 1:45 
Questionhow to select all field names of a table?? Pin
Saira Tanwir20-Jan-07 23:18
Saira Tanwir20-Jan-07 23:18 
AnswerRe: how to select all field names of a table?? Pin
Bassam Saoud21-Jan-07 2:04
Bassam Saoud21-Jan-07 2:04 
AnswerRe: how to select all field names of a table?? Pin
Venkat_Bobbili22-Jan-07 21:34
Venkat_Bobbili22-Jan-07 21:34 
AnswerRe: how to select all field names of a table?? Pin
PIEBALDconsult25-Jan-07 10:09
mvePIEBALDconsult25-Jan-07 10:09 

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.