I am running Azura data studio on docker on my Mac, and have a server running, in which I need to attach a database to that I have locally in .mdf format. I have tried right clicking to click attach database as you would in sql server express, but it isn't working, nothing shows up when I right click but refresh
.
I have also tried running this SQL query:
CREATE DATABASE myDB ON
(FILENAME = './databasesLocal/mydb.mdf'),
(FILENAME = './databasesLocal/mydb.ldf')
FOR ATTACH;
but when I do this, I get this error:
Msg 5105, Level 16, State 2, Line 1
A file activation error occurred. The physical file name './databasesLocal/mydb.mdf' may be incorrect. Diagnose and correct additional errors, and retry the operation.
does anyone know what I can do to attach a database?