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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 database backup and restore
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 11/15/2010 :  11:08:43  Show Profile  Reply with Quote
I have a SQL Server 2000 database with some fields, named "RI", with Identity_Specification = "yes". when I backup the database and restore it to a 2008 server everything works fine. when it is restored to another 2000 server, and I run the same application, I get an error that I cannot enter a "null" value in the "RI" field.

Shouldn't "RI" auto-increment? Is there some difference in the SQL command for 2000 vs. 2008?

Almighty SQL Goddess

38200 Posts

Posted - 11/15/2010 :  19:04:54  Show Profile  Visit tkizer's Homepage  Reply with Quote
There shouldn't be any difference between the two regarding the identity option.

Have you tried a quick test with an INSERT, like this:?

INSERT INTO YourTable(Column2, Column3, ...)
VALUES(...) --where Column1 is excluded from the list and is the identity column

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000