Solved

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

Posted on 2004-08-27
4
242 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

23 Experts available now in Live!

Get 1:1 Help Now