473,396 Members | 1,755 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,396 software developers and data experts.

I want to connect ms-access from ftp server in c# windows application

Hello !

I create a windows application in c# and i want to connect ms-access database from ftp server.

But it's shows error "could not connect server".

Please help me any one.


My Code

Expand|Select|Wrap|Line Numbers
  1.  try
  2.             {
  3.  
  4.                  OleDbConnection cnn = new OleDbConnection(@"Provider=MS Remote;Remote Server=ftp://domainname.in;Remote Provider=Microsoft.Jet.OLEDB.4.0;user id=uid ; password=password ;Data Source=mydb.accdb;Persist Security Info=True");
  5.  
  6.                 try
  7.                 {
  8.                     OleDbCommand cmd = new OleDbCommand("insert into table([a1][a2])values(" + textBox1.Text.Trim() + "," + textBox2.Text.Trim() + ")", cnn);
  9.                     cnn.Open();
  10.                     cmd.ExecuteNonQuery();
  11.                     cnn.Close();
  12.                 }
  13.                 catch (Exception ex)
  14.                 {
  15.                     MessageBox.Show(ex.Message);
  16.                 }
  17.  
  18.             }
  19.             catch (WebException ex)
  20.             {
  21.                 MessageBox.Show(ex.Message);
  22.  
  23.             }
May 30 '15 #1
0 1602

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

Similar topics

8
by: Miguel Ramirez | last post by:
Anyone knows how to call a windows application inside ASP.Net code? Regards,
1
by: Mats-Lennart Hansson | last post by:
Hi, I want to create a windows application that takes a .dot file containing one page, multiplies that page and the saves it to disk as a .doc file. That is, I want the new document to contain a...
1
by: seanmle | last post by:
I want to build a windows application that has a datagrid filled with data. When a person modifies information on a single cell, it updates the database without the user having to click on a save...
7
by: sravi8 | last post by:
Hi all I want to build a windows application for Minmum system Config Eg.windows 98 etc I am planning to start with .net Windows Application with c sharp i want to choose a backend like MS...
1
by: vrrajesh80 | last post by:
I have one windows application, the EXE of this application will expect command line arguements. I want to use this windows application in web application as like as DLL. If can anyone answer for...
0
by: Balaurugan | last post by:
Mobile is already connected to PC using Bluetooth technology.what i need now is How to Connect Mobile to windows application using C# with in a second.Pls Urgent advance thanx
2
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
1
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
0
by: abytparackal | last post by:
Hello, I am new to vb.net. I developed windows application in vb.net.I need to communicate with web server(PHP & MySql) for the s/w registration purpose.and download the some details to windows...
1
by: MuneerShajahan | last post by:
Hi, I am new to VB.Net. I want to connect my VB.Net project to SQL server to pass the data. How do I do that? Appreciate your help with an example.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.