Portable sql database

I wonder is it possible to connect to local sql database. becasue I want to store data in a client Sql database and include it(mdf file) in installation?

for example Like a windows application that store data in a accdb file (access database) that can install in every machine .

Thanks for your answers.

mdf files belong to the microsoft sql server and without a proper redistributable licence you can’t include the sql-server into one of your applications.

Maybe try sqlite which is a free, opensource sql database engine