Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer
Recent update: 2008-3-7

How to identify the current connected users to DB2

228 byte By Arnaldo at 2008-3-7
How can i get a list of the current users connections made to access a DB2 data base? Is there any tables or resources avaiable to get this information in the form of a list of this users? Thanks a lot.

Where to find the db2cc guide?

54 byte By ang at 2008-3-6
can anyone tell me where to get the db2cc guide?thanks

Improving SQL Queries in DB2

116 byte By Erin Gannon at 2008-3-5
Do you have some SQL you want to improve, but you're not sure how? Erin Gannon Editorial Assistant

Federated Databases

64 byte By Damin at 2008-3-3
I need to know the version where I can find federated databases.

triggers

112 byte By Striker at 2008-3-1
anyone know where I can get resources/samples on db2 triggers? What about workflow management with triggers?

Equivalent to Oracle CREATE DATABASE LINK

64 byte By Damin at 2008-2-28
Does DB2 have something like Oracle's CREATE DATABASE LINK?

Newsgroup Server May Be Down This Week

372 byte By DevX Editor at 2008-2-27
During the week of October 29, we will be performing some site maintenanceon several areas of dev-archive, including discussion groups. A brief period ofdowntime may be unavoidable. If downtime occurs we will bring the groupsback online as quickly as possible. Thank you in advance for your patience....

String literal result set

484 byte By Hector Diaz at 2008-2-26
Hopefully this is the right place to ask this question.I want to return a result set that has nothing to do with tables.In other DBMS's I can run the following select clause:select 'a','b'and get the following result set1 2-- --a bIs there a way to do something similar in...

db2/mts

781 byte By rdozier at 2008-2-25
I've got an existing vb app that will be accessing data on our frame in adb2 6.1 database. It does so via a data object in mts. The data object usesan odbc connection(The oledb provider is not an option because we are atmdac 2.1 sp2 and can't upgrade right now). The app server is running n...

How do I "link" to other databases using DB2 PL/SQL

387 byte By Jennifer Siegel at 2008-2-24
I am very new to DB2 and will soon be writing some DB2 PL/SQL.The purpose of the PL/SQL will be to propagate data from one DB2 databaseto many others DB2 databases. In Oracle, you can create a "Link" which allowsyou to connect to other databases and perform data manipluation.Does DB2 have anything...

VB ADO: Getting Identity Field after Addnew

773 byte By Frost at 2008-2-23
Oh Kay...I have a table on DB2 with 2 fields ID and Name. ID field in an Identityfield. When I add a new record to the Table (via ADO) I need to be ableto get the ID of the record I just added. The code below is and exampleof how I can do it in SQL Server. UDB returns 0 for the lID? Can anyone...

Controlling cache of individual records

171 byte By Jeramie at 2008-2-22
Is it possible to control individual records being cached in memory or staying on disk? Or is that a table-wide setting only? Thanks! - Jeramie Hicks

DB2 Recordset information

790 byte By Kevin Knudson at 2008-2-22
I've run into another problem with VB -> ADO -> UDB. Okay I open a recordset,selecting into it, and do a movelast (My program is restarting, so it looksat where the existing file ends, and compares it with the input file).MasterTB.Open "SELECT Symbol,Exchange,OEX100,ScanDate,ScanFlag,Opt...

VB and Stored Procedures Thanks Greg

5118 byte By Kevin Knudson at 2008-2-21
Well I deserve a BIG kick in the ..., Although I guess maybe a better errormessage somewhere might have helped, but I feel pretty stupid.I forgot the IN keyword in the beginning of the stored proc.Thanks again, sometimes it just takes a little discussion.KlK, MCSE"kevin knudson" <klk@knudsons.com...

Thanks Greg!

38 byte By George at 2008-2-20
Thanks For Your Help. George.

how to get the concurrent user login information form db2?

175 byte By elvis at 2008-2-19
hi all, May I ask query here how to get the concurrent user login information from DB2? Is there anyone exprerienced on this? Thank you, regards elvis

DB2 / ADO Stored Procedure Help

399 byte By Jeff Beck at 2008-2-18
I'm new to DB2 and am having trouble calling stored procedures. When everI call one, I get the following error:NO PROCEDURE BY THE NAME XXX HAVING COMPATIBLE ARGUMENTS WAS FOUND.The XXX is what ever stored procedure I am trying to run. I've checked thatthe SP name and parameters are vali...

help With Stored Procedures

190 byte By George at 2008-2-17
Hi! I Want To Know How Can I Use A Stored Procedure In VB6 (With ADO). I Don't Know How Can I Use The Parameters From The Stored Procedure. Any Advise? Thanks

