Solved

SQL validation program for Cisual Basic 5.0

Posted on 1998-11-25
3
202 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

839 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