在docker下SQL Server attach mdf和ldf文件
(DB:MyPost)
USE master
GO
-- Create database via attach
CREATE DATABASE [MyPost]
ON ( FILENAME = N'C:\var\opt\mssql\data\MyPost.mdf'),
( FILENAME = N'C:\var\opt\mssql\data\MyPost_log.ldf')
FOR ATTACH;
GO