Re: validate sql syntax

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Sharon (talsharon_at_hotmail.com)
Date: 04/10/04


Date: Sat, 10 Apr 2004 22:11:51 +0200

it is not clear from what you wrote, whether you are using
a single method for all types of data access,
or that you are trying to validate a query for a specific type of data
access
in a specific method.
usually different methods are used for different types of data access.
you don't even have to implement it.
check out Data Access Application Block for .NET:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/daab-rm.asp

"Jarod_24" <jarod_24@hotmail.com> wrote in message
news:62fcb500bb34e90bea33c19387893d44@news.teranews.com...
>
> "Sharon" <talsharon@hotmail.com> wrote in message
news:%237hnnZwHEHA.3356@TK2MSFTNGP11.phx.gbl...
> > do you use a single method for all types of query?
>
>
> ?!?!
> I am asking if there exists a method to do this.
>
>
> >
> > "Jarod_24" <jarod_24@hotmail.com> wrote in message
> > news:97d07e4d3e8d763ec7134e1c9c87d0a3@news.teranews.com...
> > > How do i check if a sql-string has corect syntax.
> > >
> > > With select-statements you can just use a Datareader, since no data is
> > changed in the database, but i'm working with other
> > > statements as well, and need to just verify that the syntax of the
string
> > is correct, and determine if it is a select, update,
> > > insert or delete statement.
> > >
> > > I've looked but can't seem to find a class that does this.
> > >
> > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Generating a one-record ouptut from a query-based data access page
    ... I have a query that will show ... What I want to be able to do is, within the data access page that results ... So if I want more info on "Flying away," clicking ... (create a filter for the target access page, ...
    (microsoft.public.access.gettingstarted)
  • How can I do SQLXML-like things using ADO.NET?
    ... Must be able to get XML from SQL Server 2000 and ... an ExecuteScalar in the Data Access Layer, putting the result into a string, ... putting that into a string builder and using ds.ReadXml on that. ... 8K on SQL Server 2000? ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: ObjectDatasource - Does it support multiple data tables?
    ... As for the multiple data tables query with objectdatasource, ... we can consider the customization on the data access ... In our custom data access component class, ...
    (microsoft.public.dotnet.framework.aspnet)
  • C# Data Access Best Practice
    ... I have a general question on best practice regarding data access. ... The method takes a string as its parameter, ... SqlDataReader and then returns the SqlDataReader. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Get sql server sp Parameters from system tables or sp...
    ... You can use the INFORMATION_SCHEMA views in SQL Server to get at the ... contains all the parameters for stored procedures. ... > the data access application block. ... > to do this I would like to use a query that given the name of an sp will ...
    (microsoft.public.sqlserver.programming)