Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Join inside Stored Procedure

Author  Topic 

Danny4003
Starting Member

40 Posts

Posted - 2006-10-27 : 15:22:10
What is Possible for Stored Procedure? meaning can you put anything inside a stored procedure or is there a limit. Plz bear with me just a question

Danny D

snSQL
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2006-10-27 : 15:35:29
Take a look at the help for CREATE PROCEDURE in Books Online, in particular note
quote:
sql_statement Limitations
Any SET statement can be specified inside a stored procedure except SET SHOWPLAN_TEXT and SET SHOWPLAN_ALL, which must be the only statements in the batch. The SET option chosen remains in effect during the execution of the stored procedure and then reverts to its former setting.

Inside a stored procedure, object names used with certain statements must be qualified with the name of the object owner if other users are to use the stored procedure. The statements are:

ALTER TABLE
CREATE INDEX
CREATE TABLE
All DBCC statements
DROP TABLE
DROP INDEX
TRUNCATE TABLE
UPDATE STATISTICS
Go to Top of Page

Danny4003
Starting Member

40 Posts

Posted - 2006-10-27 : 16:12:14
CAN I Put an Insert or a Join inside a Stored Procedure?
Go to Top of Page

sql_noob
Starting Member

9 Posts

Posted - 2006-10-27 : 16:46:02
yes
Go to Top of Page
   

- Advertisement -