Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 126877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:23:15+00:00 2026-05-11T05:23:15+00:00

I want to connect up to a database server in my .NET app and

  • 0

I want to connect up to a database server in my .NET app and execute a database command that produces a series of database statistics. The problem is that it doesn’t return the stats in a structured format, it returns it in plain text (like a df -k command in UNIX) I can capture the output and parse it, but I was wondering if there’s a better approach to something like this.

I certainly can’t think of an alternative, but I wanted to ask around. It seems a little fragile to be parsing the command results because if the database author ever changes the format, I break.

Edit: The database is an IBM UniData database. The command is ‘file.stat’ and it returns the average record size, max record size, etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:23:15+00:00Added an answer on May 11, 2026 at 5:23 am

    Yes, parse for the description. However, you should check the database version first.

    :version Module Name         Version   Licensed UniData RDBMS............ 7.1     Yes 

    That way if the file.stat data changes, you could call alternate routines.
    Note: The file.stat output data has been static for sometime and is unlikely to change.

    :file.stat TEST  File name                             = TEST Number of groups in file (modulo)     = 3 Static hashing, hash type             = 0 Block size                            = 2048 Number of records                     = 12 Total number of bytes                 = 2335  Average number of records per group   = 4.0 Standard deviation from average       = 1.0 Average number of bytes per group     = 778.3 Standard deviation from average       = 286.2  Average number of bytes in a record   = 194.6 Average number of bytes in record ID  = 4.3 Standard deviation from average       = 42.3 Minimum number of bytes in a record   = 113 Maximum number of bytes in a record   = 270  Minimum number of fields in a record  = 66 Maximum number of fields in a record  = 80 Average number of fields per record   = 72.7 Standard deviation from average       = 6.5 The actual file size in bytes         = 8192. 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to connect a database that is located on centralized server. How can
I want to connect to mysql database from my asp page.So for that as
I am creating a VB.net application that will connect to a Microsoft SQL database.
I have a big SQL Server database I want to connect to and my
I have a web site solution (asp.net) that runs on a SQL server database.
I've got a locally installed MySQL database server that I want to use for
I want to connect to a remote database (SQL Server 2008) through code using
I want to connect trough SSH channel to mysql database on the server. I
i want to connect database to iphone sdk but it is taking the default
I'm using PDO for connect to the database in a system where I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.