Directory lookup for the file "xxx.mdf" failed with the operating system error 2

Directory lookup for the file "xxx.mdf" failed with the operating system error 2(系统找不到指定的文件。).

reason:

sql2005以后 禁用了xp_cmdshell存储过程

solution:

sp_configure ‘show advanced options‘, 1
GO
RECONFIGURE
GO
sp_configure ‘xp_cmdshell‘, 1
GO
RECONFIGURE
GO

时间: 2024-10-24 15:56:36

Directory lookup for the file "xxx.mdf" failed with the operating system error 2的相关文章

Unable to open the physical file xxxx. Operating system error 2

在新UAT服务器上,需要将tempdb放置在SSD(固态硬盘)上.由于SSD(固态硬盘)特性,所以tempdb的文件只能放置在D盘下面,而不能是D盘下的某一个目录下面. ALTERDATABASE tempdb MODIFY FILE(name='tempdev', filename='D:\tempdb.mdf') ;   GO ALTERDATABASE tempdb MODIFY FILE(name='templog', filename='D:\templog.ldf') ; GO 修改

InnoDB: Operating system error number 87 in a file operation. 错误87的解决方法

InnoDB: Operating system error number 87 in a file operation. 错误87的解决方法 140628  8:10:48 [Note] Plugin 'FEDERATED' is disabled.140628  8:10:48 InnoDB: The InnoDB memory heap is disabled140628  8:10:48 InnoDB: Mutexes and rw_locks use Windows interlock

CREATE FILE encountered operating system error 5(Access is denied.)

这篇博文主要演示"CREATE FILE encountered operating system error 5(Access is denied.)"错误如出现的原因(当然只是导致这个错误出现的一种场景而已)和如何解决这个问题以及一些不解的迷惑. 实验环境: 操作系统版本: Windows Server 2012 SP2 数据库的版本:Microsoft SQL Server 2014 - 12.0.2000.8 如下所示,SQL Server Database Services

Visual Studio 2013: fatal error C1083: Cannot open include file: 'XXX.h': No such file or directory

So to do this in Visual Studio, open up Solution Explorer, right click on the main project's name and then select Properties. In the window that appears go to Configuration Properties->C/C++->General and in Additional Include Directories add the pat

Cocos2d-x执行时错误:Cocos2d: Get data from file(xxx.xxx) failed!

取资源图片时遇到执行时错误: Cocos2d: Get data from file(xxx/xxx.xxx) failed! 原因是我加入资源目录的方式不正确,例如以下图,我选择的是在Resource中加入Group.这样加入完menuscene目录是黄色的,我在代码中引用资源时路径是"menuscene/background.png",可是在项目看来menuscene并非一个真实存在的Folder,而是一个Group,所以会找不到. 解决方法是加入文件时选择Create folde

CMake error:System Error:No such file or directory CMake error:Could not open file for write in copy operation xxxx.ros_Config.cmake.tmp.

微型电脑或嵌入式与电脑还是有点不同的,在微型电脑上ros indigo 版本下利用catkin编译如果你遇到如下错误: CMake error:System Error:No such file or directory CMake error:Could not open file for write in copy operation xxxx.ros_Config.cmake.tmp. CMake error:at /opt/ros/indigo/share/catkin/cmake/ca

Non-ASCII character '\xe8' in file xxx.py on line 8, but no encoding declared

使用网上某个python程序,编译时报错: File "xxx.py", line 8         SyntaxError: Non-ASCII character '\xe8' in file xxx.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details 原因是缺少编码类型声明:no encoding declared 段首添加一行声明即可:

ORA-00245: control file backup operation failed

今天朋友巡检遇到了ORA-00245的报错,下面来看看MOS关于RAC环境中ORA-00245报错的说明. ORA-245: In RAC environment from 11.2 onwards Backup Or Snapshot controlfile needs to be in shared location (文档 ID 1472171.1)   修改时间:2013-11-11 类型:ALERT   In this Document   Description Occurrence

The process could not read file xxx due to OS error 53

  在不同地域的两个SQL Server服务器上配置了复制(Replication)用于同步数据(生产环境配置有Replication,测试环境也配有Replication),两地通过专线连接起来,这些复制(Replication)已经稳定运行了一两年了, 但是前阵子,测试环境的SQL Server的Replication中突然遇到下面错误: Error messages: The process could not read file '\\xxx\xxx\xxx\xxx\xxx\xxx.pr