1

Using VB6, SQL Server 2000

I want to connect to others system database.

Code:

ConnectionString = "Provider=SQLOLEDB.1;" & _
                                "Persist Security Info=False; " & _
                                "User ID=" & SQL_Username & "; Password = " & SQL_Password & "; " & _
                                "Initial Catalog=" tmp_table1 ";" & _
                                "Data Source=" & SQL_ServerAddress

Values

SQL_ServerAddress = 192.11.12.11\SQLEXPRESS
SQL_Username = sa
SQL_Password = sa

Unable to connect to others system database

How to get a database from the other system?

1
  • What do you mean by "unable to connect"? Is that the error message you get? Commented Oct 12, 2009 at 8:19

1 Answer 1

5

You have configured Sql Express to accept remote connections haven't you? Networking protocols are disabled by default in Sql Express and you have to enable them to remotely access the database. You'll need to configure Sql Express to accept remote connections

Sign up to request clarification or add additional context in comments.

1 Comment

yep, 90% of times, this is the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.