dbTalk Databases Forums  

sp_executesql error from SSIS OLE DB Command

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


Discuss sp_executesql error from SSIS OLE DB Command in the microsoft.public.sqlserver.dts forum.



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

Default sp_executesql error from SSIS OLE DB Command - 07-19-2006 , 07:20 PM






Hi

I've got an SSIS package, I'm in a Data Flow step that has a OLE DB
Command Data Flow Transformation.

The SQLCommand in the OLD DB Command is:
______________________
UPDATE Employment_Episode_Dim
SET Commence_Serv_Date = ?
WHERE AGS_Number = ?
______________________

The package will run through successfully, but I don't see any updates
in Employment_Episode_Dim. I ran a trace, and this is a sample of the
SQL that is being executed:

______________________
exec sp_executesql N'UPDATE EMPLOYMENT_EPISODE_DIM
SET COMMENCE_SERV_DATE = @P1
WHERE (AGS_NUMBER = @P2)',N'@P1 datetime,@P2 int',''2005-01-27
00:00:00:000'',78578929
______________________

If I take that SQL and execute it in a query window, it fails due to
two single quotation marks placed around the date parameter being used
as @P1.

Why does SQL/SSIS put two singles around the date? It's outside of a
string, so it doesn't seem to need to have the double.

Can anyone please help?

Thanks
Michele


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.