Results 1 to 4 of 4

Thread: How to Write stored procedure in SQL Server

  1. #1
    Join Date
    Aug 2008
    Posts
    90

    How to Write stored procedure in SQL Server

    How to use the stored procedure in SQL Server 2000, I think there is only one way to create a stored procedure: as a T-SQL statement. That was the course to take in every previous edition of SQL Server. Please let me know if there is any other method to implement.

  2. #2
    Join Date
    Feb 2006
    Posts
    167

    Re: How to Write stored procedure in SQL Server

    I think your problem solution is here: To create a stored procedure
    1. In Object Explorer, connect to an instance of Database Engine and then expand that instance.
    2. Expand Databases, expand the database in which the stored procedure belongs, and then expand Programmability.
    3. Right-click Stored Procedures, and then click New Stored Procedure.
    4. On the Query menu, click Specify Values for Template Parameters.
    5. In the Specify Values for Template Parameters dialog box, the Value column contains suggested values for the parameters. Accept the values or replace them with new values, and then click OK.


    for more information please check here.

  3. #3
    Join Date
    Dec 2008
    Posts
    202

    Re: How to Write stored procedure in SQL Server

    The Base Class Library includes classes that provide functionality for improved string functioning, advanced math operations, file access, cryptography, and more. The first thing we need to do is write our .Net code for our Stored Procedure and compile it. In this case, we are simply going to send the string "Hello World from SQLCLR !!" back to the client. .NET languages such as VB .NET and C# offer object-oriented capabilities such as encapsulation, inheritance and polymorphism.

  4. #4
    Join Date
    Jan 2009
    Posts
    143

    Re: How to Write stored procedure in SQL Server

    Naturally, you must specify what usp_blahCookies means. SQL 2005 makes this easy. In order for us to use this code in SQL Server 2005 we must first compile it into an assembly. We can then load it into SQL Server and create our TSQL Stored Procedure header for our .Net code. In SQL Server Management Studio, under the Object Explorer, expand the database you want to add the Stored Procedure to, expand Programmability, right-click on Stored Procedures and select New Stored Procedures.

Similar Threads

  1. Stored procedure in MySQL database
    By Ameeryan in forum Software Development
    Replies: 5
    Last Post: 04-03-2010, 10:31 PM
  2. How to call SQL server with ASP views and stored procedure?
    By Acalapati in forum Software Development
    Replies: 4
    Last Post: 13-02-2010, 01:51 AM
  3. Use Of Stored Procedure in SQL Server
    By technika in forum Software Development
    Replies: 5
    Last Post: 30-01-2010, 11:24 AM
  4. What is sqlca Informix stored Procedure
    By Bosch in forum Software Development
    Replies: 3
    Last Post: 13-08-2009, 01:57 PM
  5. How to create, deploy and use DB2 stored procedure
    By garfield1 in forum Software Development
    Replies: 3
    Last Post: 08-08-2009, 11:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,726,931,292.94960 seconds with 17 queries