Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 DTS Error

Author  Topic 

sqldba2k6
Posting Yak Master

176 Posts

Posted - 2007-07-25 : 13:45:14
I am importing the data from sqlserver to .csv file.
when i am executed the dts package i got below error.
error opening network file:datafile was not found
How do i specify the destination path where .csv file to be generated...


I have mentioned the path like:
\\mysystemname\C:\Documents and Settings\Desktop\Dirname\test.csv



Please help ......

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-07-25 : 13:48:54
That is not a valid path. Are you familiar with how to reference shares? Hint, you use $.

You should always test your paths via a cmd prompt before putting them in a package, application, job, etc...

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

sqldba2k6
Posting Yak Master

176 Posts

Posted - 2007-07-25 : 13:59:54
Thanks for the reply..
I am not familiar with reference shares.

can yu give me some more hints or examples...
I am specifying the path in .csv properties in designer package
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-07-25 : 14:04:52
Admin shares require $, custom shares do not. C is an admin share as are other drives.

Admin share:
\\myServer\e$\SomeFolder\SomeFile.txt

Custom share:
\\myServer\SomeShare\SomeFile.txt



Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

sqldba2k6
Posting Yak Master

176 Posts

Posted - 2007-07-25 : 14:16:55
Thanks it works fine!!!!!!!
Go to Top of Page
   

- Advertisement -