473,587 Members | 2,490 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=Micro soft.Jet.OLEDB. 4.0; Data
Source=c:\datab ase\USITracking .mdb;"

I am unable to connect to the database on my machine. What am I doing
wrong?
Nov 18 '05 #1
3 1213
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_*****@hotmai l.com> wrote in message
news:uY******** ******@TK2MSFTN GP09.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=Micro soft.Jet.OLEDB. 4.0; Data
Source=c:\datab ase\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_*****@hotmai l.com> wrote in message
news:uY******** ******@TK2MSFTN GP09.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=Micro soft.Jet.OLEDB. 4.0; Data
Source=c:\datab ase\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=Micro soft.Jet.OLEDB. 4.0;Data Source=c:\\data base\\USITracki ng.mdb;"

or

strConn = @"Provider=Micr osoft.Jet.OLEDB .4.0;Data Source=c:\datab ase\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_*****@hotmai l.com> wrote in message
news:uY******** ******@TK2MSFTN GP09.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=Micro soft.Jet.OLEDB. 4.0; Data
Source=c:\datab ase\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
2591
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
1471
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 what I am missing Bil static void Main(string args SqlConnection connection try // to open the connection to the database connection=new...
2
2209
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 develop an application in vb.net by having the connection string from the oledbconnection object which is dragged from the toolbox.I copied that...
1
9613
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the...
2
2218
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 tblProuctSummary and it has the 6 fields: ItemID - for unique key BuyerA - for those who made the buying BuyerB - for another buyer Manufacturer -for...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8221
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6629
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5395
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1192
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.