Re: Is it possible to sql inject this code?
- From: "Dan Guzman" <guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jan 2006 06:51:47 -0600
The 'sp_' prefix may work for user procs but it should not be used. Below
is an excerpt from the SQL 2000 Books Online:
It is strongly recommended that you do not create any stored procedures
using sp_ as a prefix. SQL Server always looks for a stored procedure
beginning with sp_ in this order:
1. The stored procedure in the master database.
2. The stored procedure based on any qualifiers provided (database name or
3. The stored procedure using dbo as the owner, if one is not specified.
Therefore, although the user-created stored procedure prefixed with sp_ may
exist in the current database, the master database is always checked first,
even if the stored procedure is qualified with the database name.
Important If any user-created stored procedure has the same name as a
system stored procedure, the user-created stored procedure will never be
Hope this helps.
SQL Server MVP
"Dixon" <vijaydixon@xxxxxxxxx> wrote in message
> It works fine even if u use sp_ no problem in SQL Server 2000
- Prev by Date: Re: Is it possible to sql inject this code?
- Next by Date: Re: MSDE login problem - Windows
- Previous by thread: Re: Is it possible to sql inject this code?
- Next by thread: Changing SQL default port - pros/cons