473,473 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sql server service pack 3 update, delete question or problem

hi all
i am trying to update or delete a row/record in table cptcodes
the error i am getting is

key column information is insufficient or incorrect to many rows
were affected by update....

can you tell me wat causes the above Error
this is a new table no primary keys set or index's or constraints just a
single table with some data
in it...all columns are char nulls allows except the key field but no
primary set as yet

thanks for the help
dave
Jul 20 '05 #1
2 1736

"news.la.sbcglobal.net" <dv****@cwnet.com> wrote in message
news:oF*****************@newssvr27.news.prodigy.co m...
hi all
i am trying to update or delete a row/record in table cptcodes
the error i am getting is

key column information is insufficient or incorrect to many rows
were affected by update....

can you tell me wat causes the above Error
this is a new table no primary keys set or index's or constraints just a
single table with some data
in it...all columns are char nulls allows except the key field but no
primary set as yet

thanks for the help
dave


Your error message doesn't seem to be a standard MSSQL error, so I guess
it's coming from your client library, ie. ADO or whatever. In any case, the
problem is most likely because you have no primary key - some clients will
not update/delete a table without a primary key, because with no key it's
not possible to identify which rows should be modified. So I would add a key
and see if that fixes the error - you should always have a primary key on
all tables anyway.

If this doesn't help, perhaps you can give some more information, especially
the CREATE TABLE statement and also which client tool/library you're using.

Simon
Jul 20 '05 #2
Hi

This sort of message appears in EM when you don't have a PK and you choose
to delete the row as it can not distinguish the row, so I guess it will
disappear if you added a PK.

John

"news.la.sbcglobal.net" <dv****@cwnet.com> wrote in message
news:oF*****************@newssvr27.news.prodigy.co m...
hi all
i am trying to update or delete a row/record in table cptcodes
the error i am getting is

key column information is insufficient or incorrect to many rows
were affected by update....

can you tell me wat causes the above Error
this is a new table no primary keys set or index's or constraints just a
single table with some data
in it...all columns are char nulls allows except the key field but no
primary set as yet

thanks for the help
dave

Jul 20 '05 #3

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

Similar topics

0
by: Jack Smith | last post by:
Hello, I have PHP 4.3.1.1 running on Windows 2000 Server with IIS 5. This connects to an MS SQL 7 server running on a seperate NT4 box. Recently, this SQL7 Server had SQL7 Service Pack 4...
3
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old...
2
by: Don Peters | last post by:
In spite of trying various ways of loading .NET Framework 1.1 Service Pack 1 under my new WinXP Service pack 1, I was unable to get it to install. Typically, the installation would hang after a...
0
by: Tiziano | last post by:
I currently have installed .NET Framework 1.1 (_not_ the SDK version, though) on a Win2K PC. I am unable to apply the above-mentioned service pack via Windows Update. In the middle of the...
3
by: Wade | last post by:
I would like to install the .Net 1.1 framework on a Web Server running W2K to be able to run ASP.NET files, but I'm not sure where to find the files I need for the .Net framework. I have ".NET...
0
by: InstallAware | last post by:
Dear Group If you want to perform a slipstreamed install of .NET Framework 1.1, including Service Pack 1, here's how. First, what do we mean by slipstreamed install? It means that version 1.1...
19
by: Mark C. | last post by:
The company I work for has been running Access 2000 on a Windows NT server with Opportunistic Locking turned off on the server without issue for almost a year. We have just switched to a Windows...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
4
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
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
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,...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.