Re: Passing parameters to stored procedure in ole db source



what I wanted to do was set the ole db source to use a sql command, enter the
stored proc and then pass in a parameter. I ended up putting the whole sql
statement into a variable as you described, for some reason I didn't think to
try entering just the stored proc and the variable. I think the problem was
that I was trying to pass variables in in the same way you would for
parameterized sql. i.e. "p_do_something ?" where the question mark would be
the variable.

"Allan Mitchell" wrote:

Hello wdudek,


OK so this is SSIS. You are using a variable to be the statement that gets
executed by the OLE DB Source Adapter. I presume you are using EvaluateAsExpression
on the variable that holds the statement?

When you say it does not work, when does it not work? At runtime or design
time?

The article I posted is for 2K as you didn't mention this was 2K5. With
EvaluateAsExpression on the variable you will not need to ? as essentially
you will be building the statement dynamagically.



--

Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com

I'm trying to use a stored procedure as the source for an ole db data
source in ssis. When I hard code the parameters in, it works fine, but
when I change it to use a variable it does not work.

"Charles Wang[MSFT]" wrote:

Hi, It seemed that you were trying to execute your DTS package in
SSIS, right? To let us better understand your issue, could you please
describe your process more detailed?

Also, is this article helpful for you:
Amazing SSIS: Parameters in Execute SQL Task
http://blogs.msdn.com/msdnts/archive/2006/11/17/amazing-ssis-paramete
rs-in-e
xecute-sql-task.aspx
Please feel free to let ue know if you have any other questions or
concerns.

Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.asp
x#notif
ications
If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your
reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach
the
most efficient resolution. The offering is not appropriate for
situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are
best
handled working with a dedicated Microsoft Support Engineer by
contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
======================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
======================================================



.



Relevant Pages

  • RE: SQLCMD fails with login timeout expired.
    ... I understand tht you could connect to SQL Express properly by 2005 ... management tool but you cannot connect it via sqlcmd. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.sqlserver.tools)
  • RE: Random NT Authority/Anonymous Login Errors - REALLY NEED HELP.
    ... and these ASP.NE application will use delegate to access the backend SQL ... you can check the eventlog on both the ASP.NET server and SQL ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Random NT Authority/Anonymous Login Errors - REALLY NEED HELP.
    ... and these ASP.NE application will use delegate to access the backend SQL ... you can check the eventlog on both the ASP.NET server and SQL ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Passing parameters to stored procedure in ole db source
    ... OK so this is SSIS. ... You are using a variable to be the statement that gets executed by the OLE DB Source Adapter. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.sqlserver.dts)
  • RE: Create new publication error
    ... This occurs when you have sql 2000 as publisher and 2005 ... This issue could occur if the user might be orphaned on the database you ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.sqlserver.replication)

Quantcast