Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Exact steps to setup a SQLOLEDB connection using a browser

Posted on 2007-11-13
2
Medium Priority
?
865 Views
Last Modified: 2008-02-01
I have an ASP web application that I have created using an Access database, but I recently upgraded to SQL Server and imported the data using Enterprise Manager.  Now, however, I cannot seem to get past the following error:

*******
Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user 'JTLAPTOP\jt'.
*******

My connection string is
CONST strDataSourceName="Provider=sqloledb;Data Source=JTLAPTOP,1433;Initial Catalog=myDB;User ID=JTLAPTOP\JT;Password=xxxxxxxx;"

Here are some other setups I have:
1) LOCAL SQL Server registration--Mixed Mode with the System account as the "Startup Service Account."
2) Added JTLAPTOP\JT as a User to my "myDB" database through Enterprise Manager and given full access to the tables.
3) I have given access through IIS to the IUSR_JTLAPTOP account.  Lastly, I have added the "myDB" database to the ODBC "System DSN" as a SQL Server database (although I'm not sure I need to do this).

I'm stuck.  What exactly do I need to do from start to finish (from after creating the database and some tables to ) to get even the simplest ASP page I have setup to test the connection (a "hello world" test)--or just to get this thing up and running?
0
Comment
Question by:saturation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
imitchie earned 2000 total points
ID: 20277856
change to

CONST strDataSourceName="Provider=sqloledb;Data Source=JTLAPTOP,1433;Initial Catalog=myDB;Integrated Security=SSPI"
0
 

Author Comment

by:saturation
ID: 20279391
I tried that, but now logging in is timed out by IIS.  
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

636 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