SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Add text and current date to field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sqlobsessed
Starting Member

USA
8 Posts

Posted - 06/03/2012 :  12:15:13  Show Profile  Reply with Quote
how do I insert getdate () with the word help? Ive tried many ways that produce errors.

set column= 'help'

webfred
Flowing Fount of Yak Knowledge

Germany
8513 Posts

Posted - 06/03/2012 :  14:42:29  Show Profile  Visit webfred's Homepage  Reply with Quote
set column= 'help ' + convert(varchar(10),getdate(),101)



No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

webfred
Flowing Fount of Yak Knowledge

Germany
8513 Posts

Posted - 06/03/2012 :  14:43:50  Show Profile  Visit webfred's Homepage  Reply with Quote
see here for more information about converting: http://msdn.microsoft.com/en-us/library/ms187928.aspx


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

sqlobsessed
Starting Member

USA
8 Posts

Posted - 06/03/2012 :  15:03:54  Show Profile  Reply with Quote
thanks so much!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000