Home Forums Article Discussions Article Discussions by Author Discuss content posted by Ken Simmons Sync All Logins on a Server in a single click using SP_MSForEachDB RE: Sync All Logins on a Server in a single click using SP_MSForEachDB
shepton
Old Hand
Points: 374
More actions
June 3, 2008 at 7:53 am
#823619
If any one is having troubkle with this (on SQL 2005) make sure that the INSERT statement reads as follows...
INSERT into ##TempSync EXEC sp_msforeachdb @SQL
For some reason the ##TempSync & EXEC are run together if you just copy and paste.
Mark