How to get the concurrent user login information in DB2?

137 byte By elvis at 2008-2-16
hi all, May I ask query here how to get the concurrent user login information from DB2? Thank you, regards elvis

VB and Stored Procedures

995 byte By kevin Knudson at 2008-2-15
Well as I work through converting my SQL DB to UDB I continue to have StoredProcedure conversion problems. Several worked fine once I got the storedprocedure builder working.The next procedure, the core on in the system that Inserts all of the maindata, with a long list of parameters / fields (40)....

Migration form Oracle to DB/2

203 byte By Tal Rosenberger at 2008-2-15
Hi, I wonder where can I find information of migration from Oracle RDBMS, Triggers, Stored Prcedures, PL/SQL, Forms ... To IBM's DB/2, Java Regards, Tal Rosenberger

DB2 Case Sensitive Work Arounds

1575 byte By Mike G at 2008-2-15
We have several customers that are moving their data from SQL Server (a lot)and Oracle (a few) to DB2 systems. Some of these databases are in the multi-millionsof rows in size. The issue: SQL Server and Oracle allow the databases tobe installed as case in-sensitive, DB2 does *NOT*. IBM's sol...

Help - reading CLOB data from VB/ADO

565 byte By Nick gensen at 2008-2-14
HI all -I am using a visual basic application to manipulate data in anIBM DB2 FOR WINDOWS V 7.2 database using ADO 2.6. I am able to manipulatecolumns with all datatypes except CLOB/BLOB datatypes. I am using VB's getchunk/appendchunkfunctions. I get the error "Invalid Conversion".Has anyone...

OLE DB Connectstring to DB2

155 byte By Alex at 2008-2-14
What is the connectstring for connecting my VB object to db2. I cannot find this any where. Right now I am using odbc but need to switch to OLE DB.

How do I call a DB2 stored proc on Mainframe from an AIX client

537 byte By ram at 2008-2-10
Hi,I need to call a DB2 (version 6.2) stored proc on Mainframe from an AIX clientusing DB2 Connect. The client is a C++ application. I dont quite knowa)what libraries etc are required to compile and link my applicationb)what is the sequence of calls I need to make to call the stored procedurei.e fro...

Connecting to DB2 via DAO from a Visual C++ program

468 byte By alex at 2008-2-9
I'm trying to access a DB2 database version 7 via Microsoft's Jet DB Engineusing DAO in a VC++ 6.0 program that's running in Windows 2000. The programwas able to open the database but when it tried to create a recordset, itis returning a message that says: The Microsoft Jet database e...

New to DB2

427 byte By Marco Mangiante at 2008-1-31
Hi,I'm a student in TLC engineering in Italy, 25 years old, and i'd like tolearn to use DB2! I'm new to DB2 and new or so to the database world! (Icreated some little database with Access...)! Please, can you tell where Ican init! There is free resource on the web that I ot look at: r...

DATE TIME Values

760 byte By Frost at 2008-1-22
Hi everyone, I hope someone can help me with my question. I have an applicationthat is written in Visual Basic and SQL Server. Recently we have been tryingto convert this App to DB2 UDB. The problem I am facing right now involvesthe DATETIME Value.Here is my SQL Statement:INSERT INTO EVENTTABLE V...

Converting DB2

143 byte By Mark at 2008-1-19
Hi, Is there any software or what is a preferable software to convert DB2 datatypes to SQL Server datatypes. THanks. Mark

Problem with ODBC and Visual C++6.0

