dbTalk Databases Forums  

Tough DTS execution error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Tough DTS execution error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hong
 
Posts: n/a

Default Tough DTS execution error - 10-13-2003 , 03:11 PM







I have built half dozen DTSs. They are running fine on my machine, but failed to finish on the server. So far this is too familiar story, but this time, the following error message baffled our dba and me.
“Query cannot be updated because it contains no searchable columns to use as a key”.
I even found an article from the MSDN KB.
http://support.microsoft.com/default...b;en-us;326166

It has something to do with using query to update a cursor while the cursor doesn’t contain any key column in it. And it is a by design behavior of the OLE DB Provider for ODBC driver.

On our case, I did not manipulate cursor/query whatsoever. It is a strict copy table from SQL2k to DB2 through Client Access ODBC Driver. All tables have primary keys. Both connections (DSNs) to the source and the destination seem good. At the server machine’s EM, I can preview the data from the source, as well as seeing the table field name from the destination. And the DTS is executed manually instead of as a scheduled job. The error showed up at the lat step of the package.

Anybody have any idea? Thanks!



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Tough DTS execution error - 10-14-2003 , 02:03 PM






The KB article also mentions the data types of columns as well. Is this an
issue ?


--


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org




"Hong" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have built half dozen DTSs. They are running fine on my machine, but
failed to finish on the server. So far this is too familiar story, but this
time, the following error message baffled our dba and me.
Quote:
"Query cannot be updated because it contains no searchable columns to use
as a key".
I even found an article from the MSDN KB.
http://support.microsoft.com/default...b;en-us;326166

It has something to do with using query to update a cursor while the
cursor doesn't contain any key column in it. And it is a by design behavior
of the OLE DB Provider for ODBC driver.
Quote:
On our case, I did not manipulate cursor/query whatsoever. It is a strict
copy table from SQL2k to DB2 through Client Access ODBC Driver. All tables
have primary keys. Both connections (DSNs) to the source and the destination
seem good. At the server machine's EM, I can preview the data from the
source, as well as seeing the table field name from the destination. And the
DTS is executed manually instead of as a scheduled job. The error showed up
at the lat step of the package.
Quote:
Anybody have any idea? Thanks!





Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: Tough DTS execution error - 10-16-2003 , 02:56 PM



I really don't know, but I think I included every columns
from the source, among them there is a primary key.
The difference between my machine and the server is that I
have an older version of Client Access. I am going to
compare them and search IBM site for help.
Quote:
-----Original Message-----
The KB article also mentions the data types of columns as
well. Is this an
issue ?


--


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org




"Hong" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:A81AF746-CF27-4DB0-966C-F100E1845269 (AT) microsoft (DOT) com...

I have built half dozen DTSs. They are running fine on
my machine, but
failed to finish on the server. So far this is too
familiar story, but this
time, the following error message baffled our dba and me.
"Query cannot be updated because it contains no
searchable columns to use
as a key".
I even found an article from the MSDN KB.
http://support.microsoft.com/default.aspx?scid=kb;en-
us;326166

It has something to do with using query to update a
cursor while the
cursor doesn't contain any key column in it. And it is a
by design behavior
of the OLE DB Provider for ODBC driver.

On our case, I did not manipulate cursor/query
whatsoever. It is a strict
copy table from SQL2k to DB2 through Client Access ODBC
Driver. All tables
have primary keys. Both connections (DSNs) to the source
and the destination
seem good. At the server machine's EM, I can preview the
data from the
source, as well as seeing the table field name from the
destination. And the
DTS is executed manually instead of as a scheduled job.
The error showed up
at the lat step of the package.

Anybody have any idea? Thanks!




.


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.