Solved

using Stored Procedures for Access97

Posted on 1998-08-27
3
207 Views
Last Modified: 2010-03-19
HI,
how do i use a stored procedures of sQL SErver 6.5 from within Access97 environment?
thanks.
0
Comment
Question by:msali
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
DennisH earned 20 total points
ID: 1089791
Create a new query.  Select Query/SQL Specific/Pass Through from the menu. In the SQL window type the following SQL statement.

EXEC sp_myprocedure

Where sp_myprocedure is the name of your stored procedure.

Open the properties window for the query and set the properties.  Pay close attention to setting the Connect string and the "ReturnsRecords" properties correctly.  Save your query and test it.
0
 

Author Comment

by:msali
ID: 1089792
How about the parameters?
0
 
LVL 1

Expert Comment

by:DennisH
ID: 1089793
You did not ask about parameters.  You use the same format except you add the arguments in the correct order.

Example:
EXEC sp_esr_CalculateStatistics 'E', 1, 1997

You must pass the arguments as the proper data type.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question