Metastormdefault connection string server side

How do you get the Metastormdefault  connection string in a server side function?

Tagged:

Comments

  • There may be "cleaner" or better ways to handle this, but when using the default connection in a server script I've just been using null in that part of the string as null appears to imply to use the Metastorm default connection.

    Mstm.SelectSql(null,"SELECT...");
    

     

  • Do you have a code example of how exactly you are achieving this? That would be very helpful.

  • There are loads of examples in our free solutions (link below). We always use null when using SelectSql() in code as it is quicker and easier.

     

    I am confused by the response to your question, however. You were after the connection string, not a Metastorm connection itself. I assumed that you wanted to use this 'outside' of Metastorm, otherwise a connection would be the obvious thing to use. Perhaps I am missing something.

  • I am trying to use the connection string in a server side script. The null is what is being return when I look at the connection string value.

  • Hi

     

    As I understand, you want to use MetastormDefault connectionstring property, to establish new conection from C# and run some custom ADO.NET code on MetastormDatabase.

    I found the same as you, thak this property is not initialized, and you cannot use it :( I think this colud be bug.

     

    Regards

    Grzegorz