Question Locked

Connect To MSSQL remote server using VB 6.0

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How to connect to mssql remote server using VB 6.0? I really need help.

3 replies

by sikandermandal

By Clicking
1. Start > All Programs > Microsoft SQL Server 2005 > Configuration Tools> Surface Area Configuration
2. Select Surface area Configuration for Sercies and Connections

3. Click Root Sql Express > Database Engine > Remote Connection . Select Local and Remote Connection and then Using both TCPIP and NamedPipes
Click OK/Apply

-------------------------------------------

4. Start > All Programs > Microsoft SQL Server 2005 > Configuration Tools >
SQL Server Configuration Manager

Goto Protocol for SQlExpress
Select TCP/P on right pane
Select IPAddress tab
in IPAll Group Set the value for TCP Dynamics Ports = 1433 or whatever you like to set

Connection String="server=000.000.000.000\InstanceName;
Uid=username;pwd=password;database=databasename"

make sure that SQL Server and SQL Browser is running.

This discussion is closed to new replies.