Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 3rd, 2004, 08:31 AM
Registered User
 
Join Date: Jun 2004
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..

 
Old June 3rd, 2004, 08:42 AM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old June 6th, 2004, 05:52 AM
Authorized User
 
Join Date: Jun 2003
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.
 
Old June 7th, 2004, 11:30 AM
Registered User
 
Join Date: Jun 2004
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.