Drop user if exists
How can I check if a user already exists - since DROP USER IF EXISTS is not possible ?
-
Hi Walter!
Thank you for using OmniSci and providing your feedback.
At this time, your request would be a manual two step process. If you have admin privileges, you could use the /u command in omnisql which will retrieve the list of users. You can then manually inspect if the user exists and then use the DROP USER command.
I have added a DROP USER IF EXISTS feature request to our backlog.
-
Hi @walter ,
Recently we added the DROP USER IF EXIST that you needed for full implementation of your tool.
You can refer to syntax in the docs. https://docs-new.omnisci.com/sql/data-definition-ddl/users-and-databases#drop-user*
Regards, Candido.
-
Hi @candido.dessanti
Thanks for the tip - this works fine for me now.
But unfortunately, I still have the problem with the 2nd database connection open: https://github.com/omnisci/omniscidb/issues/668
Thanks and best regards
Walter
Please sign in to leave a comment.
Comments
8 comments