Help! Stored procedures....

Message boards : Number crunching : Help! Stored procedures....
Message board moderation

To post messages, you must log in.

AuthorMessage
.
Volunteer tester

Send message
Joined: 3 Apr 99
Posts: 410
Credit: 16,559
RAC: 0
Message 77547 - Posted: 8 Feb 2005, 16:12:25 UTC

Are there anyone of you out there who can give a link to a good cook book on how to use stored procedures in C#??? Please help!
ID: 77547 · Report as offensive
p
Avatar

Send message
Joined: 7 Dec 04
Posts: 106
Credit: 15,334
RAC: 0
Tajikistan
Message 77552 - Posted: 8 Feb 2005, 16:22:28 UTC - in response to Message 77547.  

> Are there anyone of you out there who can give a link to a good cook book on
> how to use stored procedures in C#??? Please help!
>
A quikly googled it and theres some stuff...
HERE...try that....no specific books that i know of but sometimes the online guides can help for a short term problem or a quik fix...

<BR>AMD XP3200+
<img src="http://boinc.mundayweb.com/seti2/stats.php?userID=2327&amp;trans=off"><img src="http://petrus.homeftp.org/bws/counter_big.php?id=7828479">
<a href="http://homepage.ntlworld.com/paulandrew.odell/">MY SITE!</a>
ID: 77552 · Report as offensive
.
Volunteer tester

Send message
Joined: 3 Apr 99
Posts: 410
Credit: 16,559
RAC: 0
Message 77553 - Posted: 8 Feb 2005, 16:29:54 UTC - in response to Message 77552.  

> A quikly googled it and theres some stuff...
> HERE...try
> that....no specific books that i know of but sometimes the online guides can
> help for a short term problem or a quik fix...
>

Thanks! I already have googled and came up with the same results and have printed out some code. But if somebody out there knows about a specific book or link, please let me know!
ID: 77553 · Report as offensive
Profile Paul D. Buck
Volunteer tester

Send message
Joined: 19 Jul 00
Posts: 3898
Credit: 1,158,042
RAC: 0
United States
Message 77621 - Posted: 8 Feb 2005, 19:40:10 UTC - in response to Message 77547.  

> Are there anyone of you out there who can give a link to a good cook book on
> how to use stored procedures in C#??? Please help!

Well, the FIRST think I would like to know is which database. I know Oracle Stored procedures, and a little about MS SQL Server (blegh!), but the books would be quite different ...

Also, you may want to just think about triggers ... then you don't need to worry about invoking a stored procedure, the action against the table "fires" the trigger and the Bob's your uncle and off you go ...

The two primary reasons that you do SP or triggers is to automate database behaviors regardless of the source of the action. Also, when applied, SP/Triggers are generally faster than code written in any language.

Though, I will point out also, that using an OO language against a relational database also has to be concerned about the "friction" that exists between procedural context and OO context ... though Oracle in the 10+ versions now does also have OO capabiities ...
ID: 77621 · Report as offensive
.
Volunteer tester

Send message
Joined: 3 Apr 99
Posts: 410
Credit: 16,559
RAC: 0
Message 77634 - Posted: 8 Feb 2005, 20:44:06 UTC - in response to Message 77621.  

> > Are there anyone of you out there who can give a link to a good cook book
> on
> > how to use stored procedures in C#??? Please help!
>
> Well, the FIRST think I would like to know is which database. I know Oracle
> Stored procedures, and a little about MS SQL Server (blegh!), but the books
> would be quite different ...
>

It's a WinKompas 3 database. A Danish economic management system, which is used by a lot of Danish companies.

> Also, you may want to just think about triggers ... then you don't need to
> worry about invoking a stored procedure, the action against the table "fires"
> the trigger and the Bob's your uncle and off you go ...
>
> The two primary reasons that you do SP or triggers is to automate database
> behaviors regardless of the source of the action. Also, when applied,
> SP/Triggers are generally faster than code written in any language.
>

And my employer wants me to do SP, as they will "cover it all" in a table, and the product I'm working on is supposed to be sold for different purposes. So He doesn't want me to create procedures just for the task, I'm working on right now!

> Though, I will point out also, that using an OO language against a relational
> database also has to be concerned about the "friction" that exists between
> procedural context and OO context ... though Oracle in the 10+ versions now
> does also have OO capabiities ...
>

I know that very well! But I have earlier succeded in creating functions in classes to manipulate databases. It's a kind of semi OOP! But, you're right, it's a kind of walk over the river to swim!
ID: 77634 · Report as offensive
Profile Paul D. Buck
Volunteer tester

