I run several DTS Packages that load databases residing on two seperate
instances of SQL Server 2000 on the same server. For security reasons, I
need to be able to set the Databases on one instance to Read/Write access,
set the database access on the other instance to Read only, run the packages
on the first instance, and then reset the access to Read Only. The ideal
solution would be writing the logic in T-SQL in a stored procedure that is
already part of the Package or add a new stored procedure to the package. I
have not been able to find any reference to setting the Database access in
code. I would appreciate and welcome any advise on how to accomplish this
programming task. Thank you.

Signature
grp
Nigel Rivett - 24 Sep 2006 23:09 GMT
Have a look at sp_dboption in bol.
You might be better off creating roles with the correct permissions and
moving the user between those roles.
> I run several DTS Packages that load databases residing on two seperate
> instances of SQL Server 2000 on the same server. For security reasons, I
[quoted text clipped - 6 lines]
> code. I would appreciate and welcome any advise on how to accomplish this
> programming task. Thank you.
PGene2 - 25 Sep 2006 17:42 GMT
Thanks. This at least gives me a couple of directions to go in. I appreciate
the help.

Signature
grp
> Have a look at sp_dboption in bol.
> You might be better off creating roles with the correct permissions and
[quoted text clipped - 10 lines]
> > code. I would appreciate and welcome any advise on how to accomplish this
> > programming task. Thank you.