Named Pipes Provider: Could not open a connection to SQL Server [2].

  • Hi All,

    i am run the sqlcmd the following erros is came how to slove...........like.......

    SET @SQLCmd ='sqlcmd -d SMS -q "set nocount on;Select * From TEMP_AH_PRE_REQUEST_DETAILS where nrequestid='+CAST(@nRequestid AS VARCHAR(100)) +'" -o"' + @FilePath + '" -W -s "' + '#' + '" -h -1'

    EXEC master..xp_cmdshell @SQLCmd

    here i am export the data in text file but

    the text file comes these error

    HResult 0x2, Level 16, State 1

    Named Pipes Provider: Could not open a connection to SQL Server [2].

    Sqlcmd: Error: Microsoft SQL Native Client : 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..

    Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.

  • Did you verify that the Named Pipes provider is enabled using the SQL Server Surface Area Configuration manager?

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply