Solved

SQL validation program for Cisual Basic 5.0

Posted on 1998-11-25
3
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

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…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

718 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