View Single Post
  #10 (permalink)  
Old 12-12-2008, 12:53
rachel rachel is offline
new member
 
Join Date: Dec 2008
Posts: 8
Default

try this..

Myconnection.ConnectionString = "Network Library=DBMSSOCN;" & _
"Data Source=xxx.xxx.xxx.xxx,1433;" & _
"Initial Catalog=myDatabaseName;" & _
"User ID=myUsername;" & _
"Pas sword=myPassword"
Where:
- "Network Library=DBMSSOCN" tells SqlConnection to use TCP/IP
- xxx.xxx.xxx.xxx is an IP address.
- 1433 is the default port number for SQL Server.
Reply With Quote