dbTalk Databases Forums  

VB.NET and DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss VB.NET and DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marc Cardenas
 
Posts: n/a

Default VB.NET and DTS - 01-19-2005 , 09:49 AM






Hi,
I have done a DTS package which pull data from a CSV file and copy the
contents to a SQL table.
On the text file source I can put a CSV file which is in another server and
when I run it from SQL enterprise it works fine.

Then I have created a ASP.NET application.
I have included a input file button to be able to browse and select a CSV
file that you want to process and then it passes this file to the data
source, however if the file that I select it is on another server diferent
from the one that I'm opening the browser it fails, it says file it cannot be
found.

Any ideas?

Thanks for your help.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: VB.NET and DTS - 01-19-2005 , 02:38 PM






Remember that the location of everything is relative to the place where the
package is invoked. It could well be that the package actually cannot see
the file.

It could also be a case of permissions for the ASP account.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Marc Cardenas" <test (AT) test (DOT) com> wrote

Quote:
Hi,
I have done a DTS package which pull data from a CSV file and copy the
contents to a SQL table.
On the text file source I can put a CSV file which is in another server
and
when I run it from SQL enterprise it works fine.

Then I have created a ASP.NET application.
I have included a input file button to be able to browse and select a CSV
file that you want to process and then it passes this file to the data
source, however if the file that I select it is on another server diferent
from the one that I'm opening the browser it fails, it says file it cannot
be
found.

Any ideas?

Thanks for your help.



Reply With Quote
  #3  
Old   
Marc Cardenas
 
Posts: n/a

Default Re: VB.NET and DTS - 01-20-2005 , 03:51 AM



Hi,
The way the remote file is being accessed is
\\servername\c$\foldername\filename

What I have done instead of using c$ I have shared the folder where the text
file works, doing this it works, so maybe is some security related to not
allow a browser to access to a c$ on a remote machine.
However the share folder doesn't work for all the servers on the organization.

Thanks

"Allan Mitchell" wrote:

Quote:
Remember that the location of everything is relative to the place where the
package is invoked. It could well be that the package actually cannot see
the file.

It could also be a case of permissions for the ASP account.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Marc Cardenas" <test (AT) test (DOT) com> wrote in message
news:431A8683-8E00-4675-A4F7-AD3BCB89BDCE (AT) microsoft (DOT) com...
Hi,
I have done a DTS package which pull data from a CSV file and copy the
contents to a SQL table.
On the text file source I can put a CSV file which is in another server
and
when I run it from SQL enterprise it works fine.

Then I have created a ASP.NET application.
I have included a input file button to be able to browse and select a CSV
file that you want to process and then it passes this file to the data
source, however if the file that I select it is on another server diferent
from the one that I'm opening the browser it fails, it says file it cannot
be
found.

Any ideas?

Thanks for your help.




Reply With Quote
  #4  
Old   
Marc Cardenas
 
Posts: n/a

Default Re: VB.NET and DTS - 01-20-2005 , 04:25 AM



More news.
I have done the same but isntead of a web app I have done a windows app and
then it works.
Thanks

"Marc Cardenas" wrote:

Quote:
Hi,
The way the remote file is being accessed is
\\servername\c$\foldername\filename

What I have done instead of using c$ I have shared the folder where the text
file works, doing this it works, so maybe is some security related to not
allow a browser to access to a c$ on a remote machine.
However the share folder doesn't work for all the servers on the organization.

Thanks

"Allan Mitchell" wrote:

Remember that the location of everything is relative to the place where the
package is invoked. It could well be that the package actually cannot see
the file.

It could also be a case of permissions for the ASP account.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Marc Cardenas" <test (AT) test (DOT) com> wrote in message
news:431A8683-8E00-4675-A4F7-AD3BCB89BDCE (AT) microsoft (DOT) com...
Hi,
I have done a DTS package which pull data from a CSV file and copy the
contents to a SQL table.
On the text file source I can put a CSV file which is in another server
and
when I run it from SQL enterprise it works fine.

Then I have created a ASP.NET application.
I have included a input file button to be able to browse and select a CSV
file that you want to process and then it passes this file to the data
source, however if the file that I select it is on another server diferent
from the one that I'm opening the browser it fails, it says file it cannot
be
found.

Any ideas?

Thanks for your help.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.