groverzucker
2003-12-09 15:36:10 UTC
First and foremost, KB #246133 provides a wonderful piece of code in sp_help_revlogin -- it will help me no end in maintaining an effective disaster recovery environment. However . . . there's always a however, isn't there . . . trying to port the output of sp_help_revlogin to a text file that will accompany my backups to the disaster recovery servers is giving me kittens.
I have tried Transact-SQL, DTS, bcp and the Import/Export wizard. My guess is my problem lies in sp_help_revlogin piecemeal printing to the screen. Needless to say, I am not a programmer.
What I would like is to create a text (sql) file just before the nightly production backup, with a file name beginning with the SQL servername, that contains the output script from executing sp_help_revlogin in the production master database.
Can someone steer me in the right direction?
I have tried Transact-SQL, DTS, bcp and the Import/Export wizard. My guess is my problem lies in sp_help_revlogin piecemeal printing to the screen. Needless to say, I am not a programmer.
What I would like is to create a text (sql) file just before the nightly production backup, with a file name beginning with the SQL servername, that contains the output script from executing sp_help_revlogin in the production master database.
Can someone steer me in the right direction?