473,513 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please help with connection string problem

I am converting an ASP app to ASP.net. I need to run the old asp app on my
desktop in the process. I downloaded the files from the web server and set
my connection string as follows

strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=c:\database\USITracking.mdb;"

I am unable to connect to the database on my machine. What am I doing
wrong?
Nov 18 '05 #1
3 1205
Which type of connection are you making? Make sure that you are using the
OleDb libraries and not the SqlClient libraries as the SqlClient ones are
only for SQL Server. Also, make sure that the IUSR and ASPnet user accounts
have enough permissions to access the db.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"William Gower" <w_*****@hotmail.com> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...
I am converting an ASP app to ASP.net. I need to run the old asp app on my desktop in the process. I downloaded the files from the web server and set my connection string as follows

strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=c:\database\USITracking.mdb;"

I am unable to connect to the database on my machine. What am I doing
wrong?

Nov 18 '05 #2
Explain what you mean by "I am unable to connect to the database." What code
are you running? What behavior are you seeing?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"William Gower" <w_*****@hotmail.com> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...
I am converting an ASP app to ASP.net. I need to run the old asp app on my desktop in the process. I downloaded the files from the web server and set my connection string as follows

strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=c:\database\USITracking.mdb;"

I am unable to connect to the database on my machine. What am I doing
wrong?

Nov 18 '05 #3
In addition, if you are using C#, make sure that you have escaped the \ characters in your connection string.

ie: strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\database\\USITracking.mdb;"

or

strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\database\USITracking.mdb;"
Which type of connection are you making? Make sure that you are using
the OleDb libraries and not the SqlClient libraries as the SqlClient
ones are only for SQL Server. Also, make sure that the IUSR and ASPnet
user accounts have enough permissions to access the db.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"William Gower" <w_*****@hotmail.com> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...
I am converting an ASP app to ASP.net. I need to run the old asp app
on

my
desktop in the process. I downloaded the files from the web server
and

set
my connection string as follows

strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=c:\database\USITracking.mdb;"
I am unable to connect to the database on my machine. What am I
doing wrong?

--

--
Matt Berther
http://www.mattberther.com
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2583
by: kaiwing18 | last post by:
Hi , I have a problem relate to java and database. Could anyone answer me ?Please see the following code. import java.sql.*; public class Result { public static void main(String args) {
12
1461
by: Bill | last post by:
When I compile the following code fragment, the compiler errors saying the variable connection is not initialized. As I understand C#, I thought it would be initialized. Please help me and explain...
2
2206
by: Raghu Raman | last post by:
Hi, * I used sql server7.0 with sqlserver authentcation.Now we are migrated to sqlserver2000. We are using windows2000. we go into the sqlserver2000 by windows authentication. I tried to...
1
9587
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
2213
by: cephal0n | last post by:
I have this peroblem thats really bugging me for days, please have a patience to read it and help me find the probplem because I knew I missed it and just cant tell where. I have a table named...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5089
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.