Using GetDate Function in an SQL Statement

posted by Scudyen date: Thursday, May 22, 2008 category: ASP

 

This function is very useful, if you wish to get date of current SQL server date and time. You may use this function to fill some rows automatically with current time or using with DateDiff function to return the number between current time.

<% set cn = server.createobject("adodb.connection")

cn.open "Provider=SQLOLEDB;Server=localhost;User ID=SA;Password=;Database=newsTable;"

set rc = cn.execute("select getDate")

response.write rc(0)

%>

Read More

Custom Search



Gazatem Technologies Active News Manager


page counter

Listed with 411asp.net Listed with 4aspin.com