Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specify Port in Connection String??

Status
Not open for further replies.

NoCoolHandle

Programmer
Apr 10, 2003
2,321
US
I am trying to connect to SQL Server from a ADO Client and need to specify a Port for the connection.

I am using a non standard port and don't want to have to run the SQLClient tool on every PC that connects or build a DSN..

Any clues (my guess is I need to use the "Network Library" argument in the connection string, but I am finding it hard to get documentation.



Rob
 
Got it...

Provider=sqloledb;
Network Library=DBMSSOCN;Server=xxx.xxx.xxx.xxx,8946

The DBMSSOCN = tcpip and the ,8946 specifies the port that SQL is waiting on.. (port 8946)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top