473,503 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OleDB for MS Access - Help!

I am working on a project that is giving me trouble. It
has to be done quickly. It is being written in C# and I
am totally new to C#.

I need to update an MS Access database application that
was created by a third party developer that is no longer
in business. In other words there is no one there I can
turn to for help.

My first set of code gave me every indication of having
updated the data table successfully -- even returning a 1
to show that one row was updated. But when I went to the
table to verify, no changes had taken place.

I assumed that this was security related -- that "whoever"
the system thinks the program *is* does not have rights to
make the change.

So I tried to add security parameters to the connection
string. But then I got the error message: "could not find
an installable ISAM".

A net search convinced me that maybe my syntax was wrong,
so I tried to build a connection string by letting Win
2000 do it (create file.udl, left click, select
properties:provider,select MS Provider for ODBC
services...). The result of using this new cs was the
same message.

I am stuck. Do I have a version problem with my OleDB
drivers? Is my syntax still wrong?

Here is the system-built connection string with uid/pw
removed:

Provider=MSDASQL.1;Password=xxxxxxxx;Persist Security
Info=True;User ID=xxxxxxx;Extended Properties="DSN=Access
Files;DBQ=I:\IMS\Data\ImsData.mdb;DefaultDir=I:\IM S\Data;Dr
iver=odbcjt32.dll;DriverId=281;FIL=MS
Access;MaxBufferSize=2048;PageTimeout=5;PWD=xxxx;U ID=admin;
"

Note: I removed the outer level server login arguments in
the version I inserted into the app, because the final
connection string is used on the server itself and does
not need it. The Access uid and pw were retained.

Thank you

Dave Martin
NASSCO
Nov 15 '05 #1
1 1832
"Dave Martin" <dm******@nassco.com> wrote in message news:<02****************************@phx.gbl>...
I am working on a project that is giving me trouble. It I would use ADO.net. Make sure you have MDAC loaded on the box.
has to be done quickly. It is being written in C# and I
am totally new to C#.

I need to update an MS Access database application that
was created by a third party developer that is no longer
in business. In other words there is no one there I can
turn to for help.

My first set of code gave me every indication of having
updated the data table successfully -- even returning a 1
to show that one row was updated. But when I went to the
table to verify, no changes had taken place.

I assumed that this was security related -- that "whoever"
the system thinks the program *is* does not have rights to
make the change.

So I tried to add security parameters to the connection
string. But then I got the error message: "could not find
an installable ISAM".

A net search convinced me that maybe my syntax was wrong,
so I tried to build a connection string by letting Win
2000 do it (create file.udl, left click, select
properties:provider,select MS Provider for ODBC
services...). The result of using this new cs was the
same message.

I am stuck. Do I have a version problem with my OleDB
drivers? Is my syntax still wrong?

Here is the system-built connection string with uid/pw
removed:

Provider=MSDASQL.1;Password=xxxxxxxx;Persist Security
Info=True;User ID=xxxxxxx;Extended Properties="DSN=Access
Files;DBQ=I:\IMS\Data\ImsData.mdb;DefaultDir=I:\IM S\Data;Dr
iver=odbcjt32.dll;DriverId=281;FIL=MS
Access;MaxBufferSize=2048;PageTimeout=5;PWD=xxxx;U ID=admin;
"

Note: I removed the outer level server login arguments in
the version I inserted into the app, because the final
connection string is used on the server itself and does
not need it. The Access uid and pw were retained.

Thank you

Dave Martin
NASSCO

Nov 15 '05 #2

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

Similar topics

14
3384
by: | last post by:
Hi, I was performing SQL UPDATE queries and I notice that they SUCCEED on the ExecuteNonQuery() call with NO exceptions raised BUT they fail at the Database. They say they succeed in the code...
2
23874
by: Joe | last post by:
Hi All, I am new to using the Access DB and I need some help if someone is able to give it to me. What I want to do is get the names of the columns of certain tables. Not the data in the table...
4
2148
by: [Yosi] | last post by:
I working with Excel file by using the OLEDB components such : OleDbConnection ,OleDbCommand. I successfuly read/update the Excel table. The problem is how can I change the color of spicific...
4
3056
by: Will Pittenger | last post by:
I have a project where the backend is Access. I have learned (slowly) to use OLEDB to access my data. However, to save changes, I need to generate a SQL statement. This seems clunky. I am used...
3
8890
by: Giuseppe D'Elia | last post by:
Hi there, I got a problem using an MS Access database through ASP.NET. After updating my system from .NET Framework 1.0 to 1.1, my existing application gives me the following error when...
3
8814
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I...
2
2840
by: Martin | last post by:
Hi, I currently have an application that connects to an MS ACCESS database. This application uses an OLEDB connection string for MS ACCESS. Now, I'd like to upsize the application so I converted...
3
2492
by: bfprog | last post by:
Using IBM iSeries client access OLEDB provider to connect to DB2 on AS/400, but cannot create connection using .NET web app. Using following code: Dim cnTest As New...
1
5387
by: Joe | last post by:
Hello All, I am trying to insert a record in the MS Access DB and for some reason I cannot get rid of error message, System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. ...
0
1152
by: Randy | last post by:
Hi,all I met a strange problem, I connected to access database using oledb connection, connection string like "Provider=Microsoft.Jet.OLEDB.4.0; Data...
0
7202
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
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
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,...
0
7458
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...
1
5013
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
4672
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
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
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 ...
0
380
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.