I am migrating from Windows XP to Windows 7. I use database software (Aginity Workbench), which allows a user to save common queries called "Code Snippets". These snippets are stored in the registry:
HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets
The registry entries are structured as follows, where a "Text" field stores the actual query :
A portion of the .reg text looks like this:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets]
[HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets\NZ]
[HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets\NZ\1] "Trigger"="sf" "Text"="select *
from
limit 1000;
" "CaretPosition"=dword:00000010
[HKEY_CURRENT_USER\Software\Aginity\NetezzaWorkbench\QueryAnalyzer\CodeSnippets\NZ\10] "Trigger"="rollnode" "Text"="SELECT mom.varReportId, mom.nodeId, mom.rollupTypeId, roll.riskFactorGroup, roll.effectType, mom.VAR, mom.mean FROM Moments mom, RollupTypeMapping roll WHERE mom.businessDate = (select businessDate from SysConfig) AND roll.businessDate = mom.businessDate AND mom.nodeId = 260591 AND mom.varReportId = 'DGV_BT_1D_CAD' AND roll.rollupTypeId = mom.rollupTypeId ORDER BY mom.nodeId, roll.rollupTypeId" "CaretPosition"=dword:0000018c
... and from Notepad++, showing linebreak details:
I attempted to migrate the snippets by:
- in regedit.exe on XP >> export "Code Snippets" branch
- in regexit.exe on W7 >> import the .reg file I save in #1
Windows pops up a message saying the registry was updated successfully, and in fact I can see new entries show up in the registry. However, almost all of the new entries are missing the critical "Text" field. For example, here is the important record "10" from above:
Can anyone help explain how to resolve this?
I noticed exactly one record that seemed to contain the Text field, and was populated correctly in W7. I have no idea what is different about this one, or why Windows would treat it differently. But it does show me a working example, and that the import should be possible.