ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Now VBScript function SQL Server equivalent?

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> SQL Programming (MS SQL Server, MS Access, MySQL)
View previous topic :: View next topic  
Author Message
tammi



Joined: 22 Oct 2004
Posts: 3

PostPosted: Tue Nov 23, 2004 9:35 am    Post subject: Now VBScript function SQL Server equivalent? Reply with quote

Hi,

I'm looking for a SQL Server function which returns date and time in the same way as the VBScript/ASP Now() function. Does SQL Server has a similar function?



Thanks,

Tammi
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Tue Nov 23, 2004 1:22 pm    Post subject: Reply with quote

Hi Tammi,

Yes, T-SQL (the SQL Server version of SQL standard language) has a function called GETDATE(), which does exactly what the Now() VBScript function does Smile.



Cheers,
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> SQL Programming (MS SQL Server, MS Access, MySQL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial