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)
 @@identity returns nothing

Author  Topic 

taylo
Yak Posting Veteran

82 Posts

Posted - 2001-06-18 : 16:43:56
Can anyone tell me why @@identity is not working in this script

SQLMakeGroopeChat = "INSERT INTO Rooms(RoomName,RoomType,GroopeRoom) VALUES('"&Session("GroopeName")&"',1,"&Session("groope")&")"
ChatDB.execute(SQLMakeGroopeChat)
set rsID = chatDB.execute("Select @@identity as MaxID from Rooms")
curRoomThread = rsID("MaxID")

I have an numeric identity field in this table.


Rob


   

- Advertisement -