|
Is there a way that I can a query against multiple servers? I need to change all the passwords for "sa" on multiple servers. Can I easily do this in one step or do I have to run this against each server separately?
(comments are locked)
|
|
Do you have SQL Server 2008? If so you can take advantage of the Central Management Server feature which lets you register multiple servers on that server and execute one query against multiple servers from there. BOL on how to Create a CMS: http://msdn.microsoft.com/en-us/library/bb934126.aspx Nice Wiki on CMS and how to use it (w/ video): http://sqlserverpedia.com/wiki/Central_Management_Server If you DONT have a SQL Server 2008 available in house then I suggest installing SSMS Tools pack: This will allow that functionality along with a WHOLE lot more. A MUST have for any SQL pro and its free!
(comments are locked)
|
|
I talk for myself, but every time I think in repetition and multiple servers think about powershell. My suggestion would be: 1 - If I have only one password for all servers . Create a .Txt with the name of all servers in the c:\PS\servers.txt
2 - If I have Different passwords for each server. Put the password in front of each server, separated by commas
(comments are locked)
|
|
Click on a group of servers in Management Studio SQLServer 2008. Click on "New Query" and you will see at the bottem of the screen that you are connected to all the servers in that group, a server count is displayed instead of a server name, and any SQL will run against all the servers. However, I do like to keep the sa password different on each server.
(comments are locked)
|
|
SQL Multiscript tool is a paid tool, please try for Queryblaster, it does the same functionality as SQL multiscript and its free
(comments are locked)
|
|
Keep in mind that the Central Management Server must be a SQL Server 2008 instance Jorge.
(comments are locked)
|
1 2 next page »

