久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

為什么我無法在 Windows 身份驗證模式下使用 SQL

Why can#39;t I read from .BAK files on my Desktop using SQL Express in Windows Authentication Mode(為什么我無法在 Windows 身份驗證模式下使用 SQL Express 從桌面上的 .BAK 文件中讀取) - IT屋-程序員軟件開發技術分
本文介紹了為什么我無法在 Windows 身份驗證模式下使用 SQL Express 從桌面上的 .BAK 文件中讀取的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我正在嘗試在 SQL Express 中恢復 .BAK 文件之前執行此 SQL 查詢.最初,我在用戶帳戶的桌面上有該文件.我以管理員身份登錄.

I am trying to execute this SQL query prior to restoring a .BAK file in SQL Express. Initially, I had the file on the Desktop of my user account. I am logged in as Administrator.

當我嘗試像這樣訪問桌面上的 .BAK 文件時

When I try to access the .BAK file on the desktop like this

RESTORE FILELISTONLY FROM DISK= 'C:\Documents and Settings\Administrator\Desktop\file.bak'

出現錯誤.

Msg 3201, Level 16, State 2, Line 1
Cannot open backup device 'C:\Documents and Settings\Administrator\Desktop\file.bak'. Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 1
RESTORE FILELIST is terminating abnormally.

但是,當我將 .BAK 文件移動到 C:\temp 并執行此

However, when I move the .BAK file to C:\temp, and execute this

RESTORE FILELISTONLY FROM DISK= 'C:\temp\file.bak'

效果很好.

我無法弄清楚發生了什么.有沒有辦法通過 SQL Express 使用 Windows 身份驗證訪問桌面上的文件?

I cant figure out what is going on. Is there a way to access files on Desktop using Windows Authentication with SQL Express?

推薦答案

嘗試授予 UsersLOCAL SERVICE 對文件夾 C:\Documents and Settings\ 的讀取權限策略編輯器中的 Administrator\Desktop\(右鍵單擊該文件夾,然后在安全"選項卡中單擊添加...",然后單擊高級..."|立即查找

Try granting read permission to Users or LOCAL SERVICE to the folder C:\Documents and Settings\Administrator\Desktop\ in your Policy Editor (right click the folder and in the Security tab click Add... then Advanced...|Find Now

這篇關于為什么我無法在 Windows 身份驗證模式下使用 SQL Express 從桌面上的 .BAK 文件中讀取的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

What SQL Server Datatype Should I Use To Store A Byte[](我應該使用什么 SQL Server 數據類型來存儲字節 [])
Interpreting type codes in sys.objects in SQL Server(解釋 SQL Server 中 sys.objects 中的類型代碼)
Typeorm .loadRelationCountAndMap returns zeros(Typeorm .loadRelationCountAndMap 返回零)
MS SQL: Should ISDATE() Return quot;1quot; when Cannot Cast as Date?(MS SQL:ISDATE() 是否應該返回“1?什么時候不能投射為日期?)
Converting the name of a day to its integer representation(將一天的名稱轉換為其整數表示)
How to convert nvarchar m/d/yy to mm/dd/yyyy in SQL Server?(如何在 SQL Server 中將 nvarchar m/d/yy 轉換為 mm/dd/yyyy?)
主站蜘蛛池模板: 天天成人综合网 | 欧美成人手机视频 | 国产在线播| 国产成人精品久久二区二区91 | 国产在线观看福利 | 亚洲精品片| 在线观看国产精品视频 | www.久| 超碰天天 | 久久亚洲一区二区三区四区 | 一区二区国产精品 | 91欧美| 日韩在线一区视频 | 色综合99| 男人的天堂亚洲 | 免费一区二区三区 | 欧美日韩福利 | 夜色www国产精品资源站 | aaaa网站| www.玖玖玖 | 日本视频在线 | 成人精品视频 | 精品视频免费在线 | 成人影| 日韩免费一二三区 | 国产精品a久久久久 | 夜夜骚视频 | 国产欧美一区二区三区久久人妖 | 韩日三级 | 日韩精品成人 | 一区二区三区在线 | 欧 | 午夜久久av| 午夜精品一区二区三区在线播放 | 国产草草视频 | 日韩欧美视频在线 | 国产精品特级片 | 一级片免费视频 | 高清一区二区 | 久久最新 | av中文天堂 | 1区2区视频 |