Connect to MS SQL Server 2000 database remotely

Hi Experts,

   I have a program that is written in vb6 with MS SQL Server 2000 database but I can only connect locally with the connection string below. Is there anyone here knows what is needed below to make it connect remotely?

Thanks,

Marj
cString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=" & DatabaseCatalog & ";Data Source=" & SQLSERVERNAME

Open in new window

barman78Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
SStoryCommented:
SQL ServerName would either need to be set to a UNC
\\servername\sqlservername

or an

IP

SQL would need to be configured to allow TCP/IP connections.
Integrated security means you would need to be able to authenticate on the remote windows machine that hosts SQL Server as well.

Do you control the SQL Server or is it hosted?
0
 
barman78Author Commented:
The SQL Server is in the host.

THanks
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
barman78Author Commented:
What do you mean by SQL ServerName would either need to be set to a UNC?
0
 
barman78Author Commented:
      But I am using MS SQL Server 2000. What I want to know is if there's anything to add to this connection string "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Proprrtydb ;Data Source=MARJ;" to be able to connect remotely or connect to host ms sql server database?

       The MS SQL Server instance is running at the host.
0
 
jogosCommented:
This worked for me

Provider=SQLOLEDB.1;Initial Catalog=xxxxx;Data Source=XXXXXXX
User Id=xxxxx;Password=xxxxxxxx

Maybe you should try if it works with a named user (connection OK -> try integrated)
0
 
Anthony PerkinsCommented:
If the server name is MARJ than what is the error you get?
0
 
SStoryConnect With a Mentor Commented:
the last part of the connection string you supplied say,
";Data Source=" & SQLSERVERNAME"
0
 
jogosCommented:
I think valuable comments are given by SStory and myself.
0
 
SStoryCommented:
I agree
0
All Courses

From novice to tech pro — start learning today.