当前位置:网站首页>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

边栏推荐
- Monitoring and management of JVM
- 【教程】chrome关闭跨域策略cors、samesite,跨域带上cookie
- How to change the panet layer in yolov5 to bifpn
- Awk from entry to burial (1) awk first meeting
- HW-初始准备
- COM和CN
- javeScript 0.1 + 0.2 == 0.3的问题
- GBase 8c 创建用户/角色 示例二
- Memory pool (understand the process of new developing space from the perspective of kernel)
- GBase 8c系统表-pg_amproc
猜你喜欢

4. Classes and objects

Detailed introduction to the usage of Nacos configuration center

定了,就选它

Random Shuffle attention

Principle and application of database

Restcloud ETL cross database data aggregation operation

怎么将yolov5中的PANet层改为BiFPN

Pytorch convolution network regularization dropblock

Basic operation of binary tree (C language version)

4. 类和对象
随机推荐
Summary of interview project technology stack
easyPOI
Awk from introduction to earth (0) overview of awk
MUX VLAN Foundation
人脸识别6- face_recognition_py-基于OpenCV使用Haar级联与dlib库进行人脸检测及实时跟踪
Job object of collaboration in kotlin
线程安全的单例模式
Gbase 8C trigger (I)
《MATLAB 神经网络43个案例分析》:第43章 神经网络高效编程技巧——基于MATLAB R2012b新版本特性的探讨
Compréhension simple de SVG
Kotlin middle process understanding and Practice (I)
GBase 8c 函数/存储过程参数(一)
Cvpr2022 remove rain and fog
javeScript 0.1 + 0.2 == 0.3的问题
GBase 8c系统表-pg_attribute
Awk from getting started to getting into the ground (3) the built-in functions printf and print of awk realize formatted printing
面试八股文整理版
Gbase 8C system table PG_ collation
[fluent] listview list (map method description of list set | vertical list | horizontal list | code example)
The sandbox explains its vision for the meta universe platform