Viewing 3 posts - 1 through 4 (of 4 total)
No that does not work either as sp_executesql executes with the permissions of the user not the permissions of the compiler.
Regards
January 20, 2006 at 12:35 pm
#616197
Ok I have added the following to my attach Stored procedure.
@param1 is the database name and sectest is the user I am playing with.
declare @nText Nvarchar(1024)
select @nText = N'use '...
January 20, 2006 at 11:49 am
#616186
Their clients send them thousands of databases every year for analysis.
The business is Re-Insurance and the databases are thier clients portfolio's
We do not own any of the software so we...
January 20, 2006 at 11:00 am
#616173