Why isn't the backup file created when running sqlcmd from remote machine?
Posted
by
Ed Gl
on Server Fault
See other posts from Server Fault
or by Ed Gl
Published on 2010-12-27T18:29:59Z
Indexed on
2010/12/27
18:55 UTC
Read the original article
Hit count: 266
I tried running the sqlcmd from a remote host to do a simple backup of a sql 2008 database. The command goes something like this:
sqlcmd -s xxx.xxx.xxx.xx -U username -P some_password -Q "Backup database [db] to \
disk = 'c:\test_backup.bak' with format"
I get a succesfull message but the file isn't created.
When I run this on the sql manager on the same machine, it works. I thought it was permission problems, but I'm using the same username in both cases.
Any thoughts?
© Server Fault or respective owner