tsql - Problem connecting to SQL Server 2005 named instance -


I have a script that connects SQL Server 2005 to the name using the OSQL. But the script throws the following errors:

  [SQ Native Client] Named Pipes Provider: Can not open connection to SQL Server [53]. [SQL Native Client] Login timeout expired [SQL Native Client] An error has occurred while establishing connections on the server. When connecting to SQL Server 2005, this failure may arise from the fact that under default settings, SQL Server does not allow remote connections.  

The connection part of the script is shown below:

  osql -E -S & lt; Servername & gt; \ & Lt; Name_instance & gt; -i D: \ script \ script1.sql -o D: \ scripts \ script1.txt  

My question is what is the reason for this error and what is the possible resolution?

The -S parameter specifies the example. Your example '\' shows you need something to change:

  osql -e -s localhost \ myInstance -i D: \ scripts \ script1.sql -o D: \ You must also verify that your client and server agree on configuration (transport, designated pipes, TCP / IPs), transport, script, scripts \ script1.txt  

Are ...


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -