If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > how to query the Default schema name?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-29-06, 01:04
Shefu Shefu is offline
Registered User
 
Join Date: Apr 2005
Posts: 127
how to query the Default schema name?

Hi ,

how to query the Default schema name in DB2?

Sn
Reply With Quote
  #2 (permalink)  
Old 08-29-06, 02:00
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
schema

the default schema is your connect userid
you could use : set current schema=xxxx
otherwise explain the purpose
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 08-29-06, 02:44
Shefu Shefu is offline
Registered User
 
Join Date: Apr 2005
Posts: 127
Thanks for the reply Guy Przytula, it solved the purpose.

cheers
Sn

Last edited by Shefu; 08-29-06 at 02:55.
Reply With Quote
  #4 (permalink)  
Old 08-29-06, 05:30
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Arrow

If you just want to know run:

values(current schema)

From the CLI
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On