Dynamic Database Switching: Difference between revisions
From DataFlex Wiki
Jump to navigationJump to search
m
Correcting INT file entry
m (spelling) |
m (Correcting INT file entry) |
||
(One intermediate revision by the same user not shown) | |||
Line 92: | Line 92: | ||
Get_Database_Name to sCurr | Get_Database_Name to sCurr | ||
Move (Trim(sDB)) to sDB | Move (Uppercase(Trim(sDB))) to sDB | ||
Move (Uppercase(Trim(sCurr))) to sCurr | |||
If (sDB = sCurr) Procedure_Return // Don't do more than we have to. | If (sDB = sCurr) Procedure_Return // Don't do more than we have to. | ||
Line 231: | Line 232: | ||
===In the .INT files=== | ===In the .INT files=== | ||
The Mertech Set_Database_Name command, on which the underlying functionality is based, will only be effective if the database is '''not''' set in the .INT file - so you should '''remove''' the line | The Mertech Set_Database_Name command, on which the underlying functionality is based, will only be effective if the database is '''not''' set in the .INT file - so you should '''remove''' the line "'''DATABASE_SPACE_NAME XXXXX'''" from the appropriate .INT files (and indeed probably from all the .INT files). Then the .TD files should be deleted so that they will be freshly regenerated on next access from the .INT files. | ||
[[Category:Database Connectivity]] | [[Category:Database Connectivity]] | ||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
[[Category:Cookbook]] | [[Category:Cookbook]] |