What is the basic difference between SQL Server stored procedures (sp_) and extended stored procedures (xp_)? Why there are extended procedures anyway?
+3
A:
Extended stored procedures are written in c/c++(I believe anything that can create a DLL in native code), stored procedures are written in T-SQL
extended stored procedures exist because they allow you to do things that you cannot do in T-SQL like running DOS command (xp_cmdshell)
BTW do not name your procs starting with sp_..that is bad practice...see Don't start your procedures with SP_
SQLMenace
2010-06-16 18:14:29
+2
A:
An extended stored procedure executes code that is not SQL. It's normally written with external code like in C++.
Kevin
2010-06-16 18:14:32