Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how to use Microsoft SQL. Using the Microsoft flavor I need help with something to show a list of all databases I have. This list

 how to use Microsoft SQL. Using the Microsoft flavor I need help with something to show a list of all databases I have. This list needs to display three things for every file 1) File Name 2) File Location 3) file size (as listed in the database_files catalog view without conversion.


But the catch to that is I need to somehow limit the display to only show files greater than or equal to size 1024.


What I have come up with so far is this:

select

DB_NAME(database_id) AS DatabaseName,

size

FROM sys.master_files


Which shows me the name & the size, but it shows every file not just those of size 1024 or greater & it only shows me the name & size not the location.


Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Algorithms questions

Question

Modify the zip code on order 1017 to 33222.

Answered: 1 week ago

Question

Execute a command that undoes the previous deletion.

Answered: 1 week ago