473,435 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,435 software developers and data experts.

Cannot bulk load because the file in "" could not be opened

I have tried to search through the Knowledge Base and seems nothing same as what I am encountering.

I have a web server which is having Windows 2003 and SQL 2000, while database server is having Windows 2008 and SQL 2005.

My web application allows user to upload a *.csv file, and it calls a DLL file to write a *.bat file with a BCP statement to BCP this *.csv file into database server. But, we found out it failed at the step that DLL calling (Shell) the *.bat file and it logs the following error message:

cannot bulk load because the file in "E:\wwwroot\app\vd\appro_BIGXG.cvs" could not be opened. Operating system error code 3(The system cannot find the path specified)

Any of you have idea on how could this be resolved? What else I should check or what setting I should set? I am not a DBA, so I am not very familiar on SQL Server.
May 5 '10 #1
7 11528
ck9663
2,878 Expert 2GB
Can your server see the E drive?


~~ CK
May 5 '10 #2
Hi CK, yes the server can see the E drive. We have tried to paste the following into the Windows > Run, and it does able to bring up correct directory:

E:\wwwroot\app\vd
May 6 '10 #3
ck9663
2,878 Expert 2GB
It might not be visible inside the SQL Server. Try checking it if you can see it from inside the server. The "E" might be visible on the OS side, but not on the SQL Server side.

Good Luck!!!

~~ CK
May 6 '10 #4
Hi CK, do you mean we need to check from the SQL Server that is installed in the web server, and see if the E drive is visible form the SQL server?
May 6 '10 #5
I executed the following and it does show the free space of E drive:
EXEC xp_fixeddrives
May 6 '10 #6
ck9663
2,878 Expert 2GB
Try running a dir on xp_cmdshell "dir E:\wwwroot\app\vd\appro_BIGXG.cvs" and try to capture the result. See if the file will show up.

Good Luck!!!

~~ CK
May 6 '10 #7
Hi CK, Thank You for the reply. Yes, I did try this in the SQL Server 2000 which is installed in the web server,it does able to be executed successfully.

I have even given the directory Everyone right, it is still failed. Manually execute the *.bat file is able to work, I also tried to create a scheduler task to trigger the *.bat file by using the same right as the Component Services for the DLL, it works too.

This is weird condition and have no idea what else to check.
May 7 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mark Depenbrock | last post by:
--Apple-Mail-2--68472726 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Can not make mysql connection - error log: 030708 08:53:48 mysqld started
0
by: Nick Boudreau | last post by:
Trying to start mysqld for the first time after a reinstall on Mac OS X gives me this error: 030709 12:53:26 mysqld started 030709 12:53:27 InnoDB: Operating system error number 13 in a file...
3
by: Loi | last post by:
Hi All, I use Bulk insert to put data to myTable. When the SQL server is in local machin, it works well. But when I put the data in a sql server situated not locally, then I get a error message...
0
by: srikanth | last post by:
Failed to execute request because the App-Domain could not be created. Error: 0x80070002 The system cannot find the file specified. I am getting this error (in the event log) when trying to...
0
by: Jairam Panickssery | last post by:
I have a simple JDBC 2.0(app driver) code snippet like: ########################### cSQL = DriverManager.getConnection(sDBURL, sDBUser, sDBPasswd); DatabaseMetaData dmd = cSQL.getMetaData(); //rs...
0
by: Curious | last post by:
Hi, I'm not sure if this is the right place to post such command issues. If you know a better forum where people respond to messages fairly often, please let me know! Anyway, would appreciate...
1
by: bharathreddy | last post by:
Hai, In general why do we get the "This system cannot find the file specified". exception eventhough all the files used in the C# application are present. Here in my application I am refering...
1
by: Pradeep83 | last post by:
Hi All, Good Morning Here I am jotdowning my problem I am compiling a .c file in Free BSD 6.0 and exceuting there itself. and i have taken that...
1
by: jdresow | last post by:
I installed MySQL on a windows server 2003, in an acxtive directory domain and I get error 32 which is a sharing error. I do not understand this and I am also adding the first several lines of my...
0
by: taleden | last post by:
Hi, - I'm trying to load a large file (about 300MB) using pickle.load(). - The file contains a PyMl classifier object - When I load the file on my PC it works fine (with an XP operating system)....
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.