Sdk database utility

I converted c# sdk sample to vb.  It calls for a new sdkdatabaseutility object which is uses with a string variable to query a database.  I'm getting a database not found error.  I know the database is open.  Here's my dilemma.  How does the sdkdatabaseutility know which database to use? Can't seem to find how or where a database is passed to it.

Any insights would be greatly appreciated.

  • 0
    Hello, I am also trying to use SDKDatabaseUtility. Did you figure out how to use it and do you mind to share with us how you made it?
  • 0 in reply to Noesis
    There are examples of use (create an instance 'util' of the SDKDatabaseUtility class, then shows some methods) in the c# sample, and there is documentation of the class in the dev-dotnetref.chm file in the manuals folder.

    Are you using c# or vb.net? I don't see any VB examples included with the SDK using the class
  • 0 in reply to RandyW
    I am using C#.

    So far what I did is simply instantiate the SDKDatabaseUtility class after connecting to the database and then execute queries:

    SDKInstanceManager.Instance.OpenDatabase([...]);
    var db = new SDKDatabaseUtility();
    var query = string.Format("SELECT * FROM tcompany;");
    db.RunSelectQuery(query);
    var dataset = db.GetDataSetFromLastSelectQuery();

    It seems to work.

    Thanks