Create Runtime SQL Query

G

Guest

I have to create an SQL statement at run time based on the items the user
selects on a report menu. The SQL statement gets quite complex if you have
13 menu items each having associated WHERE cretria. I'm using StringBuider to
build the statement

Is there a simple way to create an SQL statement?. Is there a procedural
methodology I should follow when developing the statement? Is there
something free on the web I can maybe pass parameters and it returns a SQL
string? I've already broken the statement into parts. The table,
table.field, AND's and the OR's get real confusing real fast.

Thanks
Steve
 
T

Triax

Steve B. said:
I have to create an SQL statement at run time based on the items the user
selects on a report menu. The SQL statement gets quite complex if you
have
13 menu items each having associated WHERE cretria. I'm using StringBuider
to
build the statement

Is there a simple way to create an SQL statement?. Is there a procedural
methodology I should follow when developing the statement? Is there
something free on the web I can maybe pass parameters and it returns a SQL
string? I've already broken the statement into parts. The table,
table.field, AND's and the OR's get real confusing real fast.

Thanks
Steve

Yes. EasyObjects lets you build dynamic SELECT statements on the fly, for
both SQL Server and Oracle.

http://www.easyobjects.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top