473,545 Members | 1,558 Online
Bytes | Software Development & Data Engineering Community
+ 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 1741

"news.la.sbcglo bal.net" <dv****@cwnet.c om> wrote in message
news:oF******** *********@newss vr27.news.prodi gy.com...
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.sbcglo bal.net" <dv****@cwnet.c om> wrote in message
news:oF******** *********@newss vr27.news.prodi gy.com...
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
2481
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 applied to it. After this Service Pack, the PHP apps could no longer connect to the database. Warning: mssql_connect() : Unable to connect to server:...
3
3257
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 scripts working on a new server with the most recent version of PHP. I've pretty much taken care of all the various errors that were popping up. ...
2
1878
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 minute or two of execution. After many hours of frustration, I called Microsoft tech support and discussed the issue with them. After asking around,...
0
4130
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 update process, Windows Installer informs that the update failed but gives no reason. I downloaded the service pack and tried to install it manually,...
3
2242
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 Framework 1.1 Service Pack 1" (NDP1.1sp1-KB867460-X86.exe) and "ASP.NET Security Update for .NET Framework 1.1 SP1" (NDP1.1sp1-KB886903-X86.exe). ...
0
1730
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 of the framework will be installed, with the service pack 1 update already applied, "slipstreamed". There will be no need to download additional...
19
2703
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 2000 file server with service pack 3 installed and are now experiencing at least 2 corruptions a day. The registry setting for Opportunistic Locking...
22
3245
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 load DLL (aspnet_isapi.dll)." Of course the dll is able to be found, it's still in the framework directory and for grins I even put it in my...
4
7293
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 get the same error message: "An error occurred while creating one or more registry entries. Please see C:\WINDOWS\sqlstp.log for details. The...
0
7467
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7401
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7807
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7419
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7756
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5326
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3442
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
703
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.