SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

weisgerber
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?

tkizer
Almighty SQL Goddess

USA
35952 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
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.05 seconds. Powered By: Snitz Forums 2000