If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Use of Stored Procedures as opposed to views.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-04, 07:18
step4tac step4tac is offline
Registered User
 
Join Date: Apr 2004
Posts: 5
Cool Use of Stored Procedures as opposed to views.

Hi there,

I am converting a database from MS-Sql to My-SQL. (My application is an ASP website)

The MS-SQL database currently makes extensive use of views.

From what I understand, My-SQL currently doesn't support views. This obviously makes my conversion process very difficult.

Someone suggested to me that I should investigate using Stored Procedures as opposed to views.

a) Does MySQL support Stored Procedures ?

b) Would it be possible to use Stored Procedures instead of Views ?

c) If positive, would it mean major code changes to my ASP site to accomodate this ?

Thanks for the help!

Cheers

Steve
Reply With Quote
  #2 (permalink)  
Old 05-03-04, 09:37
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
A) Not yet
B) Not yet
C) Probably

-PatP
Reply With Quote
  #3 (permalink)  
Old 05-04-04, 02:16
hurmavi hurmavi is offline
Registered User
 
Join Date: Jan 2004
Location: Europe, Finland, Helsinki
Posts: 60
Hi Steve!

You should remember: a view is actually a predefined, stores SQL-query and whenever you make a new query against a view, the DBMS first merges these two queries. Now MySQL does't support this feature, so you had to by hand. It's a big job, but can be done.

Cheers, Bill
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On