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 > Current Schema, Current Path

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-21-05, 05:31
NGambler NGambler is offline
Registered User
 
Join Date: Jul 2005
Posts: 25
Current Schema, Current Path

Hi!

I has a problem. I need set values on CURRENT SCHEMA and CURRENT PATH automatically for any connections to the database.

Can somebody help me if it is possible?

Thanks

P.S.
I can not execute SET CURRENT SCHEMA and SET CURRENT PATH after each
connection. I need something like trigger!
Reply With Quote
  #2 (permalink)  
Old 10-21-05, 07:21
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
default schema (or default sql id) is always the userid. Thats it.
To change it after connecting you have to set it.

Whats wrong that you can't do it ?
What application interface are you using?

In ODBC there is an option to set the CURRENT SCHEMA or CURRENT SQL ID as an parameter under advanced settings in your Configuration Assistant/ODBC data source manager/db2cli.ini .

Also: specifying fully qualified table names in your application might help.
__________________
Juliane
Reply With Quote
  #3 (permalink)  
Old 02-16-06, 05:53
NGambler NGambler is offline
Registered User
 
Join Date: Jul 2005
Posts: 25
Thanks a lot

I am using ODBC
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