PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average.

Converting from SqlClient to OleDb

 
 
Bob Bedell
Guest
Posts: n/a
 
      17th Jul 2003
Hello,

I converted an ASP web app connected to the SQLClient
namespace to connect to the OleDb namespace. I'm
connecting to a local .mdb file. The only change I made to
the app was importing OleDb vs. SQLClient. The SQL Server
version works great. The Access version gives me the
following error:

"Operation must use an updateable query".

Occurs when using the Update method of the
OleDbDataAdapter. Both the SQL Server and Access apps are
using the Customers table in their respective versions of
the Northwind database.

Any thoughts????

Thanks,

Bob
 
Reply With Quote
 
 
 
 
Bob Bedell
Guest
Posts: n/a
 
      17th Jul 2003
I don't follow. The Customers table on which the
supposedly non-updateable recordset is based has a primary
key defined. It's just the Northwind database. T^he same
table structure works fine with the SQL Server version of
the app.

-------Original Message-----
>It looks like the OleDb version for Access does not have
>its primary key defined.
>
>Tu-Thach
>
>>-----Original Message-----
>>Hello,
>>
>>I converted an ASP web app connected to the SQLClient
>>namespace to connect to the OleDb namespace. I'm
>>connecting to a local .mdb file. The only change I made

>to
>>the app was importing OleDb vs. SQLClient. The SQL

Server
>>version works great. The Access version gives me the
>>following error:
>>
>>"Operation must use an updateable query".
>>
>>Occurs when using the Update method of the
>>OleDbDataAdapter. Both the SQL Server and Access apps

are
>>using the Customers table in their respective versions

of
>>the Northwind database.
>>
>>Any thoughts????
>>
>>Thanks,
>>
>>Bob
>>.
>>

>.
>

 
Reply With Quote
 
Tu-Thach
Guest
Posts: n/a
 
      17th Jul 2003
Do you have the code for you OleDbDataAdapter? If you
post the part where you create the adapter and update it,
that would help.

Tu-Thach

>-----Original Message-----
>I don't follow. The Customers table on which the
>supposedly non-updateable recordset is based has a

primary
>key defined. It's just the Northwind database. T^he same
>table structure works fine with the SQL Server version of
>the app.
>
>-------Original Message-----
>>It looks like the OleDb version for Access does not have
>>its primary key defined.
>>
>>Tu-Thach
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Intermittent (random) timeouts using OLEDB and SQLCLIENT nizmow Microsoft ADO .NET 0 5th Sep 2007 01:45 AM
SqlClient vs. OleDb MissingSchemaAction performance erpo kekkuli Microsoft ADO .NET 0 12th Oct 2006 08:00 PM
What is the difference between sqlClient and OleDb ?.. Hyo-Han Kim Microsoft ADO .NET 2 16th Jul 2004 02:02 PM
SqlClient and OleDb Emmanuel Gravino Microsoft ADO .NET 5 31st Jul 2003 12:06 PM
difference between SQLclient class and Oledb client Yangtsi River Microsoft ASP .NET 0 2nd Jul 2003 06:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:40 AM.