Solved

HOw do connect Sql Server 2000 from client (VB.NET)

Posted on 2004-08-27
4
243 Views
Last Modified: 2013-12-25
i HAVE 2 PC(LAN, server 2003)
pc1-SQL2000 SERVER, net framework 1.1
pc2-ms Visual Studio .NET

      on PC2, I MAKE PROGRAME get data in sqlServer
      run ok, connect,make data OK

but can not run it on pc1 (and any PC on LAN),"error sqlconnection1.open()"
(copy ,MyApp.exe & dataset1.vb.dll from pc2 to pc1 and RUn here)


ConnectionString = "data source=POWER;initial catalog=Accountant;password=123456;persist security info=True;user id=UserAcc;packet size=4096"

0
Comment
Question by:LearnITvn
  • 2
4 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 11920853
Is your PC1 name is POWER?

Do you have firewalls?
0
 

Author Comment

by:LearnITvn
ID: 11927988
NO, I don't have firewalls
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 11927994
Is your PC1 name is POWER?
0
 
LVL 4

Accepted Solution

by:
VIkasumit earned 125 total points
ID: 11950695
Hi..

Please give the error message you get in your application...As there are lot of reason that you open statemetn gives an error. Also try adding the Computer's Network name of SQL server to data source like
Data source=pc1\POWER

Also, check the database permission and Network configuration but first let us knwo the name of computer and Error Message

VIkasumit
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now