Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: Converting Queries into Stored Procedures??


Message #1 by "david j potter" <djpotte@p...> on Thu, 6 Feb 2003 17:09:25
Does anyone have any directions on how to convert MS Access Queries into 
Stored Procedures so that I can use them in DreamweaverMX?
Message #2 by "Ken Schaefer" <ken@a...> on Fri, 7 Feb 2003 11:11:47 +1100
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "david j potter" <djpotte@p...>
Subject: [access_asp] Converting Queries into Stored Procedures??


: Does anyone have any directions on how to convert MS
: Access Queries into Stored Procedures so that I can
: use them in DreamweaverMX?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Access doesn't have "Stored Procedures". All is has is "parametised queries"
which you can save in the .mdb file.

This may be different if you create an Access Data Project (ADP) that uses
the MSDE engine instead. If that's the case, you need to read SQL Server
Books Online for syntax. But basically it'll look something like:

CREATE PROCEDURE usp_MyTestSproc

    @MyFirstParam    varChar(100),
    -- Other parameters here

AS

    DECLARE @MyVariable    int
    -- Declare other variables here

    -- Query goes here

GO

GRANT EXEC ON usp_myTestSproc TO PUBLIC

GO

Books Online can be downloaded from:
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

Cheers
Ken



  Return to Index