🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5970

Challenging ADO Connection Problem to SQL6.5

#5970
From: Rob Clawson
Date: Wed, 06 Dec 2000 17:57
38 lines
2519 bytes
I have sort of a unique situation here, I have written an ISAPI DLL using
BCB 5 Ent./SP1 w/ informal ADO patch 14080, MDAC 2.6, SQL Server 6.5, and
IIS 4 on NT Server 4 SP6a.

My DLL connects fine to a SQL Server development DB within my own subnet -
Network A (e.g., Network Neighborhood), but I have trouble connecting to our
production machine.  Our production DB machine has 2 networks cards,
straddling 2 networks (Network A and Network B).  In that machine's setup,
it is a member of the Network B domain.

I wrote a small test app to test the ADO connection and read data from the
DB.  I can run this on my web machine on Network A and pull in data with no
problems.

However, when my DLL tries to connect to the DB (using the EXACT same
connection string as my test app), the Web server comes back with this
error:

Internal Server Error 500
----------------------------------------------------------------------------
----
Exception: EOleException
Message: Login failed- User: _ Reason: Not defined as a valid user of a
trusted SQL Server connection

I am using a specific username and password in my connection string.

I am wondering if the problem is that the web server is run as a service,
which is what is running my DLL.  And this is the application that is trying
to connect to the DB machine residing (essentially) in another domain.

Does any of this make sense to anyone?  I'm not really that familiar with
this aspect of NT or SQL server security issues.  Do I need to make changes
to SQL Server or Windows security?

Any help would be greatly appreciated.  Thanks,

Rob Clawson
Technical Details
Message-ID: <3a2e7e28$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeed00.sul.t-online.de!t-online.de!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!199.217.14.228

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,84dde83a0724be45,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2000-12-06 10:01:36 PST
From: "Rob Clawson" <rclawson@agweb.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Challenging ADO Connection Problem to SQL6.5
Date: Wed, 6 Dec 2000 11:57:17 -0600
Lines: 41
Organization: AgWeb.com
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 199.217.14.228
Message-ID: <3a2e7e28$1_2@dnews>
X-Trace: 6 Dec 2000 09:58:00 -0800, 199.217.14.228
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeed00.sul.t-online.de!t-online.de!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!199.217.14.228