473,748 Members | 2,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stored Procedures?

I was following the thread "Re: Access Treeview - Is it Safe Yet?" with
interest and on reading the post describing Lauren Quantrell's
SmartTree, I've run into something I don't understand: Stored
Procedures. I thought stored pricedures were an Oracle/MS SQL Server
thing and don't know how they work with Access Jet. I've looked at some
of the help on stored procedures in A2003, but really don't understand
what's going on.

Can someone explain this in a relatively simple way?

Thanks very much in advance for anything on this.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #1
5 3485
Br
Tim Marshall wrote:
I was following the thread "Re: Access Treeview - Is it Safe Yet?"
with interest and on reading the post describing Lauren Quantrell's
SmartTree, I've run into something I don't understand: Stored
Procedures. I thought stored pricedures were an Oracle/MS SQL Server
thing and don't know how they work with Access Jet. I've looked at
some of the help on stored procedures in A2003, but really don't
understand what's going on.

Can someone explain this in a relatively simple way?

Thanks very much in advance for anything on this.


You are correct. She is using an ADP (Access Project) linked to an SQL
server.
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Nov 13 '05 #2
"Tim Marshall" <TI****@PurpleP andaChasers.Moe rtherium> wrote
Stored Procedures. I thought stored procedures were an Oracle/MS SQL
Server thing and don't know how they work with Access Jet. I've looked at
some of the help on stored procedures in A2003, but really don't
understand what's going on.


I experimented with using stored procedures in an mdb-mdb FE-BE setup,
thinking that there might be some performance gain. After all the pain in
the butt to set them up using ADOX, I found that there was absolutely no
performance difference from a regular Jet stored query, and in fact, the
similarity in time was so very similar even over large tables that I suspect
that they are exactly the same internally in Jet.

In short, any text that says you can use stored procedures in Jet (4.0) is
wasting your time.
--
Darryl Kerkeslager

Power corrupts.
Absolute power corrupts absolutely.
Knowledge is power.
See www.adcritic.com/interactive/view.php?id=5927
Nov 13 '05 #3
Darryl Kerkeslager wrote:
"Tim Marshall" <TI****@PurpleP andaChasers.Moe rtherium> wrote

I experimented with using stored procedures in an mdb-mdb FE-BE setup,


Thanks very much to you, Darryl, and to Bradley, also.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #4
Jet MDB's support very simple stored procedures using
Jet or ODBC SQL and VB inbuilt functions.

When Jet MDB's are used with Access, you can also use
user defined functions built in VBA and stored in the
database.

But using Jet MDB's, you can't use Triggers or
Transact-SQL, the programming language of MS SQL Server.

Jet queries are procedures, and they are stored in the
database: they are stored procedures.

To many people, stored procedures aren't stored procedures
unless they say "procedure" at the top. Jet now has this
ability to store procedures with this magic word included.
The Access help files tell you how to create stored procedures
that have the word "procedure" at the top.
Access/Jet used to delete the redundant text if you put
"procedure" at the start of your stored SQL.
Today, the ability to use Declarative Referential Integrity
in SQL Server means that the most important demand for simple
stored procedures in SQL Server no longer exists. Today,
stored procedures in SQL Server are only used for complex
tasks, the kind of thing you would do in Access using a
VBA user defined function. That means that when SQL Server
people now talk about stored procedures, they are talking
about complex stored procedures, written in Transact-SQL.

The ability to create and store "procedures " in a Jet
MDB does not give you the ability to use Transact-SQL
or Triggers - the important features of Stored Procedures
in SQL Server.

Access/Jet does give you the ability to use VBA stored
procedures (like the next version of SQL Server will have),
but the VBA stored procedures aren't available to C++/ASP/VB/.NET
clients, so for all those people, Jet/MDB doesn't support
the kind of stored procedure that they would be interested in.
(david)

