Re: VS 2003 & SQL 2005 Data Adapter Error
- From: "Dave Griffiths" <daveginorge@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 07 Aug 2006 08:53:08 -0500
Hi Cor
Your last reply has just got me thinking this may be a permissions
problem on the SQL 2005. I have just loaded it and wanted to start to
develop against it rather than SQL2000. The only difference was that
sql2k was on the 2k3 sever and sql2k5 is on my local machine.
I think some playing around with permissions might be in order here.
Thanks for your reply..... I no doubt will be back to you.
--
DaveG
Norway - Oslo - Skoyen
Cor Ligthert [MVP] wrote:
Dave,.
What is strange for me is that it works for the 2000 and not for 2005.
The error code you shows means that the connection for the
dataadapter are not set properly, but that is a part of the wizard
generated code. Are you sure you use the by the wizard generated
datadapter. In other words, can you show a piece of the code you use
to update?
Cor
"Dave Griffiths" <daveginorge@xxxxxxxxxxxxxxxxxx> schreef in bericht
news:xn0epov22az5t5000@xxxxxxxxxxxxxxxxx
I am attempting to connect with SQL Client.meassages.
When I create the Data adapter using the Wizard (as I said still
early days for me)
1. I choose the connection
2. I select "Use SQL Staements"
3. I use the "Query Builder" and select a single table and a few
fields 4. The following Query is Generated.
SELECT
DisplayName,
CompanyName,
FirstName,
CustomerID
FROM
Customer
6. Click next and it creates all Statements but INSERT - DELETE -
UPDATE have errors. When I try and use the UPDATE in the program I
get an ERROR during UPDATE process.
Error Message
----------------------
An unhandled exception of type 'System.InvalidOperationException'
occurred in system.data.dll
Additional information: Update requires the UpdateCommand to have a
connection object. The Connection property of the UpdateCommand has
not been initialized.
--------------------------------
If I do the above against an SQL 2000 server all works fine.
Thanks for your time Cor
--
DaveG
Norway - Oslo - Skoyen
Cor Ligthert [MVP] wrote:
Dave,
At least we need to know what kind of provider you use, SQLClient,
OleDB, ODBC. Than we are interested in your Select command what
is the base of the three that goes wrong,
Cor
"Dave Griffiths" <daveginorge@xxxxxxxxxxxxxxxxxx> schreef in bericht
news:xn0epotmz92rd0000@xxxxxxxxxxxxxxxxx
Hi All
Very new to ADO.Net & SQL
When I create a data adapter to SQL 2005 server I get the
server.
Generated SELECT Command
Generated TABLE Mappings
Error creating INSERT command
Error creating UPDATE command
Error creating DELETE command
If I create a data adapter to a SQL 2000 server everything creates
OK
Is this a known issue between the 2 products VS 2003 & SQL 2005.
Is there an answer to the problem apart from using sql 2000
All help welcomed.
Thanks in advance.
--
DaveG
Norway - Oslo - Skxyen
- Follow-Ups:
- Re: VS 2003 & SQL 2005 Data Adapter Error
- From: Dave Griffiths
- Re: VS 2003 & SQL 2005 Data Adapter Error
- References:
- VS 2003 & SQL 2005 Data Adapter Error
- From: Dave Griffiths
- Re: VS 2003 & SQL 2005 Data Adapter Error
- From: Cor Ligthert [MVP]
- Re: VS 2003 & SQL 2005 Data Adapter Error
- From: Dave Griffiths
- Re: VS 2003 & SQL 2005 Data Adapter Error
- From: Cor Ligthert [MVP]
- VS 2003 & SQL 2005 Data Adapter Error
- Prev by Date: Insert 3 Gb binary file to oracle blob using Ado.net oracleclient
- Next by Date: Cool Interview Questions Link
- Previous by thread: Re: VS 2003 & SQL 2005 Data Adapter Error
- Next by thread: Re: VS 2003 & SQL 2005 Data Adapter Error
- Index(es):
Relevant Pages
|