SQLServer-QA.net - Knowledge Sharing Network (SSQA.net)
Invisible community contributions, Visible success to users
Browse by Tags
All Tags
»
tsql
»
log file
(
RSS
)
data file
databases
default
location
program files
sql server
TSQL to get default location of database data and log files?
Published 8 January 8 6:37 AM |
SSQA.net
By default the SQL Server database data & log files are created on the default data directory which is Program Files or based on where SQL binary files are installed. In order to find what is the default location you can run following TSQL: declare...
TSQL to compare log file to data file in a database
Published 1 August 7 4:7 AM |
SSQA.net
SELECT @@servername as ServerName , db_name ( database_id ) as DatabaseName , Name as LogiCalFileName , Physical_Name [Physical file] , ( size * 8 )/ 1024 [Size_MB] FROM sys.master_files...( read more ) Read More...
Search
Go
This Blog
Home
Contact
About
Tags
2005
2008
backup
best practice
best practices
blogs
database
databases
dmv
download
error
indexes
kba
memory
microsoft
performance
query
replication
reporting services
security
server
sql server
ssis
ssms
tsql
Community
Home
Blogs
Media
Groups
Archives
July 2008 (7)
June 2008 (39)
May 2008 (60)
April 2008 (35)
March 2008 (48)
February 2008 (59)
January 2008 (63)
December 2007 (58)
November 2007 (43)
October 2007 (100)
September 2007 (110)
August 2007 (146)
July 2007 (106)
June 2007 (114)
May 2007 (78)
April 2007 (2)
News
Syndication
RSS for Posts
Atom
RSS for Comments
Email Notifications
Go