Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-04-14 : 09:38:29
|
| berwin writes "Hello , I wanna ask something about date/time data type. I got some string data type from my program that need to be put in the table in sqlserver 2000 which is a date/time data type.i need help to know how to do it , thanx u for the help " |
|
|
X002548
Not Just a Number
15586 Posts |
Posted - 2003-04-14 : 10:41:10
|
| ummmm, in a sproc? How about something like:CREATE Procedure MyProc @strVariable varchar(255)asIf IsDate(@strVariable) = 1 BEGININSERT INTO Mytable (col1) VALUES (Convert(datettime,@strVariable))ENDGoBrett8-) |
 |
|
|
|
|
|