早晨,
我撞到了一堵砖墙,我需要指出正确的方向。我想要做的是授予我的 SQL Server 实例权限,以便在我安装在本地计算机上的新硬盘驱动器上的目录中创建 MDB/LDB 文件,而不使用每个人。
当我尝试在文件夹中创建新数据库(通过管理工作室)时,出现以下错误:
===================================
Create failed for Database 'TestDatabase1'. (Microsoft.SqlServer.Smo)
------------------------------
For help, click: http://go.microsoft.com /fwlink?ProdName=Microsoft+SQL+Server&ProdVer=13.0.16106.4+((SSMS_Rel_16_5).170125-2137)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+Database&LinkId=20476
------------------------------
Program Location:
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.CreateImpl()
at Microsoft.SqlServer.Management.SqlManagerUI.CreateDatabaseData.DatabasePrototype.ApplyChanges(Control marshallingControl)
at Microsoft.SqlServer.Management.SqlManagerUI.CreateDatabase.DoPreProcessExecution(RunType runType, ExecutionMode& executionResult)
at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.DoPreProcessExecutionAndRunViews(RunType runType)
at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.ExecuteForSql(PreProcessExecutionInfo executionInfo, ExecutionMode& executionResult)
at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.Microsoft.SqlServer.Management.SqlMgmt.IExecutionAwareSqlControlCollection.PreProcessExecution(PreProcessExecutionInfo executionInfo, ExecutionMode& executionResult)
at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.RunNow(RunType runType, Object sender)
===================================
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Program Location:
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType, Boolean retry)
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(StringCollection sqlCommands, ExecutionTypes executionType, Boolean …Run Code Online (Sandbox Code Playgroud) 我需要一些帮助,我在Microsoft Visual Web Developer 2010 Express中收到错误消息.
我想为我的网站创建一个库,所以我从codeplex下载了NotesForGallery.我已将该引用添加到项目中,就像它在安装说明中告诉我的那样.然后说明说
在Web.Config文件(httpHandlers部分)中注册ThumbnailHandler:
<httpHandlers>
…
<add verb="*" path="ThumbnailHandler.ashx" type="NotesFor.ThumbnailHandler, NotesForGallery"/>
…
</httpHandlers>
Run Code Online (Sandbox Code Playgroud)
所以我在我的解决方案中打开web.config文件并将其添加进来.当我尝试启动网站(单击Web Developer中的播放按钮)时,我收到错误消息:
无法识别的配置部分httpHandlers.
我得到的完整错误列表如下:
消息1无法找到元素"httpHandlers"的架构信息.C:\ Documents and Settings\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 38 4 C:...\FatBoyFudge\Message 2无法找到元素"add"的架构信息.C:\ Documents and Settings\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 39 8 C:...\FatBoyFudge\Message 3无法找到属性"verb"的架构信息.C:\ Documents and Settings\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 39 12 C:...\FatBoyFudge\Message 4无法找到属性"path"的架构信息.C:\ Documents and Settings\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 39 21 C:...\FatBoyFudge\Message 5无法找到属性"type"的架构信息.C:\ Documents and Settings\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 39 50 C:...\FatBoyFudge\Error 6无法识别的配置部分httpHandlers.C:\ Documents and Settings\adam\My Documents\Visual Studio 2010\WebSites\FatBoyFudge\Web.config 38
警告7 …