Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Help with query

Author  Topic 

isjord
Starting Member

38 Posts

Posted - 2006-01-09 : 19:25:49
I was doing a database for the first time using the query analyzer this is my results.

USE Registration
GO

INSERT INTO Student(studentID, studentName)
VALUES(38214, 'Letersky')
INSERT INTO Student(studentID, studentName)
VALUES(54907, 'Altvater')
INSERT INTO Student(studentID, studentName)
VALUES(66324, 'Aiken')
INSERT INTO Student(studentID, studentName)
VALUES(70542, 'Marra')

I got this as a result, I do not know what to change to make this work.
Cannot insert explicit value for identity column in table 'Student' when IDENTITY_INSERT is set to OFF.

How do I change this what does the error mean.
Thanks



albanie

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-01-09 : 19:26:50
Duplicate:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=59957

Please do not create a new thread.

Tara Kizer
aka tduggan
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-01-09 : 22:19:50
you already got quite a number of responses on http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=59957. Refer to that post

-----------------
'KH'

Go to Top of Page
   

- Advertisement -