p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > SQL Server > SQL Server 2005 > SQL Server 2005
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 12th, 2006, 04:50 AM
Friend of Wrox
Points: 970, Level: 12
Points: 970, Level: 12 Points: 970, Level: 12 Points: 970, Level: 12
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2006
Location: Bangalore, Karnataka, India.
Posts: 232
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......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old December 12th, 2006, 09:25 PM
Friend of Wrox
Points: 1,412, Level: 15
Points: 1,412, Level: 15 Points: 1,412, Level: 15 Points: 1,412, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2006
Location: , MI, USA.
Posts: 454
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Please post the INSERT statement that is causing the violation.

--Jeff Moden
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 10:03 AM
Brand New Database, No records ken.barrett ASP.NET 2.0 Basics 0 October 20th, 2005 05: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 10:01 AM
Datagrid update, dropdownlist database insertion herman ASP.NET 1.0 and 1.1 Professional 2 October 11th, 2003 02:31 AM



All times are GMT -4. The time now is 07:14 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc