SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Using OLEDB provider in Execute SQL task


Using OLEDB provider in Execute SQL task

Author
Message
vishal.shinde
vishal.shinde
SSC Rookie
SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)SSC Rookie (42 reputation)

Group: General Forum Members
Points: 42 Visits: 113
Hello,
I want to use OLEDB provide in execute sql task. (Reason why not ADO.NET is that I am not able to set connection string property from a front end which is calling the package). I have requirement of calling a SP which returns a VARCHAR Output parameter.
I set,
ConnectionType - OLE DB
Connection - (1 new OLE DB Connection by choosing new connection)
SQL Source Type - Direct Input
SQL Statement - EXEC ? = dbo.USPValidateReferencePorts ? 0

In the parameter mapping tab I have added 1 output parameter mapped to one of the decalred variable.
Parameter Name - 0
Parameter size - 255
Direction - Output
Data Type - VARCHAR

Can you please assist ASAP?
Thanks

Vishal
Jack Corbett
  Jack Corbett
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23966 Visits: 14905
What is the problem you are having? You do not provide an error message or a question really so I don't know what to help with.



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
divyanth
divyanth
Mr or Mrs. 500
Mr or Mrs. 500 (589 reputation)Mr or Mrs. 500 (589 reputation)Mr or Mrs. 500 (589 reputation)Mr or Mrs. 500 (589 reputation)Mr or Mrs. 500 (589 reputation)Mr or Mrs. 500 (589 reputation)Mr or Mrs. 500 (589 reputation)Mr or Mrs. 500 (589 reputation)

Group: General Forum Members
Points: 589 Visits: 556
By looking at your post all i can think of is that your getting an error while parameters to the Execute SQL Task bcz you are using "?" parameters before an = sign.. which is not allowed (as per my knowledge)...

The best approach would be to use expressions and replace your execute SQL statement with a variable which will hold your expression....

This is what i have figured out.. dont exactly know what your question is.... AS Jack said Post more information without which nobody can guide you in the right way...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search