Synonyms in hyperfilesql and reserved keyword user

69 views Asked by At

How can I create a synonym in HyperFileSQL?

I have a table named USER and I cannot Access it via ODBC. I can't rename it, so I want to create a synonym for it. How do I do this?

1

There are 1 answers

1
gilles gabet On

To create Synonym use this fonction HAlias().

// Create an alias for the ORDERS file
// (Syntax available from version 19)
Orders2013 is Data Source <description=Orders>
IF HAlias(Orders, Orders2013) = True THEN
// ORDERS2013 can now be used in the processes
// It behaves the same way as 
// the ORDERS file described in the analysis.
// Modify the directory
HChangeDir(Orders2013, "D:\SalesMgt\Archive2013")
// Modify the name
HChangeName(Orders2013, "Orders")
HOpen(Orders2013)
... 
// Processes on the Orders2013 file
...
END
// Cancel the alias
HCancelAlias(Orders)