Subscribe to DataMgr |
Visit this group |
To use DataMgr, follow these steps:
Application.DataMgr = CreateObject("component","DataMgr").init("mydsn")
Note that "mydsn" in this example is the datasource. That could also be a variable that holds the value of your datasource.
If you don't have Java access enabled, you will have to specify the database as well:
Application.DataMgr = CreateObject("component","DataMgr").init("mydsn","MSSQL")
Important:If you have the "init" call in a separate line, you must use the result of the "init" call instead of the result of the CreateObject line.
Alternately, you can call the database adaptor that you want to use directly:
Application.DataMgr = CreateObject("component","DataMgr_MSSQL").init("mydsn")