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

ExecuteNonQuery returns wrong results???

Hello All,

I am using the command.ExecuteNonQuery() method to execute
an update statement. I then check the return value to see
how many records were affected by the update. This used
to work in .NET 1.0, but when we upgraded to .NET 1.1 it
now returns -1. Has anyone else experienced this?

Thanks in advance,
Vince
Jul 19 '05 #1
0 1276

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

Similar topics

2
by: Matt Michael | last post by:
I'm using ADO .NET to connect to a Microsoft Access database, and everything so far has been working in my program except one small problem. I am constructing a query string to search for certain...
8
by: Stephen Costanzo | last post by:
We have an application that uses a SQLDataReader to cycle through a control table in the database and process records based upon that data. These records include things like the directory to poll...
0
by: Vince Varallo | last post by:
Hello All, I am using the command.ExecuteNonQuery() method to execute an update statement. I then check the return value to see how many records were affected by the update. This used to work...
3
by: keithb | last post by:
What can I put in a stored procedure to control what gets returned by command.ExecuteNonQuery()? I already tried this: param = comm.CreateParameter(); param.ParameterName = "@Success"; ...
2
by: bug0926 | last post by:
The following code runs and gets no errors...the select returns no rows, what am I doing wrong? I instantiate the class, run the write a few teams, then the read, and in vb.net I still see no data...
2
by: Jason Huang | last post by:
Hi, I am not clear about the difference between the SqlCommand's ExecuteReader and ExecuteNonQuery. Would somebody show me an example to demonstrate the difference? Thanks for help. Jason
22
by: b_r | last post by:
Hi, I'm trying to make a simple operation (insert into DB) in VB 2005 and SQL Server. The code is as follows: Dim sConnectionString As String = _ "Data...
8
by: Tony M | last post by:
Shouldn't the ExecuteNonQuery be TRUE if it finds a record and FALSE is not? I get FALSE all the time and I seeded the database with the email address. I just want to check if record exist before...
4
by: bogdan | last post by:
Hi, I have a stored procedure that deletes a record in db. I created a DataSet (xsd) which auto-generated code for a table adapter. The adapter's select, insert, update, and delete methods...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.