Home Forums SQL Server 2005 SQL Server 2005 General Discussion Get date last modified for file RE: Get date last modified for file
thedaver79
Valued Member
Points: 63
More actions
September 24, 2009 at 3:26 pm
#1058292
If you want to store the date of vidhya sagar query into a variable you would run this code.
DECLARE @DateInserted DATETIME
SET @DateInserted = CONVERT(DATETIME, (SELECT TOP(1) SUBSTRING(mdate,1,20) FROM ##tmp))
Thanks for all your help