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

SQL 7 Server reinstall Need User and DTS Info. Expand / Collapse
Author
Message
Posted Monday, August 20, 2012 11:23 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, January 3, 2013 11:32 AM
Points: 22, Visits: 13
We have a server running SQL 7 and one of the raid drives failed. In switching the drive, it corrupted the OS and we had to reinstall. Fortunatelyl all the files were intact including the SQL table files. I had to reinstall SQL and use the SP_ATTACH_DB command and was able to access them. My problem is I don't have any of the DTS packages or the USER ID's, etc. under SECURITY. I tried moving all the tables under DATA to the new server location and it wouldn't start. So I've got all the data but none of the security or DTS packages. Is there anyway to retrieve that information from the MASTER or MSDB tables?

I have a fairly recent backup but one of the databases wasn't in it so I'm trying to determine my easiest most accurate path. I have all the DB's attached, but without the security or DTS, I"m kinda hosed ...



Post #1347354
Posted Monday, August 20, 2012 12:01 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 7:53 PM
Points: 12,896, Visits: 32,095
with SQL 7/2000, if you have a previous backup of the master database, you could restore it as a user database, and then manually script out / create the logins that exist in that database. you could export the has of the passwords with one hex to char function as well, but it has been a while;

alternatively, you could create logins for each of the users that exist in a database by querying sysusers, right? you'd assign new passwords if they were not windows users;
i've got a script like that for 2005 and above, of you think it might help; you'd have to substitute sysusers for sys.database_principals,a nd stuff like that to get it to work for previous versions.


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1347375
Posted Monday, August 20, 2012 12:12 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, January 3, 2013 11:32 AM
Points: 22, Visits: 13
Thanks for the quick reply. I actually have the master database still in a folder so could i just attach it if I renamed the files first so they didn't conflict with the existing master? Would this also give me the access that they had for each database?

Another option I tried was to recreate the users, but at some point it tells me the user already exists even thought it doesn't?

Since the entire previous SQL installion files appear to be intact, is there anyway to make the new SQL install just point to all the old files? When I did the reinstall I tried to point to the previous installation folder but it said that couldn't be done.



Post #1347382
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse