dbTalk Databases Forums  

Weird Problem

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


Discuss Weird Problem in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David N.
 
Posts: n/a

Default Weird Problem - 01-27-2004 , 07:05 PM







Hi All,

I have a DTS package that failed on a step that contain the ONLY following
SQL command:

select idDataSource = cast(1 as smallint)

The above select command failed and give me the following error:

Syntax error converting from a character string to uniqueidentifier

In my opinion, the error is totally bogus. I looked at the package log file
and below is the logged error:


Step Error Source: Microsoft Data Transformation Services (DTS) Package
Step Error Description:The task reported failure on execution. (Microsoft
OLE DB Provider for SQL Server (80040e14): Syntax error converting from a
character string to uniqueidentifier.)
Step Error code: 8004043B
Step Error Help File:sqldts80.hlp
Step Error Help Context ID:1100

BTW. I don't know if it is just a coincident it really has some things to
do with it: I just ran the Microsoft Auto Update today.

Please shed me a light, even you only have a candle (;-)!



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

Default Re: Weird Problem - 01-28-2004 , 01:06 AM






Is idDataSource a uniqueidentifier ?

If yes then the error is good.

look at this example

CREATE TABLE ShowErrors(col1 varchar(10))
GO
INSERT ShowErrors(col1) VALUES(1)
INSERT ShowErrors(col1) VALUES('Allan')

select * from ShowErrors WHERE col1 = 1


-- Error: Syntax error converting the varchar value 'Allan' to a column of
data type int.(22018,245), Batch 1 Line 1


SQL Server will convert the left hand side of the equation to the datatype
of the right hand side and I believe it due to numeric precedence.



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


" David N." <huongdat (AT) comcast (DOT) net> wrote

Quote:
Hi All,

I have a DTS package that failed on a step that contain the ONLY following
SQL command:

select idDataSource = cast(1 as smallint)

The above select command failed and give me the following error:

Syntax error converting from a character string to uniqueidentifier

In my opinion, the error is totally bogus. I looked at the package log
file
and below is the logged error:


Step Error Source: Microsoft Data Transformation Services (DTS) Package
Step Error Description:The task reported failure on execution. (Microsoft
OLE DB Provider for SQL Server (80040e14): Syntax error converting from a
character string to uniqueidentifier.)
Step Error code: 8004043B
Step Error Help File:sqldts80.hlp
Step Error Help Context ID:1100

BTW. I don't know if it is just a coincident it really has some things
to
do with it: I just ran the Microsoft Auto Update today.

Please shed me a light, even you only have a candle (;-)!





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.