Link to home
Start Free TrialLog in
Avatar of BrianMc1958
BrianMc1958

asked on

NEWBIE: Is SQL Server authority equal between Query Analyzer and Windows batch file?

Dear Experts,

I'm a newbie, and only vaguely aware of "mixed mode" security issues on SQL Server.

When I'm installing my product, I have the user sign me on to their SQL Server box "as" themselves (typically with all authorities).  I then use Query Analyzer to run a TQSL script to install the product.  (It creates a db, a login, grants a couple of authorities...)

To make this easier, I'm considering embedding that same TQSL into some Java, and then running that from a batch file on the user's desktop.  However, I'm not sure I'd have the same authorities double-clicking on a batch file while signed on to the SQL box itself as my customer as I would being inside QA as my customer.

Is there a fairly simple answer for this?

Thanks,
BrianMc1958
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BrianMc1958
BrianMc1958

ASKER

To CEHJ: I'm afraid I didn't post this to the SQL Server forum as I intended.  Don't know how to correct, so I'll accept your answer here and repost...

Thanks...
OK, but i think i'd put the same answer in there ;-)