Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Data Warehousing
»
Integration Services
»
Script Component and Querying Database
Script Component and Querying Database
Rate Topic
Display Mode
Topic Options
Author
Message
bobd125
bobd125
Posted Sunday, January 13, 2013 3:40 PM
Grasshopper
Group: General Forum Members
Last Login: Monday, May 20, 2013 6:59 PM
Points: 24,
Visits: 157
I need help understand how to use the Script Component to create a connection to the database, submit a SQL, retrieve the results. Are there any good tutorials?
I would like to use the script component basically as a lookup to incoming rows. I have to perform numerous lookup and thought this approach of using script components would allow me to do this. Also, it would allow me to perform additional steps, where I need to built up a field as a result of the lookups.
Any help would be appreciated.
Post #1406522
Koen Verbeeck
Koen Verbeeck
Posted Tuesday, January 15, 2013 2:16 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 2:11 AM
Points: 9,378,
Visits: 6,473
You can use
SQLCommand
or other relevant classes.
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1407098
Phil Parkin
Phil Parkin
Posted Tuesday, January 15, 2013 3:42 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Today @ 9:39 AM
Points: 4,247,
Visits: 9,500
Koen Verbeeck (1/15/2013)
You can use
SQLCommand
or other relevant classes.
You missed the obvious question: why use a script component to do lookups when there is already a dedicated lookup component?
____________________________________________________________________________________________
Help us to help you. For better, quicker and more focused answers to your questions, consider following the advice in this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
If you are asking for help and your post does not contain a question, you should expect responses which do not contain any answers. Put a question mark in there somewhere - it's not rocket science.
Post #1407139
Koen Verbeeck
Koen Verbeeck
Posted Tuesday, January 15, 2013 3:46 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 2:11 AM
Points: 9,378,
Visits: 6,473
Phil Parkin (1/15/2013)
You missed the obvious question: why use a script component to do lookups when there is already a dedicated lookup component?
To quote the OP:
to perform additional steps, where I need to built up a field as a result of the lookups.
But you're right, if a traditional lookup can be used, by all means, please do so.
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1407140
Phil Parkin
Phil Parkin
Posted Tuesday, January 15, 2013 3:50 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Today @ 9:39 AM
Points: 4,247,
Visits: 9,500
Koen Verbeeck (1/15/2013)
Phil Parkin (1/15/2013)
You missed the obvious question: why use a script component to do lookups when there is already a dedicated lookup component?
To quote the OP:
to perform additional steps, where I need to built up a field as a result of the lookups.
But you're right, if a traditional lookup can be used, by all means, please do so.
Fair enough. I think we need to understand the problem/requirement better before knowing whether it's possible using lookups (and maybe derived columns) or not ...
____________________________________________________________________________________________
Help us to help you. For better, quicker and more focused answers to your questions, consider following the advice in this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
If you are asking for help and your post does not contain a question, you should expect responses which do not contain any answers. Put a question mark in there somewhere - it's not rocket science.
Post #1407142
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.