Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Format a DOS date as yyyymmdd Expand / Collapse
Author
Message
Posted Saturday, September 29, 2007 9:36 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, March 9, 2009 1:35 PM
Points: 60, Visits: 12
Comments posted to this topic are about the item Format a DOS date as yyyymmdd


Post #404571
Posted Wednesday, September 24, 2008 10:17 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, September 24, 2008 10:51 AM
Points: 1, Visits: 1
I couldn't get the osql command to work with the variable for the date.

Here's the osql cmd:
set var=%date%

osql.exe -U sa -P password -h-1 -s "," -n -i c:\paymentproductivityreport.sql -o c:\paymentproductivity_%var%.csv
Post #575374
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse