Solved

SQL validation program for Cisual Basic 5.0

Posted on 1998-11-25
3
191 Views
Last Modified: 2010-03-19
I need a validation program from SQL that works on Visual Basic 5.0 with the codes that it has.
0
Comment
Question by:delganic
  • 2
3 Comments
 

Author Comment

by:delganic
ID: 1091986
Adjusted points to 20
0
 

Author Comment

by:delganic
ID: 1091987
Edited text of question
0
 
LVL 1

Accepted Solution

by:
Eklipse earned 20 total points
ID: 1091988
Please be a little more specific
Look a this code
I supposse that you have a public Database called DB already open
function ValidateSQL(SQLString as string) as long
Dim r as recordset
On error goto VError
Set r=db.openrecordset(sqlstring,dbopensnapshot)
ValidateSQL=0
r.close
Exit sub
VError:
ValidateSQL=err.number
end sub

This simple program returns 0 when success,else returns a code error

It could be a very simple method to test validate an sql string
,but I guess that you are looking something better.

Greetings
Fer

0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how the fundamental information of how to create a table.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now