• 吉特日化MES & SQL Server 无法执行数据库脚本


      打开服务器打算远程执行一下脚本,突发发现数据库无法执行脚本,就想着是不是安装了 海康AGV 控制系统的问题导致,问题如下:

      问题截图如下:

      

       

      报错信息如下:

    ===================================
    
    未能找到路径“C:UsersAdministratorAppDataLocalTemp2Script_637570159644523753.sql”的一部分。 (mscorlib)
    
    ------------------------------
    程序位置:
    
       在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       在 System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
       在 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
       在 System.IO.StreamWriter..ctor(String path, Boolean append)
       在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.LaunchFormHost.CreateScriptFile(String contents, String scriptType)
       在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.LaunchFormHost.CreateScriptWindow(String text, String scriptType, String dbName)
       在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.LaunchFormHost.Microsoft.SqlServer.Management.SqlMgmt.ILaunchFormHost3.ScriptToNewDatabaseWindowAndExecute(String text, String scriptType, String dbName)
       在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.OpenTableHelperClass.SelectTopNRows(NodeContext parentContext, Int32 topNValue)
       在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.SelectTopNRows.Invoke()
       在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolsMenuItemBase.MenuInvokedHandler(Object sender, EventArgs args)

       解决方式如下:

       1. 进入到此目录下面  C:UsersAdministratorAppDataLocalTemp

       2. 在改目录下新增 1, 2 两个文件夹

      

      然后重新执行脚本即可

  • 相关阅读:
    交换机与路由器之间进行链路聚合知识总结
    003 测试成功只是完整更改项目的本地仓库路径,不更改内容的情况下(特别是.git没有更改的情况下),是否依然可以成功上传到Github远程仓库?
    十、MySQL连接
    Spring Boot中的Spring Security
    python中logging库使用记录
    unittest接口测试:数据驱动的两种实现(一个测试用例跑多份测试数据)
    python 类中的三种方法
    192405实验八 Web安全
    picture1
    电影随笔
  • 原文地址:https://www.cnblogs.com/qingyuan/p/14784000.html
Copyright © 2020-2023  润新知