473,713 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DEFAULT SCHEMA IN CLP

bea
Is there a way to set a default schema name by setting environment
variable, so that it is set for CLP before connect to the database?

Thank you.

Feb 9 '07 #1
4 1955
On Feb 9, 2:55 pm, "bea" <mbeatrizrodrig ...@gmail.comwr ote:
Is there a way to set a default schema name by setting environment
variable, so that it is set for CLP before connect to the database?

Thank you.
Hi,
Can u be more descriptive in what u want to achieve!!!

Feb 9 '07 #2
bea
On Feb 9, 12:59 pm, "Racerx" <p.paingan...@g mail.comwrote:
On Feb 9, 2:55 pm, "bea" <mbeatrizrodrig ...@gmail.comwr ote:
Is there a way to set a default schema name by setting environment
variable, so that it is set for CLP before connect to the database?
Thank you.

Hi,
Can u be more descriptive in what u want to achieve!!!
Of course. I want to access to a table with schema = DWAPROV but my
user has other name. I don´t want to make set current squema = ''. I
have tried to modify db2cli.ini but this doesn`t work with CLP.

Is it possible make this?
Feb 9 '07 #3
bea wrote:
On Feb 9, 12:59 pm, "Racerx" <p.paingan...@g mail.comwrote:
>On Feb 9, 2:55 pm, "bea" <mbeatrizrodrig ...@gmail.comwr ote:
>> Is there a way to set a default schema name by setting environment
variable, so that it is set for CLP before connect to the database?
Thank you.
Hi,
Can u be more descriptive in what u want to achieve!!!

Of course. I want to access to a table with schema = DWAPROV but my
user has other name. I don´t want to make set current squema = ''. I
have tried to modify db2cli.ini but this doesn`t work with CLP.
There is no cli.ini like capability for CLP.
Assuming you are dealing with a select number of tables. Have you
considered creating ALIASes?

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Feb 9 '07 #4
On Feb 9, 2:19 pm, "bea" <mbeatrizrodrig ...@gmail.comwr ote:
On Feb 9, 12:59 pm, "Racerx" <p.paingan...@g mail.comwrote:
On Feb 9, 2:55 pm, "bea" <mbeatrizrodrig ...@gmail.comwr ote:
Is there a way to set a default schema name by setting environment
variable, so that it is set for CLP before connect to the database?
Thank you.
Hi,
Can u be more descriptive in what u want to achieve!!!

Of course. I want to access to a table with schema = DWAPROV but my
user has other name. I don´t want to make set current squema = ''. I
have tried to modify db2cli.ini but this doesn`t work with CLP.

Is it possible make this?
You could always qualify your table/procedure names.
e.g SELECT * from DWAPROV.tablena me.

Although this does make things a bit clunky.

Feb 12 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1574
by: inquirydog | last post by:
Hi- I am using xml to hold configuration data for a project, and using schema to define what the configuration file should look like. I wanted to get some advice on an intelligant way to specify and create a default config file. In other words, when the developer puts a new element in the schema
4
2934
by: Lénaïc Huard | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've some namespace problems when defining default values for attributes. My problem seems to come from the fact that the attributes are defined in a different namespace from the element.
12
4945
by: Stefano | last post by:
Hi all, what is the correct use of the "default" attribute in XML Schema? For example: <xs:element name="myProperty" type="xs:string" default="myDefaultValue"/> What can I do with it? What is the meaning of < ....default="myDefaultValue" /> ?
2
2780
by: Lee Harr | last post by:
I must have a fundamental misunderstanding about using schema. Before using schema, I usually have a file that has my database definition, and I can play that file back in to a new database to create a testing area or to create my production setup. I think I want to use schema the same way. My problem is using a sequence for a default value. I know that if I use a serial instead, all of this will go away, but my design
5
7049
by: Matt D | last post by:
I have a bunch of constants used in my web services that the client also needs to have. Is there a way to declare public properties that are part of a class or structure as constants or at least give them a default value through some XML shaping? Thanks.
7
21355
by: greatcanyon | last post by:
Hi, When I create a new user in DB2, can I set the default schema to an existing schema? The reason I want to do this is that I want to later connect to db2 as this user and access tables WITHOUT the schema name prefix. In addition to that, I want to use ADO.NET to connect as this user and query tables in another schema without the prefix. (I use IBM Ole DB Data provider in the connection string). The access is currently set up...
1
1844
by: Plop69 | last post by:
need some help on following: xml file 1 <TEST xmlns="http://test" > <OK>mlkddflmkj</OK> </TEST> xml file 2
12
8559
by: Plop69 | last post by:
need some help on following: xml file 1 <TEST xmlns="http://test" > <OK>mlkddflmkj</OK> </TEST>
2
3042
by: Mark | last post by:
Hi... I've been trying the .Validate() method on the XmlDocument to validate some xml against a schema, but one thing I noted was that unless the document explicitly declares the schema as a default namespace, Validate() just lets it slide through as a success. Is there a way to Validate() either a) mandating against a particular schema, or at the very least b) supplying a default namespace to be used even when not explicitly declared?
2
3759
by: aj | last post by:
SQL Server 2005 64-bit 9.00.3042 SP2 When I map a database user to a login, I can specify a default schema for that user. After that, any SQL from that user w/o an explicit schema will be resolved to that default schema. I would like for this to happen in regards to user-defined functions (in this case, a scalar-valued function). However, it looks as if I must always explicitly specify the schema when using the function.
0
8795
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8701
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9168
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9068
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9009
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7942
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4462
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4715
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.