Solved

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

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

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 70

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Restricting text box entry from \/:?<>"| 9 86
vb6 connector to mongodb 2 82
Add and format columns in vb6 7 56
VB6 ListBox Question 4 42
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 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