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
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by Lester Policarpio
»
Select,Update,Delete,Insert etc.. in many...
Select,Update,Delete,Insert etc.. in many server using 1 query
Rate Topic
Display Mode
Topic Options
Author
Message
Lester Policarpio
Lester Policarpio
Posted Friday, January 18, 2008 2:18 AM
Old Hand
Group: General Forum Members
Last Login: Tuesday, November 20, 2012 6:45 PM
Points: 398,
Visits: 2,405
Comments posted to this topic are about the item
Select,Update,Delete,Insert etc.. in many server using 1 query
"-=Still Learning=-"
Lester Policarpio
Post #444768
A Point - Daniel
A Point - Daniel
Posted Wednesday, March 28, 2012 1:48 AM
Forum Newbie
Group: General Forum Members
Last Login: Sunday, November 04, 2012 1:38 AM
Points: 4,
Visits: 20
why not use replication ?
Post #1274106
patrickmcginnis59
patrickmcginnis59
Posted Wednesday, March 28, 2012 6:28 AM
SSC-Addicted
Group: General Forum Members
Last Login: Wednesday, January 16, 2013 4:23 PM
Points: 415,
Visits: 2,333
daniel 40017 (3/28/2012)
why not use replication ?
So how would you set up replication to send a one time query to my 50 linked servers? It must be a short efficient procedure since its a one off job.
Post #1274235
A Point - Daniel
A Point - Daniel
Posted Wednesday, March 28, 2012 7:40 AM
Forum Newbie
Group: General Forum Members
Last Login: Sunday, November 04, 2012 1:38 AM
Points: 4,
Visits: 20
The issue you presented regards an insert operation.
a query is a different thing - one might think you are referring to distributed query on multiple servers for performance.
an insert operation is generally not a one time operation and if you are adding records to a table and need to insert the same records to 50 other db's than I would use replication on that table and replicate it to all other servers. you have a built in module in sql server that does the work - why develop it yourself ?
Post #1274289
patrickmcginnis59
patrickmcginnis59
Posted Wednesday, March 28, 2012 7:57 AM
SSC-Addicted
Group: General Forum Members
Last Login: Wednesday, January 16, 2013 4:23 PM
Points: 415,
Visits: 2,333
daniel 40017 (3/28/2012)
The issue you presented regards an insert operation.
a query is a different thing - one might think you are referring to distributed query on multiple servers for performance.
an insert operation is generally not a one time operation and if you are adding records to a table and need to insert the same records to 50 other db's than I would use replication on that table and replicate it to all other servers. you have a built in module in sql server that does the work - why develop it yourself ?
I think it was a pretty handy little concept (I wasn't the original author), I'll probably play with his script a bit. It would be useful in my situation because I do have multiple servers, and while I may insert values into many tables on many servers, I wouldn't want the complete contents of tables replicated, and I'd also do select queries.
Post #1274317
SQLQuest29
SQLQuest29
Posted Wednesday, March 28, 2012 8:11 AM
Say Hey Kid
Group: General Forum Members
Last Login: Today @ 2:38 PM
Points: 713,
Visits: 2,874
why not use POSH (Powershell) ?
easy, convenient and efficient
HTH,
Cheers !
"Never take life too seriously, nobody gets out of it anyways !
When your love and skills unite, expect a masterpiece !"
Post #1274331
shaun.stuart
shaun.stuart
Posted Wednesday, March 28, 2012 3:14 PM
SSC Eights!
Group: General Forum Members
Last Login: Yesterday @ 8:18 AM
Points: 966,
Visits: 636
Or, if you have all the servers in a server group in SSMS, just open a multi-server query window in SSMS and run the query once against all the servers.
http://shaunjstuart.com/archive/2011/09/teaching-an-old-dog-new-tricks/
Post #1274695
Derek Wharton
Derek Wharton
Posted Thursday, March 29, 2012 12:36 PM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 2:26 PM
Points: 9,
Visits: 462
shaun.stuart (3/28/2012)
Or, if you have all the servers in a server group in SSMS, just open a multi-server query window in SSMS and run the query once against all the servers.
http://shaunjstuart.com/archive/2011/09/teaching-an-old-dog-new-tricks/
This was my first thought.
Post #1275299
« 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.