473,322 Members | 1,287 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,322 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 1599

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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.