473,500 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

db2 connect statement with current schema

I'm connecting to a db2 8.2 database and
schema using the following two commands :

db2 connect to MYDB user me using helloworld
db2 current schema MYSCHEMA

Is there a db2 statement that combines both statements?

Like :

db2 connect ot MYDB user me using helloword set current schema MYSCHEMA
Thanks.

Nov 12 '05 #1
1 11403
gi*******************@yahoo.com wrote:
I'm connecting to a db2 8.2 database and
schema using the following two commands :

db2 connect to MYDB user me using helloworld
db2 current schema MYSCHEMA

Is there a db2 statement that combines both statements?

Like :

db2 connect ot MYDB user me using helloword set current schema MYSCHEMA
Thanks.

No, there is not! But where is your problem???

cu,

indika
Nov 12 '05 #2

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

Similar topics

3
20362
by: Agoston Bejo | last post by:
I am looking for the PL/SQL equivalent of the VBScript Exec and/or Eval functions, i.e. I want to be able to dynamically create a statement, then execute it in the current PL/SQL context, e.g. ...
1
8877
by: TimMcConechy | last post by:
Hi, In a trigger I need to do a SET CURRENT SCHEMA so that I update the right set of tables based on some "new" values I recieve in the trigger.. the logic looks a little like: DECLARE...
1
37091
by: Maria | last post by:
Hello we got a script automatically generated to populate a table that belongs to a partition table, then while executing we get this error message: "DB21034E The command was processed as an...
1
1344
by: ali | last post by:
Hi! Is there any way to tell the CLI driver not to use a stored procedure when a client requests information from the DB2 catalog on z/OS (i.e. can it actually send up the SQL statement like it...
2
1709
by: sastry.m.s | last post by:
Hi, I have tables created in my DB2 database created under a schema. Now i want to get connected to these tables with a username different from this schema name from my java application. When...
2
1300
by: mr_doles | last post by:
I am writing a Database application using Visual Studio 2005 and SQL Server Express 2005. I am trying to create a back up and year end back up plan within the program. The folder structure I...
2
1810
by: Joe Weinstein | last post by:
Hi all. I would like to know what the fastest, lightest weight query/SQL a client can send to the DBMS. I want to do this occasionally from a Java client to verify the current health of an...
10
2067
by: rcamarda | last post by:
I have created a table that contains buckets to hold activitives of enrollment for each of our admissions officer for each day of an enrollment session. I have an UPDATE that builds rolling totals...
1
6039
by: fbk2k5 | last post by:
hi i have a problem to connect the user inside the stored procedure in oracle i tried option CREATE OR REPLACE PROCEDURE Chk_Permission AS UserID VARCHAR2(10):='1234'; fname...
0
7136
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,...
0
7018
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...
0
7182
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,...
0
7397
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...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3110
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...
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.