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 4564220
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:28:12+00:00 2026-05-21T18:28:12+00:00

sp_helpdb returns strings like ‘50000.255 MB’ in the db_size column. These strings are culture-dependent;

  • 0

sp_helpdb returns strings like ‘50000.255 MB’ in the db_size column.

These strings are culture-dependent; the above string will mean 2 different things in US and Germany (in the latter, the dot char is used as a group separator, similar to the comma in US).

Is there another method which returns a numeric value, culture-independent?

  • 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. Editorial Team
    Editorial Team
    2026-05-21T18:28:13+00:00Added an answer on May 21, 2026 at 6:28 pm
     Use YourDB;
     SELECT SUM(Size / 128.0) As FileSize from sys.database_files;
    

    This returns the size in MB as a numeric, you should be able to do what you like with it from there.

    Note: size returns the number of 8KB pages in a given database file.

    http://msdn.microsoft.com/en-us/library/ms174397.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The sp_databases stored proc in sqlserver returns a remarks column. Where does this information
Like we have alternative for sp_helpdb sp = sysdatabases table, Do we have an
I have a SP which returns a XML string as output. I want to
How can I break SP execution in an Exception like fashion in MySQL? I
sp_helpdb is giving me wrong results for log size/free: device_fragments size usage created free
These SP in the picture below need to be applied in a table and
Sp I have a function like: void WriteToUrl(const unsigned char *buf, int size) {
I have an SP. It returns some number of rows. Here is the SP:
I have parameters in SP and trying to make them a concat to string
I have a sp something like this create proc disp as begin select *

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.