Advertisement

07.22.2008 at 01:14PM PDT, ID: 23586434 | Points: 500
[x]
Attachment Details

Connecting to SQL Server with a VB6 DLL with Windows Authentication

Asked by eross999 in SQL Server 2005, Microsoft Visual Basic.Net, Visual Studio .NET 2003

Tags: VB.net

Hi,

I am running a VB.net web service which connects to SQL Server while at the same time referencing a DLL created in VB6 that also attempts to connect to the same SQL Server (using a separate ADO connection).  For security reasons I need to use Windows integrated security on the SQL Server.

My .net connection string to connect is as follows:

"provider=sqloledb;Data Source=localhost;Initial Catalog=databasename;Integrated Security=SSPI;"

Everything works fine until I reach a point where I try to connect to the database with the VB6 DLL.  I have tried a various number of connection strings but usually get the "Data source name not found and no default driver specified" error.

Is it even possible to connect with the DLL using Windows authentication?  I am wondering if the DLL cannot properly pass the web service authentication to the database....Start Free Trial
[+][-]07.22.2008 at 06:08PM PDT, ID: 22065227

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 06:58AM PDT, ID: 22069340

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 07:37AM PDT, ID: 22069752

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 08:12AM PDT, ID: 22070121

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628