Hi!
I am facing a very piculiar problem while using MS SQL Server 7 which is as follows.
I have a table having an Identity Column. Through stored procedure I am inserting the data into it & while the record is getting created I want to use the Identity seed generated. The procedure was working fine for some time. But after some days I found that even though it creates the record with the identity sheet, it is not returning the lat identity value i.e. through function @@identity.
Is have checked the database, tables etc through DBCC & also done Update statistics. But the same problem persists.
When I am using the same procedure on the same table of a different database it is working fine.
Can anybody helps me out at the earliest.
Thankx in advance
TapKs
I am facing a very piculiar problem while using MS SQL Server 7 which is as follows.
I have a table having an Identity Column. Through stored procedure I am inserting the data into it & while the record is getting created I want to use the Identity seed generated. The procedure was working fine for some time. But after some days I found that even though it creates the record with the identity sheet, it is not returning the lat identity value i.e. through function @@identity.
Is have checked the database, tables etc through DBCC & also done Update statistics. But the same problem persists.
When I am using the same procedure on the same table of a different database it is working fine.
Can anybody helps me out at the earliest.
Thankx in advance
TapKs