Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 SQL Command From Variable

Author  Topic 

dslaby
Starting Member

2 Posts

Posted - 2008-03-02 : 23:44:24
I'm having difficulty passing a date parameter in a SSIS OLEDB connection to a stored procedure using SQL command with the error message "Attempted to read or write protected memory ..." and if I create a variable, I get the error "must declare the scalar variable..". Here is the OLEDB command: "EXEC dbo.mic_TGDrop ?" where ? requires a date parameter @ReportDate. Why does the call to the stored procedure fail? What would be the correct syntax of a variable to use SQL Command from variable? The SQL BOL does not cover this; is there another resource that has a simple example? Thanks.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-03-03 : 09:31:16
How are you mapping the parameter? Have you created a variable to hold the date?
Go to Top of Page

dineshasanka
Yak Posting Veteran

72 Posts

Posted - 2008-03-03 : 10:45:59
what is your data source? is it sysbase? mircosoft has reported an issue of tis iwth sybase driver

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=302474&SiteID=1

---------------------
http://dineshasanka.spaces.live.com/
Go to Top of Page
   

- Advertisement -