共用方式為


Creating, Altering, and Removing Stored Procedures

In SQL Server Management Objects (SMO), stored procedures are represented by the StoredProcedure object.

Creating a StoredProcedure object in SMO requires setting the TextBody property to the Transact-SQL script that defines the stored procedure. Parameters require the @ prefix and must be created individually by using StoredProcedureParameter objects and adding to the StoredProcedureParameter collection of the StoredProcedure object.

請參閱

工作

How to: Create, Alter, and Remove a Stored Procedure in Visual Basic .NET

參考

StoredProcedure

其他資源

預存程序基本概念

說明及資訊

取得 SQL Server 2005 協助