Cant find *.mdf & *.ldf files on sql server 2017

Did my installation of sql server 2017 express on a new pc not complete properly or is the file structure different than in previous versions?  In the pas it was in a folder called "Data" but I cant find that in my 2017 Program Files.

Bob SchneiderCo-OwnerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pawan KumarDatabase ExpertCommented:
For me the location is this

C:\Program Files\Microsoft SQL Server\MSSQL14.SQL2017\MSSQL

In this location you will get a folder called DATA.

Please check if you are getting this or not ?
Deepak ChauhanSQL Server DBACommented:
Are you able to connect SQL server after installation ? If yes then execute below query and look into the physical_name column to see the data file location. Or you can check it from database property. However default directory structure for SQL 2017 is same as previous versions.

select * from sys.master_files

Open in new window

Bob SchneiderCo-OwnerAuthor Commented:
Pawan, That is what I was expecting but it is not there.  Any ideas?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Deepak ChauhanSQL Server DBACommented:
Have you checked using above query.
Bob SchneiderCo-OwnerAuthor Commented:
Where do I enter that script?
Pawan KumarDatabase ExpertCommented:

Connect to SQL 2017.

then run below query

SELECT TOP 1 REPLACE(physical_name,'\master.mdf','') PathLocation from sys.master_files


C:\Program Files\Microsoft SQL Server\MSSQL14.SQL2017\MSSQL\DATA

(1 row(s) affected)
Deepak ChauhanSQL Server DBACommented:
connect SQL server and execute the script. If you are able to connect SQl server.
Bob SchneiderCo-OwnerAuthor Commented:
There is nothing to connect to.  I think I need to re-install?
Pawan KumarDatabase ExpertCommented:
Go to RUN -> Type Services.msc -> see if you get SQL Server(2017)
Pawan KumarDatabase ExpertCommented:
If you dont get anything then Reinstall SQL Server 2017.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bob SchneiderCo-OwnerAuthor Commented:
I reinstalled and all is good. Thanks everyone!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.