Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Shaixpeare

    creating stored procedures

    You can create your stored procedure any way you like as long as it's supported by DB2. However, you need to be able to get the binary code into the DB2 function path on the server. After you do that, you can simply catalog the procedure using the DB2 Command Center or Dos command prompt...
  2. Shaixpeare

    SQL to get auto-generated key from last insert statement

    John, you are making this more complicated than it is. Are you familiar with DB2's "VALUE" statement; it's kind of like a select statement. Now, I don't know what language your client/server app is written in so I can't show you the specific code, but the statement itself is EXACTLY...
  3. Shaixpeare

    DB2 and LearningSpace

    Sounds like you need to restore from a backup...
  4. Shaixpeare

    How to specify DB2INSTANCE on client-only installations

    Hi Nancy, first of all, has an actual Client instance been created or was the DB2 system software merely loaded on the machine? Assuming an instance was actually created, it sounds like the userid you are using to connect to DB2 with is not sourcing /db2instancename/sqllib/db2profile. Can you...
  5. Shaixpeare

    "Catastrophic Failure" message while connecting to DB2

    Are you connecting to DB2 on the mainframe or to some other platform? Sounds like there is a possible problem with how ODBC is reading the DB2 Catalog. I assume you can connect and do queries successfully outside of your program via the DB2 Command Center or MS ACCESS or something? Anyway, the...
  6. Shaixpeare

    SQL to get auto-generated key from last insert statement

    John, here are 2 ways: 1) Values IDENTITY_VAL_LOCAL() 2) SET :HOSTVAR = IDENTITY_VAL_LOCAL() You can also, just use the IDENTITY_VAL_LOCAL() function on subsequent inserts to child tables if you need to propagate the value. Hope this helps, Todd
  7. Shaixpeare

    PC/IXF File Problem

    Does you source table happen to have columns defined as Identity fields? How about Blob fields? Any Referential Integrity constraints that are causing the errors? It's kind of hard to tell what the problem is without seeing the error messages but usually you can deal with most import problems...
  8. Shaixpeare

    licensee costs

    Off the top of my head, DB2 EE is somewhere in the neighborhood of $15,000 per processor depending on the platform of the server; but has the advantage of not having to license individual developers or users. Workgroup is licensed by user though.
  9. Shaixpeare

    DB2Connect Package Migration

    What platform is your target environment? MVS?
  10. Shaixpeare

    DB2Connect Package Migration

    Have you tried doing remote binds to your target machines from your DB2 Connect machine?
  11. Shaixpeare

    snaadmin symbol resolution failed.. HELP!!

    hmmm, any chance that sna, portions of it, or the snaadmin home directory existed on a non-rootvg filesystem on the original machine and consequently is not part of the mksysb? Just something to check...
  12. Shaixpeare

    performance tips guide for using VB with DB2

    Hi James, One quick thing you can try off the top of your head is when setting up your DB2 ODBC database source, there is an option for optimizing for Microsoft VB & Access. However, I've worked with several VB/DB2 systems and if there are performance problems, generally it's the backend...
  13. Shaixpeare

    SQL Procedure parameter limit?

    Nancy, which are you creating, a stored procedure or a user defined function? Also, exactly which version of DB2 are you doing it on? Thanks
  14. Shaixpeare

    SQL Procedure parameter limit?

    Hi Nancy, don't sweat it; the parameter limit for SQL procedures in DB2 v7.2 is 32767. You're golden ;-) Todd IBM Certified Solutions Expert
  15. Shaixpeare

    How can I subtract on day in a trigger?

    Can you post your trigger code? Thanks
  16. Shaixpeare

    Cannot alter Table in Control Center tool

    Do you mean you get an error of some kind if you attempt the altar or that you can't find the buttons to click to execute the alter? If the latter is the case, you'll want to make sure you scroll to the bottom when you bring up the Altar dialog windows; sometimes you have to do this to see the...
  17. Shaixpeare

    how to get identity values after insert into a tbale with identity col

    Hiya, Just use the IDENTITY_VAL_LOCAL()function in a SET statement or subsequent insert statement; however you want to do it. Here's an example: SET :HOSTVAR = IDENTITY_VAL_LOCAL() Hope this helps! Todd IBM Certified Solutions Expert
  18. Shaixpeare

    CREATE INDEX on a VARGRAPHIC column

    Hi Nancy, DB2 UDB v7.2 allows columns with a length > 255 bytes to be specified as part of the index key. You have to set the registry variable DB2_INDEX_2BYTEVARLEN to ON to activate it. Hope this helps... Todd
  19. Shaixpeare

    IBM AS/400 - Estimated Query Time too long. HELP?

    Increasing the timeout value is only masking the problem and may do more harm then good. What you really need to be doing is making sure your queries are coded to make use of indexes, making sure the tables have been recently reorged, etc; in other words, tuning your queries and databases. I...
  20. Shaixpeare

    AIX oslevel command problem

    Hi Jacky, I believe you are missing an AIX PTF. Make sure you have the latest maintenance fixes applied. Hope this helps...

Part and Inventory Search

Back
Top