Send message
Joined: 19 Jul 00
Posts: 3898
Credit: 1,158,042
RAC: 0
United States
Message 77657 - Posted: 8 Feb 2005, 22:55:46 UTC - in response to Message 77634.  

> It's a WinKompas 3 database. A Danish economic management system, which is
> used by a lot of Danish companies.

I have never heard of that one ... then again, I have never been to spain either. Is that a proprietary database? Or do they run it ON something like Oracle? AH! The wonders of the Internet. Ok, i found a book and the key you NEED to start looking is in this " Microsoft SQL 2000 Desktop Engine" (<a>).

So, question one is, can that database engine do stored procedures. Then two, what is a good book for that. The bad news from me is that I can't help you. Other than to suggest you get a "real" database ... :)

Ok, seriously, mostly all you need is the syntax of the stored procedures so that you can write them, the rest is just programming using good programming practices. The books I once had (when I was still working) for SQL Server and that ilk, I was not too thrilled with any of them. So, maybe you have better information as a start place to continue the hunt.
ID: 77657 · Report as offensive
.
Volunteer tester

Send message
Joined: 3 Apr 99
Posts: 410
Credit: 16,559
RAC: 0
Message 77841 - Posted: 9 Feb 2005, 17:11:22 UTC - in response to Message 77657.  

> I have never heard of that one ... then again, I have never been to spain
> either. Is that a proprietary database? Or do they run it ON something like
> Oracle? AH! The wonders of the Internet. Ok, i found a book and the key you
> NEED to start looking is in this " Microsoft SQL 2000 Desktop Engine" (<a>).
>

It's based on MSSQL. And it's a relational database!

> So, question one is, can that database engine do stored procedures. Then two,
> what is a good book for that. The bad news from me is that I can't help you.
> Other than to suggest you get a "real" database ... :)
>

Small businesses can't afford to spend 10,000 - 15,000 $ on a license to an Oracle database, :-( so many prefer a product like the above! A full funktional economic management system. And yes, it supports stored procedures. Actually a lot of SP goes with the database. And it's some of these, my employer wants me to use, instead of building a database and create the procedures myself.

> Ok, seriously, mostly all you need is the syntax of the stored procedures so
> that you can write them, the rest is just programming using good programming
> practices. The books I once had (when I was still working) for SQL Server and
> that ilk, I was not too thrilled with any of them. So, maybe you have better
> information as a start place to continue the hunt.
>

I got [url=http://www.c-sharpcorner.com/Code/2005/Jan/DataAccessLayerforcallingSP.asp]this link<a> from Timmy aka Captain Avatar this morning, and this was just the syntax I needed and was looking for!

Thank you, Timmy!
ID: 77841 · Report as offensive
Profile PT

Send message
Joined: 19 May 99
Posts: 231
Credit: 902,910
RAC: 0
United Kingdom
Message 78345 - Posted: 11 Feb 2005, 6:29:17 UTC - in response to Message 77547.  

> Are there anyone of you out there who can give a link to a good cook book on
> how to use stored procedures in C#??? Please help!
>
Maybe my answer is a bit late but ... Yup, there are some good resources on the net. Take a look at www.asp.net and look at the "starter kit" section. You'll find some interesting web application, considered as Good Practice code from Microsoft. Install "Portal Starter Kit" and you will find loads of examples have to use SP's using C#.
Happy crunching
ID: 78345 · Report as offensive
.
Volunteer tester

Send message
Joined: 3 Apr 99
Posts: 410
Credit: 16,559
RAC: 0
Message 78413 - Posted: 11 Feb 2005, 14:51:41 UTC - in response to Message 78345.  

> > Are there anyone of you out there who can give a link to a good cook book
> on
> > how to use stored procedures in C#??? Please help!
> >
> Maybe my answer is a bit late but ... Yup, there are some good resources on
> the net. Take a look at www.asp.net and look at the "starter kit" section.
> You'll find some interesting web application, considered as Good Practice code
> from Microsoft. Install "Portal Starter Kit" and you will find loads of
> examples have to use SP's using C#.
>

Yes I have started to use the class from the link above, and it's working good so far! I haven't started to test the stored procedures, I need, yet, so that'll be next week! But thanks a lot! I can always use links to good programming sites!


I'm working home next week, so I have brought my workcomputer with me at home! It has a 17'' widescreen in it, so I plan to watch my The Lord of the Rings extended dvd's on it! :-) It has a tv card in it too, so.... :-))))!
ID: 78413 · Report as offensive

Message boards : Number crunching : Help! Stored procedures....


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.