Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 3rd, 2004, 08:31 AM
Registered User
 
Join Date: Jun 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to okinokiyo
Default SQL Server connect to VB6

Dear all,

I got problem where I tried to connect my program using VB6 to SQL Server database where I put in other machine.
The problem is if I connect the program with the local database in SQL in my pc(local), it works but error occurs if I connect it to the other machine.
This is the link I made to connect it if the database in my pc.
Provider=MSDataShape.1;Data Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=databasename;Data Source=local
It seems to work.
my question is that the same link if I want to connect it with the database put in the other machine?This is the error I got :
"Test Connection failed because of an error in initializing provider.Login failed for user 'admin'.Reason:Not associated with a trusted SQL Server connection."
Plz help..

Reply With Quote
  #2 (permalink)  
Old June 3rd, 2004, 08:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

You might want to take a look at this URL, this would help you in a way.
http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=32960

_________________________
-Vijay G
Strive for Perfection
Reply With Quote
  #3 (permalink)  
Old June 6th, 2004, 05:52 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Romania.
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think you are trying to connect using "windows authentication". fpr this to work, the user curently logged on the machine where the client app runs, has to be able to connect to the sql server instance on the machine it tryies to connect to, and also to have the right to connect to the specified database.

a quick colution would be to add the "admin" user (that cannot login) to the machine running sql server, with the same password as the one on the client machine.
Reply With Quote
  #4 (permalink)  
Old June 7th, 2004, 11:30 AM
Registered User
 
Join Date: Jun 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Okinokiyo,

It appears to me the admin account you are using is local to the machine.

If the machines are in the same domain. Please check out your using a domain account and not a local machine account

Regards,

Jago
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect SQL Server 2000 with VB6 sanjna000 SQL Server 2000 1 May 8th, 2006 02:01 PM
Connect SQL Server 2000 table with VB6 sanjna000 Access 1 May 2nd, 2006 06:28 AM
Cannot Connect to SQL Server JoshCBR28 BOOK: Beginning ASP 3.0 2 October 25th, 2005 10:27 AM
Cannot connect to SQL server tsimsha SQL Server ASP 1 July 22nd, 2005 07:21 AM
[000] Unable to connect to server 'SERVER\SQL'; SQ ctanchan SQL Server 2000 1 August 15th, 2003 07:18 AM



All times are GMT -4. The time now is 03:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.