当前位置:网站首页>Add MDF database file to SQL Server database, and the error is reported
Add MDF database file to SQL Server database, and the error is reported
2022-07-03 02:34:00 【Lee Meier】

Right click to add the database error , Prompt no transaction log file ,

First step , take mdf file , Put it under the installation folder, as shown in the above figure

The second step , In the system database ,master Click query below , Enter the following statement , And perform , Don't worry about the operation error , As long as the arrow points ldf The file prompt has been created :
among dbname Is what you want to add mdf The database name of ,pysname Is your first step to store mdf Path to file

USE MASTER
EXEC sp_detach_db @dbname = "MonitorHistory2021M8D30h5m30s1.mdf"
EXEC sp_attach_single_file_db @dbname = "MonitorHistory2021M8D30h5m30s1.mdf",
@physname = "F:\ Guyang Anshun West \ Supplementary data \2021 year 08 month CMS data \08 month CMS data \MonitorHistory2021M8D30h5m30s1.mdf"
The third step , Refresh , You can see the corresponding you added mdf The database of

边栏推荐
- 4. 类和对象
- Unrecognized SSL message, plaintext connection?
- Error when installing MySQL in Linux: starting mysql The server quit without updating PID file ([FAILED]al/mysql/data/l.pid
- 2022-2028 global splicing display industry research and trend analysis report
- 【教程】chrome關閉跨域策略cors、samesite,跨域帶上cookie
- 8 free, HD, copyright free video material download websites are recommended
- [shutter] bottom navigation bar page frame (bottomnavigationbar bottom navigation bar | pageview sliding page | bottom navigation and sliding page associated operation)
- Interview stereotyped version
- "Analysis of 43 cases of MATLAB neural network": Chapter 43 efficient programming skills of neural network -- Discussion Based on the characteristics of the new version of MATLAB r2012b
- Create + register sub apps_ Define routes, global routes and sub routes
猜你喜欢

Detailed introduction to the usage of Nacos configuration center

The data in servlet is transferred to JSP page, and the problem cannot be displayed using El expression ${}

定了,就选它
【ROS进阶篇】第六讲 ROS中的录制与回放(rosbag)

Choose it when you decide

Tongda OA V12 process center

SQL statement
![[translation] the background project has joined the CNCF incubator](/img/0b/e3d2674b1a1cba3ea398cbcb1a018a.png)
[translation] the background project has joined the CNCF incubator

What does "where 1=1" mean

The use of Flink CDC mongodb and the implementation of Flink SQL parsing complex nested JSON data in monggo
随机推荐
GBase 8c系统表-pg_class
5. File operation
Unrecognized SSL message, plaintext connection?
random shuffle注意
Matlab tips (24) RBF, GRNN, PNN neural network
Detailed introduction to the deployment and usage of the Nacos registry
Oauth2.0 authentication, login and access "/oauth/token", how to get the value of request header authorization (basictoken)???
The data in servlet is transferred to JSP page, and the problem cannot be displayed using El expression ${}
GBase 8c系统表-pg_auth_members
The Linux server needs to install the agent software EPS (agent) database
错误Invalid bound statement (not found): com.ruoyi.stock.mapper.StockDetailMapper.xxxx解决
2022-2028 global splicing display industry research and trend analysis report
cvpr2022去雨去雾
Gbase 8C system table PG_ auth_ members
My creation anniversary
Gbase 8C function / stored procedure definition
Thread safe singleton mode
Gbase 8C trigger (III)
为什么会选择框架?选择什么样的框架
Error invalid bound statement (not found): com ruoyi. stock. mapper. StockDetailMapper. XXXX solution