navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

stored procedure questions

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> stored procedure questions
Page: [1]
 
crosscreek

 

Posts: 107
Joined: 2/5/2008
Status: offline

 
stored procedure questions - 3/21/2008 21:04:20   
I am trying to make my pages a little faster with stored procedures.

I've been reading about them & have the idea on how to make them & execute them I do have a couple of questions that I haven't been able to find the answer to.

Where to you write the Create stored procedure codess?
.....Do you create a seperate page & "include" the page where you need it (with include file) OR do you create the SP in the connection page? I am using an <!-- #include file="connections.asp" --> (or does it really matter as long as you include the file)

Can you write multiple stored procedures on one page? Is there a way to keep them seperate?

Thanks for everyones help...


ou812

 

Posts: 1539
Joined: 1/5/2002
From: San Diego
Status: offline

 
RE: stored procedure questions - 3/21/2008 21:33:16   
Normally, stored procedures are written with whatever but are stored along with the database, to be ran by the database, and you call them when needed. But maybe I'm not understanding? What DB are you using?

_____________________________

-brian

EnterpriseDB: Enterprise-class relational database management system
PostgreSQL: The world's most advanced open source database

(in reply to crosscreek)
crosscreek

 

Posts: 107
Joined: 2/5/2008
Status: offline

 
RE: stored procedure questions - 3/21/2008 21:42:32   
I'm using mysql & mysql is through my hosting company

I may not be the one understanding.

(in reply to ou812)
ou812

 

Posts: 1539
Joined: 1/5/2002
From: San Diego
Status: offline

 
RE: stored procedure questions - 3/21/2008 21:56:54   
I haven't worked with the MySQL engine for quite a while, but I think you should just be able to write your stored procedure while in SQL mode on while on your host (unless it has some handy stored procedure button). Of course, you can write them ahead of time with notepad, or whatever, and then just copy/paste them into the SQL window on the host. Then as you need the SP, you call it as needed in your ASP code. And you can write as many as needed while on your host in SQL mode, and then call whatever whenever in your ASP code.

If you've got down how to write them and call them, you should be good to go. Not sure if that helps.

_____________________________

-brian

EnterpriseDB: Enterprise-class relational database management system
PostgreSQL: The world's most advanced open source database

(in reply to crosscreek)
crosscreek

 

Posts: 107
Joined: 2/5/2008
Status: offline

 
RE: stored procedure questions - 3/21/2008 22:09:21   
It does, or it gives me a start. I don't see a "stored procedure" button (now wouldn't that make it easier:))

But will try the SQL method as suggested.

This points me in the right direction.

(in reply to ou812)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> stored procedure questions
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts