Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends,

How to write the code to insert file from FTP to SQL DB Table?
Posted
Updated 8-May-12 7:13am
v2
Comments
Sergey Alexandrovich Kryukov 2-May-12 16:11pm    
Not clear. What script? Where? In what language?
--SA
Raman samineni 2-May-12 16:54pm    
in asp.net with C# and sql table
Sergey Alexandrovich Kryukov 8-May-12 12:59pm    
Aha. But C# is not a scripting language. When you call the server code "script", it sounds confusing. This is not Python or, say, Perl or PHP...
--SA
ZurdoDev 2-May-12 16:37pm    
What have you done so far? There is not a magic script that will do this for you so it will depend on your environment.
Raman samineni 2-May-12 16:55pm    
I did not do nothing, I am working on,,This is File in FTP server , I need to pull out this file from FTP and load in to SQL Table

This is asp.net with SQL server table
 
Share this answer
 
For FTP, use the class System.Net.FtpWebRequest. It has everything to act as an FTP client:
http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^].

For working with the SQL Server, you will need to use ADO.NET:
http://en.wikipedia.org/wiki/ADO.NET[^],
http://msdn.microsoft.com/en-us/library/aa286484.aspx[^],
http://csharp.net-informations.com/ado.net/csharp-ado.net-tutorial.htm[^].

This is a good CodeProject article for beginners, very useful:
Using ADO.NET for beginners[^].

Good luck,
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900