Results 1 to 2 of 2

Thread: How to read data from a stsdb file?

  1. #1

    Default How to read data from a stsdb file?

    first of all, the stsdb file is created by someone else.
    I don't konw the key and record types.

    I just try the follow codes: STS db 4.0.5)

    using (var se = STSdb.FromFile("filePath")) 
        foreach (var des in se) 
            var tableName = des.Name; 
            var keyDataType = des.KeyDataType; 
            var recordDataType = des.RecordDataType; 
         //  se.OpenXTable<>(tableName)   //How to do: 
    Last edited by k.dimitrov; 31.10.2014 at 14:28. Reason: Format.

  2. #2



    If you have the database file, you can try the following code:

    using (var engine = STSdb.FromFile("data.stsdb4"))
        foreach (var descriptor in engine)
            var tableName = descriptor.Name;
            var keyDataType = descriptor.KeyDataType;
            var recordDataType = descriptor.RecordDataType;
            var table = engine.OpenXTablePortable(tableName, keyDataType, recordDataType);
    This will open a XTablePortable instance of your original table. You can read more about the different kinds of XTables in the documentation: XTable implementations.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
2002 - 2014 STS Soft SC. All Rights reserved.
STSdb, Waterfall Tree and WTree are registered trademarks of STS Soft SC.