Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Posts
    55

    Unanswered: Question on getting the date value into a filename

    I am running the following sqllitespeed backup script on Windows 2003 Server
    against SQL Server 2000



    sqllitespeed -Bdatabase -T -DNorthwind -FH:\MicrosoftSQLServer\BACKUPS\DATABACKUPS\NorthWi nd\northwind.bak


    How could I place the date variable into the output filename?

    I've tried variations of %date% etc but nada.

    Any thoughts?

    Thanks in advance.

    Gerry

  2. #2
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    how do you executye this? Command line?, xp_cmdshell?
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  3. #3
    Join Date
    Mar 2004
    Posts
    55
    It would be in a script run by an external controller.
    A batch file.

  4. #4
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    OK, batch file

    I would use T-SQL to create said batch fiile, and as a matter of fact I would have a sql server job lauch said batch file
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •