Results 1 to 6 of 6

Thread: How to Generate an SQL-query

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2010
    Posts
    2

    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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to Generate an SQL-query

    Welcome to the forums.

    I would suggest going through our Database FAQ section.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2010
    Posts
    2

    Re: How to Generate an SQL-query

    OK, will do, thanks!

  4. #4
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    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

  5. #5
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    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.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  6. #6
    Hyperactive Member rplcmint's Avatar
    Join Date
    Jan 2001
    Location
    Stockton, CA
    Posts
    333

    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
  •  



Click Here to Expand Forum to Full Width