| DotNetFirebird Using Firebird SQL in .NET. |
|
Home
Features
Download
Documentation
FAQ
Tools and Code
About
Blog
|
Monday, February 14, 2005
EXECUTE STATEMENTThis statement executes SQL or DDL command specified as a (string) parameter. It is a great tool for stored procedures where you can dynamically create the SQL code to be executed. Syntax: /* For statements that return nothing or a single row */ Example: SET TERM ^ ; You see that this is a really dumb example. It doesn't create the SQL dynamically so there is no reason to call it using EXECUTE STATEMENT. Ability to create the SQL dynamically gives you much more power in your stored procedures. EXECUTE STATEMENT can be used for example for:
Comments:
Hello,
we are making a vb.net/MSDE software now that will be installed on hundreds of pc's, and because of the MSDE 2Gb limitation, well... we are thinking about another solution. One of the main point point for us is the ability to create dynamically a database, and execute SP so this new database could be loaded with data. The name and location of the new database are variable. With MSDE, big trouble : we HAVE TO create and use dynamic SP, because database name is not constant. Does Firebird have the same behviour ? Eric - from Tunisia.
I see no problem with having variable database name in Firebird.
For creating the database structure dynamically you can run batch SQL/DDL scripts using FbScript class. Blog comments are closed.
Previous
Archives
Copyright © 2005 - 2007 DotNetFirebird |