Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / May 2007

Tip: Looking for answers? Try searching our database.

why do proC files to be binded to DB2 Database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pai - 09 May 2007 06:25 GMT
Hi all,

 I was just thinking why do *bnd files to be binded with the DB2
Database.

Thanks
Pai
Knut Stolze - 09 May 2007 09:23 GMT
> Hi all,
>
>   I was just thinking why do *bnd files to be binded with the DB2
> Database.

Bind files contain the SQL statements extracted from embedded SQL programs.
When binding those files to a database, the SQL statements in them are
validated and compiled into a DB2-internal access plan.  Thus, the
compilation is not necessary when invoked again later during runtime of
your applications.

DB2 gets the control over the packages (which are created from bind files).
So DB2 can ensure that no one messes with the statements and, for example,
grant broader access.

Doing away with bind files is only an option if you stick with dynamic SQL
(like JDBC does), or if you would add something specific for each
programming language.  But that will be quite complicated and insecure
because DB2 can't ensure that pre-compiled access plans are actually valid.

Signature

Knut Stolze
DB2 z/OS Utilities Development
IBM Germany

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.