If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Creating a new database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-12-04, 05:26
krish_rs krish_rs is offline
Registered User
 
Join Date: Mar 2004
Posts: 12
Creating a new database

I created a database using the following command :

create database krish on (Name='krish', filename='C:\Program Files\Microsoft SQL Server\MSSQL\data\krish.mdf', size=25, maxsize=50,filegrowth=5%)

This actually created the database. Now, I wanted to view this database info being stored inside the SQL Server system tables. I looked at "sysdatabases" table and found an entry as expected for "krish" but I could not trace where the info corresponding to the size of the database was stored ie.25MB . (I looked ad "sysdevices" but couldn't find any entry for the newly created database).

In which table is it stored ?

Any help is appreciated.
Reply With Quote
  #2 (permalink)  
Old 04-12-04, 07:10
HansVE HansVE is offline
Registered User
 
Join Date: Mar 2004
Posts: 45
select size
from krish.dbo.sysfiles
__________________
Hans.
Reply With Quote
  #3 (permalink)  
Old 04-12-04, 08:18
krish_rs krish_rs is offline
Registered User
 
Join Date: Mar 2004
Posts: 12
Thanks Hans. That worked
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On