sqlserver bulk insert報錯Cannot bulk load because the file could not be opened.
參考文件
使用SSMS開啟資料庫伺服器db1,執行如下
BULK INSERT Fileinfo
FROM '\\netapp2\Dev\files.csv'
WITH
(
FIELDTERMINATOR = '|'
);
報錯:Cannot bulk load because the file "\\netapp2\Dev\files.csv" could not be opened. Operating system error code 5(Access is denied.).
問題分析
1、登入資料庫伺服器db1,在作業系統介面上可以直接開啟\\netapp2\Dev\files.csv
2、在SSMS上執行bulk insert語句的使用者是user1,而user1有訪問\\netapp2\Dev\files.csv檔案的許可權
解決方法
登入netapp2伺服器,在cmd視窗執行hostname發現伺服器名稱是fsprod2,使用\\fsprod2\Dev\files.csv替代\\netapp2\Dev\files.csv,問題解決
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30126024/viewspace-2723100/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Elasticsearch——mget及bulkElasticsearch
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- sshd啟動報錯Could not load host key
- Cannot load from short array because "sun.awt.FontConfiguration.head" is nullNull
- iis 0x80070032 Cannot read configuration file because it exceeds the maximum file size
- BULK In-BIND與RECORD(轉)
- mongodb批量操作, bulk_write,MongoDB
- bulk forall 的測試(轉)
- 最新kali之bulk_extractor
- go tool compile 報錯 could not import sync (file not found)GoCompileImport
- [20200416]ORA-01187 cannot read from file because it failed verification tests.AI
- How to open and close static streams in a USB bulk endpoint
- Go 呼叫 elasticsearch 批量操作介面 “/_bulk” ,提示"\n"錯誤GoElasticsearch
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- VS中呼叫QT出現This application failed to start because it could not find or load the Qt platform pluginQTAPPAIPlatformPlugin
- ElasticSearch7.4批量匯入_bulkElasticsearch
- 【elasticsearch】bulk api奇特的json格式的原因ElasticsearchAPIJSON
- Signac處理bulk ATAC-seq資料
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- 圖解JanusGraph系列 - 關於JanusGraph圖資料批量快速匯入的方案和想法(bulk load data)圖解
- tensorflow2.x 報錯 Could not load dynamic library 'cudart64_101.dll'Dart
- tensorflow2.x 報錯 Could not load dynamic library 'cudnn64_7.dll'DNN
- SAP WM高階之上架策略B (Bulk Storage)
- libusb:libusb_bulk_transfer的timeout引數問題
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- JDK 載入jar中的檔案資源出現Cannot be resolved to absolute file path because it does not reside in the file systemJDKJARIDE
- Could not load file or assembly or one of its dependencies 試圖載入格式不正確的程式
- WebLogic啟動報Could not get the server file lockWebServer
- Nginx安裝啟動過程報錯libpcre.so.1 cannot open shared object file: No such file or directoryNginxObject
- Bulk 異常引發的 Elasticsearch 記憶體洩漏Elasticsearch記憶體
- iOS-拉outlet到程式碼區錯誤:Could not insert new outlet connection: Could not find any...iOS
- 報錯Intel MKL FATAL ERROR: Cannot load libmkl_core.so.的一種解決方法IntelErrorIBM
- 重新命名工具 Bulk Rename Utility v4.0.0.0 中文版
- SQLServer IDENTITY_INSERT問題SQLServerIDE
- allowedOrigins cannot contain the gateway 報錯AIGateway
- Dynamics CRM 如何使用XrmToolBox中的Bulk Workflow Execution批量更新資料
- scp 報錯 not a regular file
- IDEA 報錯Failed to load JVM DLLIdeaAIJVM