Networker

[Networker] nsrsqlsv command does not work using xp_cmdshell

2009-02-16 08:36:17
Subject: [Networker] nsrsqlsv command does not work using xp_cmdshell
From: Lhot <networker-forum AT BACKUPCENTRAL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 16 Feb 2009 07:34:21 -0500
Hi All,

I have a nsrsqlsv command that works if I run it via command shell but does not 
work if I run the same command and syntax via xp_cmdshell in SQL.

Here is the command:  
C&#58;\Progra~1\Legato\nsr\bin\nsrsqlsv.exe -s networker_server_name -b Default 
-N DB_Full "DB_Name" -a "Virtual_Server_Name" -v

The command above works if I run it via command shell... but if I run the below 
command from Query editor,  I get the error described after:

xp_cmdshell 'C&#58;\Progra~1\Legato\nsr\bin\nsrsqlsv.exe -s 
networker_server_name -b Default -N DB_Full "DB_Name" -a "Virtual_Server_Name" 
-v'

ERROR:
43708&#58;nsrsqlsv&#58;Start time&#58; Mon Feb 16 07&#58;24&#58;03 2009
43621&#58;nsrsqlsv&#58;Computer Name&#58; Virtual_Server_Name&nbsp; &nbsp; 
&nbsp;User Name&#58; some_user
29085&#58;nsrsqlsv&#58;Microsoft SQL Server Provider error&#58;
38006&#58;nsrsqlsv&#58;Named Pipes Provider&#58; Could not open a connection to 
SQL Server &#91;2&#93;. .
38006&#58;nsrsqlsv&#58;An error has occurred while establishing a connection to 
the server. When connecting to SQL Server 2005, this failure may be caused by 
the fact that under the default settings SQL Server does not allow remote 
connections..
38006&#58;nsrsqlsv&#58;Login timeout expired.
37955&#58;nsrsqlsv&#58;
Cannot login to SQL Server null.
43709&#58;nsrsqlsv&#58;Stop time&#58; Mon Feb 16 07&#58;24&#58;15 2009
NULL
NULL

Any ideas, dear experts?

Thanks!
Lhot

+----------------------------------------------------------------------
|This was sent by lhotgalisteo AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>
  • [Networker] nsrsqlsv command does not work using xp_cmdshell, Lhot <=