sqlcmd error RRS feed

  • 問題

  • I would like to use sqlcmd to backup. My code as the below:
    sqlcmd -S.\SQLExpress -Q"BACKUP DATABASE test  TO DISK = 'C:/sqlbackup/auto/test.dat'"

    But it prompt a error message as the below:
    HResult 0xFFFFFFFF, Level 16, State 1
    SQL Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].

    How can I solve it?
    2009年9月8日 上午 03:40