6 replies
by jmiller1
Before running the restore on your 2nd server, run this command:
select 'sp_adduser '+name+', '+name+', convert(char,0xa),'go'
from sysusers
This will create a script for readding the users to the database after the restore. As for the asp include statements, I don't understand what the problem is...
HTH
jm
by dean
If you can establish a dial-up (or some other kind of remote) connection between the two servers, why not create a Replication database.
Another way is to create a script from the server "far far away" that recreates the data in the database. So with proper settings (not to recreate tables, just to insert/update data) you'll probably get the desired result.
Hope this helps,
Zlatin Zlatev,
Software Engineer & Mentor Programmer,
JEI-Bulgaria
btw. the suggestion above (1st answer) will not work, because after the restore you'll loose again your user accounts.
To do the things so, you must first create a temporary table/cursor with your user data.
And after the restore make the dinamic-SQL execution that readds your user accounts.
If you do not understand something of that I'm writing now, maybe you need to read SQL Server Books-Online and some articles from the MSDN library.
by dean
by dean
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending