call multiple .sql files through single Batch file

  • In my sqlserver project so many .sql files in different folders Like

    C:\username\EtlcontrolDB\scrip1.sql.........script10.sql C:\username\configuration\scrip1.sql.........script10.sql C:\username\Think...........................

    My client requirement is , above folders contained sql files execution through single batch script. and sql filenames and filepath input geting from .txt file and also C:\username this one will be different for each user,remains path is similor to all users, also i want to execute some folders fully and some folders specific sql files only

    Please any one share ideas about this requirement..... Thaks for advance...

  • .CMD files with for loops and execute sql script by using sqlcmd, or more current and more powerfull PowerShell.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply