473,323 Members | 1,570 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,323 software developers and data experts.

Embedded Stored Procedure within App

Hi all,

We have an application with is store procedure dependent. I'm looking for a
way to simplify our deployment by embedding Stored Procedures within our
application so that we do not have to "keep track" of which SPs to promote.
Basically if we can just "build and release" that will be idea.

So how do you guys manage your stored procedures? I'm thinking of two
possiblities:

1. Store the SPs in a the resouce file

2. Store the SQL scripts in a folder, then dynamically load the SPs when
they're needed.

I like Option #1 because all required SPs are deployed with the binary...
but editing a resource file is pain with the default VS.NET editor.

Option #2 provides a lot of flexiblity - we can modify SPs to suit certain
customer requirements... but synchronizing releases will be difficult.

Any other ideas?

Thanks!

Nov 23 '06 #1
4 904

Spam Catcher wrote:
Hi all,

We have an application with is store procedure dependent. I'm looking for a
way to simplify our deployment by embedding Stored Procedures within our
application so that we do not have to "keep track" of which SPs to promote.
Basically if we can just "build and release" that will be idea.

So how do you guys manage your stored procedures? I'm thinking of two
possiblities:

1. Store the SPs in a the resouce file

2. Store the SQL scripts in a folder, then dynamically load the SPs when
they're needed.

I like Option #1 because all required SPs are deployed with the binary...
but editing a resource file is pain with the default VS.NET editor.

Option #2 provides a lot of flexiblity - we can modify SPs to suit certain
customer requirements... but synchronizing releases will be difficult.

Any other ideas?

Thanks!
I go with option 3:
Build a seperate Update utility that has ALL the stored procedures
(internally, as resources). then it can check the database to see which
updates have already been applied, then it applies the ones it needs.

Nov 23 '06 #2
lo*********@gmail.com wrote in
news:11**********************@m7g2000cwm.googlegro ups.com:
I go with option 3:
Build a seperate Update utility that has ALL the stored procedures
(internally, as resources). then it can check the database to see
which updates have already been applied, then it applies the ones it
needs.
But how do you track the version of a SP?

What if the SP was purposefuly customized for a customer?

Are there custom properties that can be used to flag these sort of details?

Nov 23 '06 #3

Spam Catcher wrote:
lo*********@gmail.com wrote in
news:11**********************@m7g2000cwm.googlegro ups.com:
I go with option 3:
Build a seperate Update utility that has ALL the stored procedures
(internally, as resources). then it can check the database to see
which updates have already been applied, then it applies the ones it
needs.

But how do you track the version of a SP?

What if the SP was purposefuly customized for a customer?

Are there custom properties that can be used to flag these sort of details?
Ahh! all good questions! These issues have not actually been resolved
(this tool was just started last Friday! ;)).
But yes, I will have to deal with these some time soon. I'm not too
worried about SP versioning, for my app it's ok to drop an old version
and just cram the new one in. If that's not OK, maybe just a comment at
the begining of the stored procedure saying
"Version:1.4.2" or something?
Hmm I guess I have some research to do...

Nov 23 '06 #4
lo*********@gmail.com wrote in
news:11**********************@l12g2000cwl.googlegr oups.com:
>But how do you track the version of a SP?

What if the SP was purposefuly customized for a customer?

Are there custom properties that can be used to flag these sort of
details?

Ahh! all good questions! These issues have not actually been resolved
(this tool was just started last Friday! ;)).
But yes, I will have to deal with these some time soon. I'm not too
worried about SP versioning, for my app it's ok to drop an old version
and just cram the new one in. If that's not OK, maybe just a comment
at the begining of the stored procedure saying
"Version:1.4.2" or something?
Ya I'm thinking of tagging my SPs - perhaps wrapping the SP in a XML
container.

Personally I don't like SPs - but some of our integrators are not
programmers... and SP scripting is the closest they'll come to programming
with an API :S
Nov 23 '06 #5

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

Similar topics

0
by: M Wells | last post by:
Hi All, I don't know if this is a truly esoteric question, or not, but I'm wondering how (or even if) you handle a timeout on a transaction within a stored procedure executed in a Stored...
4
by: Rhino | last post by:
Is it possible for a Java Stored Procedure in DB2 V7.2 (Windows) to pass a Throwable back to the calling program as an OUT parameter? If yes, what datatype should I use when registering the...
8
by: Thomasb | last post by:
With a background in MS SQL Server programming I'm used to temporary tables. Have just started to work with DB2 ver 7 on z/OS and stumbled into the concept of GLOBAL TEMPORARY TABLE. I have...
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: Leon | last post by:
How can I code a stored procedure "within my codebehind page" that execute two or more stored procedures within a transaction? if so how would I pass values to each parameter? i.e. Begin Tran...
25
by: VictorReinhart | last post by:
Hi, I am intersted in trying to reduce the cost of C# development, by reducing the number of lines of code. In my opinion, as a business developer, the biggest opportunity to reduce the number of...
0
by: gregoryday | last post by:
I am having a problem with creating a stored procedure. The premise underwhich we are operating is the following: We are working with two tables. The first table simply stores an integer value...
0
by: SOI_0152 | last post by:
Hi all! Happy New Year 2008. Il hope it will bring you love and happyness I'm new on this forum. I wrote a stored procedure on mainframe using DB2 7.1.1 and IBM language c. Everything works...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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: 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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.