Results 1 to 2 of 2

Thread: SQL Validation

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Exclamation

    I have a Visual Basic 6.0 form used for querying a MS SQl 7.0 database.

    I have a text box with comparison operators as buttons over it. The user can select fields from a database table via a button which pops up a dialog box containing a list box with the column names from the database.

    THe comparion operators nd the database column names when select appear in the textbox. The textbox then has a partial SQl string in it which can be used to query the database in the WHERE clause.

    I need to know how to validate the code in an error routine so as to pass a valid SQL statement.

    Thanks.

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    SQL server, itself, should do a pretty good job of validating your SQL. Assemble your query and submit it to the parser...

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