User Profile

Collapse

Profile Sidebar

Collapse
jeffb
jeffb
Last Activity: Jul 5 '07, 09:37 PM
Joined: Feb 1 '07
Location: PA, USA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jeffb
    replied to Set Schema programmatically?
    in DB2
    bump. Any ideas, anyone?

    TIA.
    See more | Go to post

    Leave a comment:


  • jeffb
    replied to Set Schema programmatically?
    in DB2
    Thanks for the reply, but I can't find the equivalent function call for "set schema XXX". The "set schema" command is a command-line way of doing it - I need a way of doing it from within our application (I think DB2 calls it a CLI (Call level interface)). I.E.: Something along the lines of SQLSetConnectAt tr(), but which affects the current schema.

    Thanks....
    See more | Go to post

    Leave a comment:


  • jeffb
    replied to draw Tree pattern based on inputed height
    in C
    So, you're looking for final output something like:

    Code:
      /\
     /  \
    /____\
      |_|
    (Sorry - new here, and don't know if there's any way to preserve spacing other than the "code" tag)

    Right? Well, it looks like you already have a method of determining how far to space the left side of the tree... All you need to do is figure out how to calculate the spaces for the "middle"...
    See more | Go to post

    Leave a comment:


  • jeffb
    started a topic Set Schema programmatically?
    in DB2

    Set Schema programmatically?

    Is there any way to set the "current schema" programmaticall y (C++, if it matters)? I've tried both "SQL_ATTR_CLISC HEMA" and "SQL_ATTR_CURRE NT_SCHEMA" via "SQLSetConnectA ttr()" to no avail (I've verified that the chosen schema was properly set via "SQLGetConnectA ttr"() as well). The schema would "set", but it never seemed to affect any queies (I set it to something invalid, but could still...
    See more | Go to post
No activity results to display
Show More
Working...