Click to See Complete Forum and Search --> : I need SQL Query Help


senthilnathan19
01-31-2007, 09:43 AM
Sir,

We are try to insert query like this

Insert into Table_1 (smDate,Description) Values ('Thu, Feb 15, 2007 03:00 PM', ' Hai, It's Just for Testing')

This is Exact Query about this...

We know about MS ACCESS it has Built in function like Format('Thu, Feb 15, 2007 03:00 PM','mm/dd/yyyy HH:MM')

But I am new to SQL. I dont know the The Date Format built in function in SQL Server.

How can i Insert this Quesry to SQL Table

and also How can insert "it's " this type of words into SQL..

Can you help me

this is very helpful for my project

Thanks With Regards

S.Senthil Nathan

russell
01-31-2007, 10:48 AM
check datetime and smalldatetime in Books OnLine for the various acceptable date/time formats.

escape single-quotes by doubling them up

It's becomes It''s <---- 2 single-quotes, not 1 double-quote