Sep 22, 2006 #1 IT247 IS-IT--Management May 26, 2006 88 US Hello just getting familiar with a few tsql commands i did exec sp_helpdb northwind and i see the "top" result reports db size of 3.63 MB while the "bottom result" says northwind size - 2688 KB northwind_log size - 1024 KB i don't see how the two agree???
Hello just getting familiar with a few tsql commands i did exec sp_helpdb northwind and i see the "top" result reports db size of 3.63 MB while the "bottom result" says northwind size - 2688 KB northwind_log size - 1024 KB i don't see how the two agree???
Sep 22, 2006 #2 gmmastros Programmer Feb 15, 2005 14,909 US There are 1024 Kilobytes in a mega byte. Select Convert(Decimal(10,2), (2688 + 1024) / 1024.0) Add the kilobytes. Divide by 1024 to get megabytes, then round to 2 decimal places. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote
There are 1024 Kilobytes in a mega byte. Select Convert(Decimal(10,2), (2688 + 1024) / 1024.0) Add the kilobytes. Divide by 1024 to get megabytes, then round to 2 decimal places. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
Sep 22, 2006 Thread starter #3 IT247 IS-IT--Management May 26, 2006 88 US cool! but why do u need to add the 1024? Upvote 0 Downvote
Sep 22, 2006 #4 Sleepsalot MIS Jun 30, 2004 270 US If you add the 2 bottom figures it is rounded to the 3.63mb Sounds strange but it is right. Wayne Life is a big Roleplaying adventure. Wayne Upvote 0 Downvote
If you add the 2 bottom figures it is rounded to the 3.63mb Sounds strange but it is right. Wayne Life is a big Roleplaying adventure. Wayne
Sep 22, 2006 #5 gmmastros Programmer Feb 15, 2005 14,909 US Add together the size of the database and the size of the log. Total DB Size = (Size of Database File) + (Size of log file) Since the sizes for the files were given in KB, you need to convert to MB. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote
Add together the size of the database and the size of the log. Total DB Size = (Size of Database File) + (Size of log file) Since the sizes for the files were given in KB, you need to convert to MB. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
Sep 22, 2006 Thread starter #6 IT247 IS-IT--Management May 26, 2006 88 US oh sorry i forgot the log size for a second i thought it was a trick conversion thx to both Upvote 0 Downvote