Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I need to create a sample database in db2, when i logged in as a standard power user in my windows machine.

Syntax:
HTML
CREATE DATABASE TESTDB3  AUTOMATIC STORAGE YES


But this works when i run as a admin user, But same not allowing me to create db as a power user,

Also i have db2admin user, he has admin previlages... Using this user i am trying to create the database... But i didnt get any idea...

is any other option available ?

thanks,
Mani
Posted
Updated 8-Nov-11 19:37pm
v2

1 solution

Use this :
db2 CONNECT TO database USER userID USING password
 
Share this answer
 
Comments
Manivannan Dheena 9-Nov-11 1:36am    
Hi,
thanks for your interst on this, But the solution you have given for connecting the existing database... But my problem is creating a new database.
Mehdi Gholam 9-Nov-11 1:42am    
Don't use the connectto, use the userid and password
Manivannan Dheena 9-Nov-11 4:05am    
I have used like this.
CREATE DATABASE TESTDB3 USER db2admin USING password
But it ends up with error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900