473,216 Members | 2,252 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,216 software developers and data experts.

Delete error with windows 2003

help me!

Could not delete from specified tables. with the follwing code
why?

thanks
protected void Button1_Click(object sender, EventArgs e)

{

string CntStr = Server.MapPath("") + @"\App_Data\Survey2007.mdb";

CntStr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + CntStr +
";Persist Security Info=False";
OleDbConnection Cnt = new OleDbConnection(CntStr.ToString());
OleDbCommand dbCmd = new OleDbCommand("Delete From tbl_password", Cnt);

Cnt.Open();

dbCmd.ExecuteNonQuery(); // error here: Could not delete from specified
tables.
}
Dec 30 '06 #1
2 1090
"Chea Vichet" <vi*********@nida.gov.khwrote in message
news:OU**************@TK2MSFTNGP03.phx.gbl...
help me!
1) Launch your internet browser (e.g. IE, Netscape, Opera, FireFox etc)

2) Navigate to http://www.google.com

3) Enter the text below in the box:

"Could not delete from specified tables"

4) Hit the button
Dec 30 '06 #2
On Fri, 29 Dec 2006 11:51:43 +0700, Chea Vichet wrote:
help me!

Could not delete from specified tables. with the follwing code
why?

thanks
protected void Button1_Click(object sender, EventArgs e)

{

string CntStr = Server.MapPath("") + @"\App_Data\Survey2007.mdb";

CntStr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + CntStr +
";Persist Security Info=False";

OleDbConnection Cnt = new OleDbConnection(CntStr.ToString());

OleDbCommand dbCmd = new OleDbCommand("Delete From tbl_password", Cnt);

Cnt.Open();

dbCmd.ExecuteNonQuery(); // error here: Could not delete from specified
tables.

}
What is the exact error message?

--
Bits.Bytes
http://bytes.thinkersroom.com
Dec 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Raj | last post by:
Hi all, Can anyone help me with a script which would delete files or move them to a different folder at some scheduled time..! Please.....!!! Thanks in advance...
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
23
by: da Vinci | last post by:
Greetings, Onwards with the school studying. Working on a program and need to delete a file from a known location on the hard drive but cannot get anything I do to work. I have tried to use...
16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
1
by: Keith | last post by:
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on...
4
by: Matthew Louden | last post by:
My ASP.NET application runs ok locally, but after I upload all the files to IIS in Windows Server 2003 Standard Edition, and no longer works. This has the following error messages: Configuration...
5
by: wo20051223 | last post by:
Deleting some files with C# fails with "Access to the path 'X' is denied". I have files copied from a CD that I burned (and not locked by a process) and a text file that I created in Windows...
5
by: cangove | last post by:
I have a class where I have defined the following overloaded methods: static void* operator new (size_t size, const std::nothrow_t&) throw (); static void* operator new (size_t size); ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.