If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Bind in DB2 UDB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-29-05, 01:15
Pravas Pravas is offline
Registered User
 
Join Date: Jun 2005
Posts: 16
Bind in DB2 UDB

hi,

I am new to db2. Can any one explain me what is Bind in db2 udb?
why is it Used for?
if possible please explain me with a small example.

your help is really appreciated



Thanks in Advance.
Reply With Quote
  #2 (permalink)  
Old 11-29-05, 03:17
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
bind

The bind procedure is for static programming with DB2 calls.
The sql code is extracted from the source, prepared and saved in the database.This gives the advantage that the plan definition/authorities don't have to be created for each executing, but is done once.
There is still a relation between the executable module and the bind file.
For more details, see the application programming guide...
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #3 (permalink)  
Old 11-29-05, 06:11
gardenman gardenman is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
The main feature of Static SQL is that the query plan is stable, and is known before statement is being invoked. The one is formed at bind time.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On