Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

how can i get Powershell Expand / Collapse
Author
Message
Posted Wednesday, May 1, 2013 2:15 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Today @ 12:42 PM
Points: 362, Visits: 654
to search stored procedures for server names?
we have the list of server names, but not sure if we must script the procedures out and search for server names from the server name list on the file system or is it possible to use the server list and search the procedures traversing each db on a server?
thanks a lot
drew
(powershell illiterate)
Post #1448608
Posted Thursday, May 2, 2013 4:29 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 12:58 PM
Points: 7,127, Visits: 12,728
Is this a recurring need?

If not, I do this kind of impact analysis using a multi-query window in SSMS and running a "find" proc that can search the metadata of all databases in an instance for a specific term.

If it is a recurring need then what is your ideal output? rows in a table? a text file? some info to stdout is ok?


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1449006
Posted Friday, May 3, 2013 2:46 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Today @ 12:42 PM
Points: 362, Visits: 654
No, i dont anticipate it being recurring.
Its part of a migration to a virtual environment. We're trying to limit licensing and consoidate former standalone servers that used to be linked into instances on a consolidation server...so lots of existing procedures have the old linked server name in their joins, and we are trying to get down to one mother ship.
An idea the network admins want to try is to alias the old server names with DNS to get them to point to the new consolidation server...i'm not sure how that works, but i do know there just got to be too many standalones.
Our perception is that what has already moved into VMs is faster than it was because the VM has less latency than the standalones communicating over the network did, something i found counterintuitive but great.
thanks again.
Post #1449358
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse