SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Script to produce SP_ATTACH_DB code

By russellgh,

This SP take 0 or 1 parameters.  Execute without any parms and you will the sp_attach_db statements for all db's on you server.  Execute with a database name and it will generate statements for stated db.

Total article views: 976 | Views in the last 30 days: 1