|
-
Jun 29th, 2010, 04:54 AM
#1
Thread Starter
New Member
How to Generate an SQL-query
Hey i am pretty new to visual basic, so i am a big noob :P.
i was wondering if you can make a program, that generates SQL-Query(or just text), depending on what data you've entered in different fields? And if so, How?
plz help me,
Best regards,
Frathir
-
Jun 29th, 2010, 06:02 AM
#2
Re: How to Generate an SQL-query
Welcome to the forums. 
I would suggest going through our Database FAQ section.
-
Jun 29th, 2010, 06:40 AM
#3
Thread Starter
New Member
Re: How to Generate an SQL-query
OK, will do, thanks!
-
Jun 30th, 2010, 01:27 PM
#4
Re: How to Generate an SQL-query
I am not able to understand your requirement?
Are you looking for a program that does this for you or do you want to write a program that will automatically generate SQLs?
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Jun 30th, 2010, 08:50 PM
#5
Re: How to Generate an SQL-query
If it's the second and you want to write your own program then you should have a good understanding of sql.I have done this a couple of years ago(a company did not want to expose the sql to the users and instead they paid us to make a sql like query analyzer).
I cannot give code apparently but i used datatables for simulation.
It took me about a month 
But my knowledge was not very good at sql(not that i'm a guru now) so i ended up checking string (with the query code) and cutting double on's and where's and multiple tables.If i remember correctly it was about 7-10000 lines of code, along with the interface,drawing tables,drowning join lines etc 
I admit the code was purely written so my advise is to first learn a fair amount of sql before you try this.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Jul 2nd, 2010, 01:09 AM
#6
Hyperactive Member
Re: How to Generate an SQL-query
Frathir,
Both Access and SQL Server have a Query Designer tool that can help generate SQL code and queries. Check it out...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|