Ask a Question related to ASP.NET General, Design and Development.
-
mono #1
Re: Your opinion about stored procedures
I agree with nic and patrice. I'd advise further that you use the Command
object and avoid ALL SQL building in ASP. Not only is this often faster but
more importantly it protects you to some extent from SQL injection.
michael
"VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
news:OFJL7sCBDHA.1604@TK2MSFTNGP10.phx.gbl...stored> Starting a new ASP.NET web app. What is your opinion. Should I usedsql> procedures for ALL the SQL statements in my app? Or should I use inline> (or another method) for simple SELECT queries, etc...
>
> Thanks,
> Robert
>
>
mono Guest
-
Stored Procedures
Hi all, I'm a little confused about how to obtain a result set from a stored procedure (stored in a Visual FoxPro 8.0 database) from an ASP.NET... -
Stored Procedures JDBC
Hi I'm calling a Teradata stored procedure using JDBC. My code (which someone has helped me with as I'm not a java person) is below: <cfset... -
dt_ Stored Procedures
Please could you tell me if it is safe to remove the dt_ stored procedures from my database? I have spent some time searching the web/groups for... -
New to ASP and Stored Procedures
Hi I have some experince with ASP and databases in General, however Stored Procedures are new. I need to call a stored procedure and have bene... -
Stored Procedures and 4GL
Hello, I am using Informix 7 se database. Is it possible to call a 4GL program from a stored procedure? Thanks Ahmer -
David Waz... #2
Re: Your opinion about stored procedures
Stored procedure is my vote -
Remember to use Parameters collection, and not just tacking your parameters
behind an EXEC statement, otherwise you still have 100% of the injection
problem.
Also, Windows CE - Cannot really use storedprocedures, but I've been placing
my local sql statements into XML files, and created a wrapper class to help
aviod the injection problem, and to make updates much easier.
"mono" <mikeg@n_o_s_p_a_mcimage.com> wrote in message
news:ueSRPwjQDHA.3880@tk2msftngp13.phx.gbl...but> I agree with nic and patrice. I'd advise further that you use the Command
> object and avoid ALL SQL building in ASP. Not only is this often faster> more importantly it protects you to some extent from SQL injection.
>
> michael
>
> "VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
> news:OFJL7sCBDHA.1604@TK2MSFTNGP10.phx.gbl...> stored> > Starting a new ASP.NET web app. What is your opinion. Should I used> sql> > procedures for ALL the SQL statements in my app? Or should I use inline>> > (or another method) for simple SELECT queries, etc...
> >
> > Thanks,
> > Robert
> >
> >
>
>
David Waz... Guest
-
Ray Dixon [MVP] #3
Re: Your opinion about stored procedures
Hi Robert,
I agree with what Patrice and Nic wrote. Also, something to consider is the
possiblity of adding a Win Forms client to your app in the future - for
administration and/or users. Having your data access separated from
everything else makes it much easier to do this. ;-)
--
Ray Dixon - Microsoft MVP
[email]ray@NOSPAM.greeble.com[/email]
(remove NOSPAM. from my e-mail address for a direct reply)
"VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
news:OFJL7sCBDHA.1604@TK2MSFTNGP10.phx.gbl...stored> Starting a new ASP.NET web app. What is your opinion. Should I usedsql> procedures for ALL the SQL statements in my app? Or should I use inline> (or another method) for simple SELECT queries, etc...
>
> Thanks,
> Robert
>
>
Ray Dixon [MVP] Guest
-
Peter Gossmann #4
Re: Your opinion about stored procedures
Hi Robert!
I would strongly recommend to have a look at the Data Access Block
from Microsoft. The SQl helper class provides easy access to stored
procedures and allows you to call them without having to bother with
parameters.
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/daab-rm.asp[/url]
We used the SQLHelper and extended it, so that it also handles Typed
Datasets etc.
We use only StoredProcedures. With this we try to encapsulate the
database and have a cleaner DataAccessLayer. Our DBA is reviewing the
StoredProcs without having to dig into the .Net programm code.
Hope this helps
Peter
Peter Gossmann Guest



Reply With Quote

