SimonSellick
Programmer
Hi,
The web host I am using (not my choice) controls users and script execution options; in particular, the whole script fails if I try to drop a non-existent object (instead of just warning), and I cannot grant permissions on objects that I have created, they are just assumed. I could rewrite the scripts and alter my local user model, but I would prefer to simply make the problem statements conditional.
In MS SQL I could script something like
IF works only in a proc in MySQL, is there some other way to accomplish the above without developing a stored proc?
Any help appreciated.
Simon.
The web host I am using (not my choice) controls users and script execution options; in particular, the whole script fails if I try to drop a non-existent object (instead of just warning), and I cannot grant permissions on objects that I have created, they are just assumed. I could rewrite the scripts and alter my local user model, but I would prefer to simply make the problem statements conditional.
In MS SQL I could script something like
Code:
if not exists [some object]
[some DDL]
Any help appreciated.
Simon.