Location of Folder "Sql Templates"

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
michabbb
Posts: 217
Joined: Mon 21 Nov 2011 02:35
Location: DE
Contact:

Location of Folder "Sql Templates"

Post by michabbb » Fri 21 Sep 2012 09:07

dear support,

i would like to share my snippets/templates with dropbox, is there an option to set the path of "Sql Templates" somewhere in dbforge ?? or how can i do this ?

thank you,
micha

alexa

Re: Location of Folder "Sql Templates"

Post by alexa » Fri 21 Sep 2012 10:39

You can put your snippets into the \Sql Templates\ folder that is located in the installation folder of dbForge Studio for MySQL or you can create a sub-folder with your snippets.

michabbb
Posts: 217
Joined: Mon 21 Nov 2011 02:35
Location: DE
Contact:

Re: Location of Folder "Sql Templates"

Post by michabbb » Fri 21 Sep 2012 10:46

dear alexa,

the current folder is:
C:\Program Files (x86)\Devart\dbForge Studio for MySQL\Sql Templates

i want: Q:\dropbox\Sql Templates

how i can realize this ?

regards,
micha

alexa

Re: Location of Folder "Sql Templates"

Post by alexa » Fri 21 Sep 2012 12:11

Please do the following:

1. Open the the registry editor.
2. Select the 'HKEY_LOCAL_MACHINE\SOFTWARE\Devart\dbForge Studio for Oracle\CodeSnippets\Oracle' branch.
3. Change the value data of the 'DirectoryPath' value.

michabbb
Posts: 217
Joined: Mon 21 Nov 2011 02:35
Location: DE
Contact:

Re: Location of Folder "Sql Templates"

Post by michabbb » Fri 21 Sep 2012 13:19

thank you, i only see these entries at

HKEY_CURRENT_USER\Software\Devart\dbForge Studio for MySQL\Folders

(you wrote something about oracle;)

Image

shall i create "DirectoryPath" here ?

alexa

Re: Location of Folder "Sql Templates"

Post by alexa » Fri 21 Sep 2012 13:35

Sorry, the provided solution was for dbForge Studio for Oracle.

If you are using dbForge Studio for MySQL, please follow the steps:

1. Open the the registry editor.
2. Select the 'HKEY_LOCAL_MACHINE\SOFTWARE\Devart\dbForge Studio for MySQL\CodeTemplates\MySQL' branch.
3. Change the value data of the 'RootDirectory' value.

Please also make sure you are using HKEY_LOCAL_MACHINE, but not HKEY_CURRENT_USER.

michabbb
Posts: 217
Joined: Mon 21 Nov 2011 02:35
Location: DE
Contact:

Re: Location of Folder "Sql Templates"

Post by michabbb » Fri 21 Sep 2012 13:42

i have to verify, sorry: do i change the whole path of the program with this key
(C:\Program Files (x86)\Devart\dbForge Studio for MySQL\) or only the path:
C:\Program Files (x86)\Devart\dbForge Studio for MySQL\Sql Templates

thank you!

alexa

Re: Location of Folder "Sql Templates"

Post by alexa » Fri 21 Sep 2012 14:01

You would need to set 'RootDirectory' to 'Q:\dropbox\Sql Templates'

michabbb
Posts: 217
Joined: Mon 21 Nov 2011 02:35
Location: DE
Contact:

Re: Location of Folder "Sql Templates"

Post by michabbb » Wed 03 Sep 2014 22:16

hi,

after every update, the registry value gets overwritten ;-((

HKEY_LOCAL_MACHINE\SOFTWARE\Devart\dbForge Studio for MySQL\CodeSnippets\MySql\DirectoryPath

please don´t touch this while running updates, that is very annoying :evil:

thanks!

alexa

Re: Location of Folder "Sql Templates"

Post by alexa » Thu 04 Sep 2014 09:57

This can be avoided by installing a new build on top of the older one rather than uninstalling/installing.

michabbb
Posts: 217
Joined: Mon 21 Nov 2011 02:35
Location: DE
Contact:

Re: Location of Folder "Sql Templates"

Post by michabbb » Thu 04 Sep 2014 10:05

i use the regular update feature.
i download it, it restart dbforge, than i get the info, that a new version is there and i get asked to update and follow there regular procedure.
what do i have to change ?

alexa

Re: Location of Folder "Sql Templates"

Post by alexa » Thu 04 Sep 2014 11:25

Sorry for the confusion. This appears to be the service directory of dbForge that gets updated in anyway.

michabbb
Posts: 217
Joined: Mon 21 Nov 2011 02:35
Location: DE
Contact:

Re: Location of Folder "Sql Templates"

Post by michabbb » Thu 04 Sep 2014 13:07

yes i know.. thats why i made my posting...
and i please you to NOT UPDATE this VALUE in the registry so that we keep our own directory for the snippets and dont have to fix this after every update... :x

thanks!

Post Reply