SQLCMD not executing correctly when using a batch file
Posted on 2013-05-10
I'm trying to backup a small SQL database using task scheduler in Windows 7. When I run the SQL command that I have created in the command prompt, it runs successfully. If I try and run that same command in a batch file, the command just executes over and over in the command prompt until you cancel it. What am I missing? I am using SQL Server Express 2008.