[Show all top banners]

U?Me
Replies to this thread:

More by U?Me
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 SQL cast convert?
[VIEWED 2661 TIMES]
SAVE! for ease of future access.
Posted on 06-11-08 3:08 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hi all,
I have a field of data type text. I have to insert current datetime stamp with the comment 'Automated Notice Sent' in that field. How do I do that?

Thanks in advance
 
Posted on 06-11-08 3:15 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

INSERT INTO TABLENAME (FIELDNAME)

VALUES ('Automated Notice Sent @ '+ CONVERT(VARCHAR(10),GETDATE(),101))

Last edited: 11-Jun-08 03:26 PM

 
Posted on 06-11-08 3:28 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Rawbee,
Thanks a bunch:) works like a charm. woohoo !!! YOU ROCK
P.S. For others, I needed time stamp too, so I just did
CONVERT(VARCHAR(10),GETDATE(),100))


 
Posted on 06-11-08 3:36 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

COOL.....U R Welcome. U?Me
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 30 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
Toilet paper or water?
Tourist Visa - Seeking Suggestions and Guidance
Are Nepalese cheapstakes?
wanna be ruled by stupid or an Idiot ?
MAGA denaturalization proposal!!
How to Retrieve a Copy of Domestic Violence Complaint???
Nepali Psycho
advanced parole
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters