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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Bulk Insert命令具體
- bulk insert 在mssql中使用SQL
- 關於AXSD和SQLXML BULK LOADSQLXML
- oracle bulk Insert 比insert 快不是一點啊.Oracle
- SQL Server Bulk Insert批量資料匯入SQLServer
- Elasticsearch——mget及bulkElasticsearch
- Elasticsearch的Bulk API使用ElasticsearchAPI
- Oracle 的 bulk collect用法Oracle
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- Application failed to start because it could not find or load the QT platform plugin “windows”APPAIQTPlatformPluginWindows
- mongodb批量操作, bulk_write,MongoDB
- 【PL/SQL】初試 bulk collectSQL
- go tool compile 報錯 could not import sync (file not found)GoCompileImport
- oracle 11g使用DML Error Logging來避免bulk insert故障OracleError
- tar (child): bzip2: Cannot exec: No such file or directory 報錯
- 資訊批量提取工具bulk-extractor
- oracle bulk collects 之 java selectOracleJava
- BULK COLLECT FAILS WITH ORA-04030AI
- pl/sql中bulk collect的用法SQL
- Could not load file or assembly 'xxx' or one of its dependencies.
- Hadoop學習三十六:使用BulkLoad時Bulk load operation did not find any filesHadoop
- 使用BULK COLLECT+FORALL加速批量提交
- APPEND,bulk collect,正常插入比較APP
- 使用Bulk Collect提高Oracle查詢效率Oracle
- Go 呼叫 elasticsearch 批量操作介面 “/_bulk” ,提示"\n"錯誤GoElasticsearch
- Cannot load from short array because "sun.awt.FontConfiguration.head" is nullNull
- VS中呼叫QT出現This application failed to start because it could not find or load the Qt platform pluginQTAPPAIPlatformPlugin
- ElasticSearch7.4批量匯入_bulkElasticsearch
- Quoted- How Bulk Binds in PL/SQL Boost PerformanceSQLORM
- PL/SQL LOB和檔案操作,bulk collectSQL
- 使用bulk collect實現cursor 批量fetch!
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- Error: The action can not be performed because ...could not be locked?ErrorORM
- Exclusive access could not be obtained because the database is in useAIDatabase
- SAP WM高階之上架策略B (Bulk Storage)
- 【elasticsearch】bulk api奇特的json格式的原因ElasticsearchAPIJSON
- 多行資料的批處理之bulk collect
- 用BULK COLLECT 減小LOOP的開銷(1)OOP