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
»
SQL Server 2008
»
SQL Server 2008 - General
»
Script to test connection to SQL Server
Script to test connection to SQL Server
Rate Topic
Display Mode
Topic Options
Author
Message
na1774
na1774
Posted Tuesday, August 07, 2012 2:04 PM
SSC Journeyman
Group: General Forum Members
Last Login: Sunday, January 13, 2013 11:24 PM
Points: 93,
Visits: 259
Hi All,
We have a table 'Servers' which lists all the Servers in our Company.
My scenario is that we have a a Dynamic as well as static FQDN to connect to a database server.
I need the script or packgae(SSIS) to first test if we are able to connect using the static name if 'Yes' then I need to update a column 'IsConnectStatic' in a table Servers to 1 and then test connection using Dynamic name if that connection is also successful then I need to update the column 'IsConnectDynamic' column to 1.
in Servers table.
I am wondering how I can establish this logic. If I can use SSIS which SSIS task I need to use? And whiin the task how do I establish the object.
Thank you.
Post #1341531
AlexSQLForums
AlexSQLForums
Posted Wednesday, August 08, 2012 11:52 AM
Ten Centuries
Group: General Forum Members
Last Login: Today @ 6:53 AM
Points: 1,227,
Visits: 1,712
na1774 (8/7/2012)
Hi All,
We have a table 'Servers' which lists all the Servers in our Company.
My scenario is that we have a a Dynamic as well as static FQDN to connect to a database server.
I need the script or packgae(SSIS) to first test if we are able to connect using the static name if 'Yes' then I need to update a column 'IsConnectStatic' in a table Servers to 1 and then test connection using Dynamic name if that connection is also successful then I need to update the column 'IsConnectDynamic' column to 1.
in Servers table.
I am wondering how I can establish this logic. If I can use SSIS which SSIS task I need to use? And whiin the task how do I establish the object.
Thank you.
If they are sql servers you can use this article
http://sql-bi-dev.blogspot.com/2010/07/dynamic-database-connection-using-ssis.html
Alex S
Post #1342081
« 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.