"Tim Marshall" <TI****@PurpleP andaChasers.Moe rtherium> wrote in message
news:dg******** **@coranto.ucs. mun.ca...
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with
interest and on reading the post describing Lauren Quantrell's SmartTree,
I've run into something I don't understand: Stored Procedures. I thought
stored pricedures were an Oracle/MS SQL Server thing and don't know how
they work with Access Jet. I've looked at some of the help on stored
procedures in A2003, but really don't understand what's going on.

Can someone explain this in a relatively simple way?

Thanks very much in advance for anything on this.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto

Nov 13 '05 #5
On Sun, 11 Sep 2005 22:45:47 -0400, "Darryl Kerkeslager"
<ke*********@co mcast.net> wrote:
"Tim Marshall" <TI****@PurpleP andaChasers.Moe rtherium> wrote
Stored Procedures. I thought stored procedures were an Oracle/MS SQL
Server thing and don't know how they work with Access Jet. I've looked at
some of the help on stored procedures in A2003, but really don't
understand what's going on.


I experimented with using stored procedures in an mdb-mdb FE-BE setup,
thinking that there might be some performance gain. After all the pain in
the butt to set them up using ADOX, I found that there was absolutely no
performance difference from a regular Jet stored query, and in fact, the
similarity in time was so very similar even over large tables that I suspect
that they are exactly the same internally in Jet.


It is exactly as you say. In ADO, the metaphor for a stored action query is a
stored procedure. That's just the ADO language for the same thing.
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
10756
by: jrefactors | last post by:
I want to know the differences between SQL Server 2000 stored procedures and oracle stored procedures? Do they have different syntax? The concept should be the same that the stored procedures execute in the database server with better performance? Please advise good references for Oracle stored procedures also. thanks!!
2
2821
by: scott | last post by:
Hi, Just wondering what sort of problems and advantages people have found using stored procedures. I have an app developed in VB6 & VB.NET and our developers are starting to re-write some of the code in stored procedures (im advocating encryption of them). When deploying an application however stored procedure seem to add another level of complexity to installation. In future we also plan to have an basic ASP app with some of the...
2
9244
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered problems doing this. I wanted to implemented a generic "Helper" class like this: /** * Helper
5
3395
by: Rhino | last post by:
I am trying to determine the behaviour of stored procedures in DB2 V8.2.x in Windows/Unix/Linux and how I can control that behaviour. Some documentation in the manuals is confusing the issue somewhat. First, am I right in understanding that the normal behaviour of a stored procedure, fenced or unfenced, is to only go into memory when it is invoked and to be swapped out of memory when it is not needed any more? Second, am I right in...
2
3333
by: Eli | last post by:
Hi all We currently have a strange problem with calling a Stored Procedure (SQL Database) in our C# Project. The only error I get is "System error" which says a lot :) Background: We have several stored procedures to Insert and update datas in our SQL database. Some stored procedures are smaller (insert datas in only one table) and some of them are quite big (insert datas in several
0
2650
by: Amber | last post by:
Stored procedures are faster and more efficient than in-line SQL statements. In this article we will look at two SQL Server stored procedures; one using an input parameter and one not, and see how to call them from an ASP.Net page Every modern database system has a stored procedure language. SQL Server is no different and has a relatively sophisticated and easy to use system. This article will not attempt to go into depth in explaining...
45
3407
by: John | last post by:
Hi When developing vb.bet winform apps bound to sql server datasource, is it preferable to use SELECTs or stored procedure to read and write data from/to SQL Server? Why? Thanks Regards
28
72546
by: mooreit | last post by:
The purpose for my questions is accessing these technologies from applications. I develop both applications and databases. Working with Microsoft C#.NET and Microsoft SQL Server 2000 Production and 2005 Test Environments. What is the purpose of a view if I can just copy the vode from a view and put it into a stored procedure? Should I be accessing views from stored procedures?
11
3441
by: peter | last post by:
I am trying to get a SQL stored procedure to use user maintained MQT implicitly which raises questions on when they are used or not used. In theory you would expect the stored procedure to pick up the MQT at the time it is bound on the creation of the static SQL. This raises the question on how you stop it or start it using a MQT as there is no option on the bind. What happens when it is rebound? What happens if the plan is made invalid...
0
9562
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.