Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 12th, 2006, 04:50 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default insertion of records in database

Hello to all
i have table having following columns in it:
PK JoinInviteeID INT 4 Identity(1,1)
    ValidKey int 4 random
    UserID INT 4
    DisplayName nvarchar 50
    ToEmailAddr nvarchar 80
    FromEmailAddr nvarchar 80
    MessageBody nvarchar 250
    Subject nvarchar 50
    FirstSent datetime 8
    LastSent datetime 8
    SendCount tinyint 1 (0)
    FirstViewed datetime 8
    LastViewed datetime 8
    SendAsUser bit 1 (0)
    SMTPSent bit 1 (0)
    SMTPError bit 1 (0)
    LastUpdate Datetime 8
    SMTPSendCount tinyint 1 (0)
    RequestCount tinyint 1 (0)

I am unable to insert the values in it. even i set insert_identity ON
it displays error message as:
"Explicit value must be specified for identity column in table 'JoinInvitees' either when IDENTITY_INSERT is set to ON or when a replication user is inserting into a NOT FOR REPLICATION identity column.
"

plz help me..........



thanks......
__________________
thanks......
 
Old December 12th, 2006, 09:25 PM
Friend of Wrox
 
Join Date: Oct 2006
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Please post the INSERT statement that is causing the violation.

--Jeff Moden





Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulling records from the database debjanib ASP.NET 1.0 and 1.1 Professional 2 April 17th, 2006 09:03 AM
Brand New Database, No records ken.barrett ASP.NET 2.0 Basics 0 October 20th, 2005 04:38 PM
Navigating records in a database don baroo Classic ASP Databases 3 December 8th, 2004 07:09 AM
check for existing records b4 insertion deian Access ASP 11 June 13th, 2004 09:01 AM
Datagrid update, dropdownlist database insertion herman ASP.NET 1.0 and 1.1 Professional 2 October 11th, 2003 01:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.