Re: Insert Date and Time in SQL Server 2000 using ASP
From: Mark Schupp (nospan_at_nospam.com)
Date: 02/28/05
- Next message: Aaron [SQL Server MVP]: "Re: Insert Date and Time in SQL Server 2000 using ASP"
- Previous message: Dave Anderson: "Re: Insert Date and Time in SQL Server 2000 using ASP"
- In reply to: Aaron [SQL Server MVP]: "Re: Insert Date and Time in SQL Server 2000 using ASP"
- Next in thread: Dave Anderson: "Re: Insert Date and Time in SQL Server 2000 using ASP"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 28 Feb 2005 14:19:03 -0800
> What is the basis of your refusal to use stored procedures? Do you have
> applications that actively communicate with SQL Server, Access and Oracle
> simultaneously? Even if that's the case, doesn't it make more sense to
> encapsulate the provider-specific code within each database, than to store
> all those ad hoc queries (likely with provider-specific extensions anyway)
> in your application code?
Call it laziness if you must (I prefer to call it "refusal to deal with
Oracle any more than necessary") but we have a single application that works
unchanged against Access, Oracle, and SQLServer (there is automated logic in
the "statement building" process to deal with the different SQL dialects).
The effort to code the SQL logic into 3 separate sets of stored procedures
(and modify them for upgrades) is more than I am willing to accept at this
point in time.
Although I believe we are creating the SQL statements safely I am concerned
about SQL Injection and am considering gradually migrating to parameterized
command objects for future upgrades so I was wondering if there were any
performance "gotchas".
-- Mark Schupp Head of Development Integrity eLearning www.ielearning.com "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message news:ertPradHFHA.3628@TK2MSFTNGP15.phx.gbl... > > on a related topic I often see the recommendation to use a command object > > and parameters instead of dynamic SQL (so far I refuse to write stored > > procedures for SQL Server, Access, AND Oracle). > > The preferred order, in general, is: > > - stored procedure with command object > - stored procedure with connection object > - dynamic SQL > > I usually bypass #1 in favor of #2, because I find the syntax much more > intuitive, and debugging easier. I usually only use #1 if I require access > to output/return values. If there were other items I could inject between > #2 and #3, I would. > > What is the basis of your refusal to use stored procedures? Do you have > applications that actively communicate with SQL Server, Access and Oracle > simultaneously? Even if that's the case, doesn't it make more sense to > encapsulate the provider-specific code within each database, than to store > all those ad hoc queries (likely with provider-specific extensions anyway) > in your application code? > > A > >
- Next message: Aaron [SQL Server MVP]: "Re: Insert Date and Time in SQL Server 2000 using ASP"
- Previous message: Dave Anderson: "Re: Insert Date and Time in SQL Server 2000 using ASP"
- In reply to: Aaron [SQL Server MVP]: "Re: Insert Date and Time in SQL Server 2000 using ASP"
- Next in thread: Dave Anderson: "Re: Insert Date and Time in SQL Server 2000 using ASP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|