-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: How to drop a user which have tables
PostPosted: Mon Apr 30, 2007 7:56 am 
Newbie

Joined: Tue Apr 17, 2007 1:30 am
Posts: 3
Hello All,

How to drop a user which have a database and in that database some tables are also there.
Is there a way to directly drop that user,so that we dont need to drop database,tables seperately.

Thanks
Rachel


Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 30, 2007 9:26 am 
Senior
Senior

Joined: Sat Apr 21, 2007 11:01 pm
Posts: 144
That sounds like a database specific question as opposed to a hibernate question. Unless you want to do it at run time via hibernate... I really don't think you can do something like that. And in a production system it's probably not really a good idea to.
What database are you using? With SQL you can pretty much do anything regarding your DB... so I'd look into that.

_________________
Everytime you get an answer to your question without giving credit; god kills a kitten. :(


Top
 Profile  
 
 Post subject: How to drop a user which have tables
PostPosted: Tue May 01, 2007 12:02 am 
Newbie

Joined: Tue Apr 17, 2007 1:30 am
Posts: 3
Hi All,
I'm using PostgresSql as my database and would like to remove a user at runtime so that i should not delete database or the tables that user is having.

Regards
Rachel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.