807 byte By cheickna at 2008-1-13
Hi,I work with Visual C++6.0 SP5 under Windows 2000 SP2I have theis following problem to compile my project in visual c++6.0I want to connect to a db2 data source. If i attemp to compile my project,the following error message is display :------------------------f:\progra~1\sqllib\include\sqlext.h(16...

Table sizing

100 byte By JC at 2008-1-13
Does anyone have a sql script to generate a list of table & index sizes in UDB? thanks.

Connecting Java program to DB2 on Linux

284 byte By Jason Williams at 2008-1-12
Hello, I'm using DB2 on Linux (RedHat 7.1) and I wish to connect to the database from a Java program. In Windows, I know to go to the control panel and define a DSN. How do I do this in Linux? Thanks, Jason Williams jwilliams@wc-group.com

Command Center not loaded

441 byte By Tuan Pham at 2008-1-12
Hi,I'm using DB2 v7.1 running on Win NT. I was able to use the Command Centerfrom the program popup menu. However, lately, the Command Center did notload although I had click on the Command Center menu item.Any ideas as how I can get this one back?Thanks,Tuan PhamP.S.: When I tried to double-cl...

tuning db2

294 byte By Wally McClure at 2008-1-10
is there anything comparable to the index tuning wizard of SQL Server in DB/2? Let me ask another way, is there any automated way for the db/2 database to analyze the type of commands that are being executed on the database and to create a list of suggested indexes? Wally

UDB SQL Stored Procs

138 byte By ayub at 2008-1-10
Iam trying to write SQL Stored Procs in UDB V7 Could someone tell me the steps to create and run a Stored Proc? TIA Ayub.

DB2 Connect Affecting Sybase

379 byte By Dave Shepherd at 2008-1-10
I am working on a PC application that is connecting to DB2 OS/390 using DB2Connect. When I installed the DB2 Connect client piece along with my appon a user machine, 3 different Sybase applications no longer work. Theyare getting connection errors. Anyone else ever run into this? Any lightyou ca...

DB2 vs. Oracle

457 byte By Ed Haas at 2008-1-10
We are currently assessing DB2 UDB and how it compares to Oracle specificallyon an IBM RS/6000 platform running AIX. Our application server is going tobe IBM's WebSphere and we'll be using JSP's to query the database. Just wonderingif anybody has experience with WebSphere on Oracle or...

DB2 7.2 for Windows

264 byte By Wally McClure at 2008-1-9
I see on the ibm.com/db2 site that db2 7.2 has been released. i have download the personal developer edition. when i unzip the files, all the files are dated 4/22. Is that the correct date for the released copy of db2 7.2 for Windows? Wally

Changing DB2 Passwords in VB

199 byte By Tim Burke at 2008-1-9
Is there a way through ADO parameters, a DLL, or 3rd party software to allow a user to change their password for DB2? Any help would be greatly appreciated THanks, Tim Burke

DB2 - commom table expression - Data problem

2732 byte By Sushil Singh at 2008-1-9
Hi,Following query was running sucessfully on AIX, WAS 3.02, DB2 6.1 butwhen we apply DB2 fixpack 6.1.6, it is showing a strange behaviour.The secound column (cat_tree.cat_id) is returning me the Hexadecimalvalue instead of a string. I checked that value by reading using aHexaEditor and it is showin...

Start an external application from db2

223 byte By Bill at 2008-1-9
First of all, I know absolutely nothing about db2. I am trying to find out if db2 has something like SQL Server DTS packages that could run an external application at a certain time. Thanks for any information.

DB2: How to get active user connections thro SQL query?

180 byte By Vinay at 2008-1-8
Hi, I am new to DB2 and I want to know whether in DB2 it's possible to get active user connections thro' a SQL query. I'll appreciate any help!

DB2: mainframe vs. Unix platform

382 byte By Bob at 2008-1-8
Cusotmer is looking to add services and has decided DB2 will be the database.They have recently asked whether they should run it on their mainframe environmentor RS/6000 boxes. There is no preference for one or the other as both aresupported today. One comment was that DB2 is a processing hog on t...

Solaris 8 or Win2K? Which would you choose for DB2

38 byte By JB at 2008-1-8
Anybody have any experience with this?

how to query multiple database

265 byte By M. Ruiz at 2008-1-8
I need to access to multiple databases (in the same instance), but I don't know dow do it. select a.*, b.* from db1.table1 a, db2.table2 b where .... db1 & db2 are in the same server and in the same instance. Regards. M. Ruiz

Having trouble with Stored Proc building/compiling!

640 byte By Pete at 2008-1-7
Hello all,I have been trying to compile a stored proc in db2 with no success for awhile now (i won't say how long, 'cause it is embarassing). I have done everythingby the book, but I can't get it to work. I use the MS VC++ 6.0 compiler.I keep getting the 42904 error (compiler path not...

newby stored proc question

243 byte By Kamal Gautam at 2008-1-7
I'm new to DB2 and need to invoke a stored procedure from an external process. Can I call the SP via a command-line interface (a la SQL Server), or do I need to do it through a SQL CALL command using the DB2 client? Kamal

using VB6 to load a DB2 table.

242 byte By James at 2008-1-7
Is it possible to use VB6 to load a DB2 table from a flat file via a db2 utility? Any code samples would be appreciated. My environment is Windows NT, DB2 7.1, VB6. Thanks in advance for any help. James

insert file xml into db2 that it has datatype is blob

164 byte By tum at 2008-1-7
I can't insert file xml in db2 please tell me the method insert it. i use jsp. if there is source code about it please send to me. thank you very much

Using data link

65 byte By Jose at 2008-1-6
How I can use a data link data type if the file is in hard disk ?