Stored Procedures Don't Get Copied?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
numberz
Posts: 201
Joined: Sat Aug 05, 2017 12:13 am
Location: New Hampshire - USA

Stored Procedures Don't Get Copied?

Post by numberz »

Hi and TIA.
I'm not DB savvy, so I have a question about Maria.

I created a new BS in AwareIm, using a new database... then imported an existing bsv into it.
None of the Stored procedures got copied to the new BS.

I also noticed that I can't copy the Stored procedures?

Is there an easy way to make a duplicate BS, complete and identical?
Last edited by numberz on Fri Mar 17, 2023 1:19 am, edited 1 time in total.
Regards and thanks,
Harry Carter
aware_support
Posts: 7567
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Stored Procedures Don't Get Copied?

Post by aware_support »

Stored procedures do get copied if you define them in the properties of a business space version.
Aware IM Support Team
numberz
Posts: 201
Joined: Sat Aug 05, 2017 12:13 am
Location: New Hampshire - USA

Re: Stored Procedures Don't Get Copied?

Post by numberz »

aware_support wrote: Thu Mar 16, 2023 11:57 pm Stored procedures do get copied if you define them in the properties of a business space version.
But there's no way to move them from Maria to the BS?
Or can I just create each of them, then delete the ones from Maria?
Regards and thanks,
Harry Carter
customaware
Posts: 2431
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Stored Procedures Don't Get Copied?

Post by customaware »

I never put them in the BSV. Mainly because I can never clearly understand how that is supposed to work.

I add all of my SP directly to the DB manually.... And, Edit them directly in the DB
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
aware_support
Posts: 7567
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Stored Procedures Don't Get Copied?

Post by aware_support »

When stored procedures are stored in a business space version they are applied to the underlying database when the business space is published for the first time.
Aware IM Support Team
numberz
Posts: 201
Joined: Sat Aug 05, 2017 12:13 am
Location: New Hampshire - USA

Re: Stored Procedures Don't Get Copied?

Post by numberz »

aware_support wrote: Fri Mar 17, 2023 5:51 am When stored procedures are stored in a business space version they are applied to the underlying database when the business space is published for the first time.
Is there a video or visual that show us how to do create and store the stored procedures in AwareIM ? Because if it's simple enough I would see no need to store them outside of AwareIM. TIA
Regards and thanks,
Harry Carter
cishpix
Posts: 183
Joined: Fri Nov 06, 2015 5:07 am
Location: Indonesia

Re: Stored Procedures Don't Get Copied?

Post by cishpix »

numberz wrote: Fri Mar 17, 2023 10:44 am Is there a video or visual that show us how to do create and store the stored procedures in AwareIM ?
  1. Double click your Business Space
  2. Then click three dots button on Database scripts option in Business Space Version
  3. Click Add link text for add SQL scripts in Database Scripts dialog box
  4. Next, click Add link text for add SQL statement as you want
for details, I show the visual like below and hope you can understand it.
save SP in BSV.png
save SP in BSV.png (104.04 KiB) Viewed 8601 times
Regards,

Suwandy
-----------------
Kisaran - Indonesia
numberz
Posts: 201
Joined: Sat Aug 05, 2017 12:13 am
Location: New Hampshire - USA

Re: Stored Procedures Don't Get Copied?

Post by numberz »

eagles9999 wrote: Fri Mar 17, 2023 4:23 am I never put them in the BSV. Mainly because I can never clearly understand how that is supposed to work.

I add all of my SP directly to the DB manually.... And, Edit them directly in the DB
Mark, thanks.
But as per my original post, what would you do if you wanted to make, say, a "sandbox" version BS, completely separate from the original?
Re-create all SPs?
Regards and thanks,
Harry Carter
numberz
Posts: 201
Joined: Sat Aug 05, 2017 12:13 am
Location: New Hampshire - USA

Re: Stored Procedures Don't Get Copied?

Post by numberz »

cishpix wrote: Sat Mar 18, 2023 6:47 am
numberz wrote: Fri Mar 17, 2023 10:44 am Is there a video or visual that show us how to do create and store the stored procedures in AwareIM ?
  1. Double click your Business Space
  2. Then click three dots button on Database scripts option in Business Space Version
  3. Click Add link text for add SQL scripts in Database Scripts dialog box
  4. Next, click Add link text for add SQL statement as you want
for details, I show the visual like below and hope you can understand it.
save SP in BSV.png
Thank you cishpix.
Regards and thanks,
Harry Carter
customaware
Posts: 2431
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Stored Procedures Don't Get Copied?

Post by customaware »

numberz wrote: Sat Mar 18, 2023 10:52 am
eagles9999 wrote: Fri Mar 17, 2023 4:23 am I never put them in the BSV. Mainly because I can never clearly understand how that is supposed to work.

I add all of my SP directly to the DB manually.... And, Edit them directly in the DB
Mark, thanks.
But as per my original post, what would you do if you wanted to make, say, a "sandbox" version BS, completely separate from the original?
Re-create all SPs?
Indeed I would Harry....

Of course I have ALL of the SP for any app saved as .sql files.

So, even it there is, say, 20 Stored Procedures for an app.... take 5 minutes to load them up into a new or temporary DB
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
numberz
Posts: 201
Joined: Sat Aug 05, 2017 12:13 am
Location: New Hampshire - USA

Re: Stored Procedures Don't Get Copied?

Post by numberz »

eagles9999 wrote: Sun Mar 19, 2023 3:35 am
numberz wrote: Sat Mar 18, 2023 10:52 am
eagles9999 wrote: Fri Mar 17, 2023 4:23 am I never put them in the BSV. Mainly because I can never clearly understand how that is supposed to work.

I add all of my SP directly to the DB manually.... And, Edit them directly in the DB
Mark, thanks.
But as per my original post, what would you do if you wanted to make, say, a "sandbox" version BS, completely separate from the original?
Re-create all SPs?
Indeed I would Harry....

Of course I have ALL of the SP for any app saved as .sql files.

So, even it there is, say, 20 Stored Procedures for an app.... take 5 minutes to load them up into a new or temporary DB
Thank You
Regards and thanks,
Harry Carter
Post Reply