ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old May 11th, 2004, 12:02 PM
BLNINJA #81 BLNINJA #81 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 BLNINJA #81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy MSSQL / ColdFusion problem

I keep on getting this annoying error! What am I doing wrong?


Error Executing Database Query.
[MERANT][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint 'PK_TB_DailySheet1'. Cannot insert duplicate key in object 'TB_DailySheet'.

The Error Occurred in C:\CFusionMX\wwwroot\ab\source\dailysheet.cfm: line 124

122 : </cfif>
123 : )
124 : </cfquery>
125 : <cfset dstime = "">
126 : <cfset ds_cname = "">



--------------------------------------------------------------------------------

SQL insert into TB_AmericanBeauties.dbo.TB_DailySheet (ds_id, ds_day, ds_dt, ds_lo, ds_time, ds_cl_name, ds_source, ds_to_fee, ds_duration,ds_cate, ds_rp_name, ds_rp_fee, ds_tp_name, ds_tp_fee, ds_hs_fee, cr_dt, cr_by) values (2996, Null, '05/08/2004', Null, Null, 'testing123', '', '1000', '1hr', 'elite', 'avis verge', Null, 'blondie', Null, Null, getdate(), '1' )
DATASOURCE AmericanBeauties
VENDORERRORCODE 2627
SQLSTATE 23000

Heeeeeeeelp!!!!!

Reply With Quote
  #2  
Old May 11th, 2004, 02:19 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,488 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 18 h 10 m 11 sec
Reputation Power: 42
This has nothing to do with ColdFusion. You are attempting to insert a duplicate primary key into a table. A primary key must be unique. The constraint that you are violating is 'PK_TB_DailySheet1'. Insert a different value for the key.

Reply With Quote
  #3  
Old May 11th, 2004, 03:21 PM
BLNINJA #81 BLNINJA #81 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 BLNINJA #81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok
it is very strange that it lets me actually input when it feels like it.
I should axe murder the guy who created this!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > MSSQL / ColdFusion problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway