473,287 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

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 3437
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****@PurplePandaChasers.Moertherium> 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****@PurplePandaChasers.Moertherium> 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****@PurplePandaChasers.Moertherium> 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*********@comcast.net> wrote:
"Tim Marshall" <TI****@PurplePandaChasers.Moertherium> 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
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...
2
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...
2
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...
5
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...
2
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...
0
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...
45
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
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...
11
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.