Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

How do I connect to my Database?

$
0
0

I have created an application role within a SQL Server (2008 R2) that has a pipe name of:

\\.\pipe\sql\query

I am trying to connect to the SQL Database with the following credentials:

Server Name: ABC-SQL

Pipe Name: \\ABC-SQL \pipe\sql\query

Port = 1433

Application Role User Name: RDSKillAppRole

Application Role Password: D!ony5u501

I have tried various connection strings but none seem to work:

Dim connectionStringAsString = "Server=\\ABC-SQL.ABCInc.local\pipe\sql\query;Network Library = DBMSSOCN;User Id=RDSKillAppRole;Password=D!ony5u501;"

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)

Dim connectionStringAsString = "Server=ABC-SQL;Database=RDReset;User Id=RDSKillAppRole;Password=D!ony5u501;"

A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)

What connectionstring would I use to connect to this database with an application role ofRDSKillAppRole (user name) and D!ony5u501 (password) on theABC-SQLdefault instance(not a named instance).

Thanks again.

Alastair MacFarlane


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>