Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9253237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:10:05+00:00 2026-06-18T11:10:05+00:00

Using MS SQL Server Management Studio 2008. I have a db (say ip 10.16.17.10

  • 0

Using MS SQL Server Management Studio 2008.
I have a db (say ip 10.16.17.10 and called db1) and a second one (say ip 10.16.17.25 called db2).

I am trying to copy one table (and its contents) from db1 into db2.
I have the database on both (but empty in db2).

The problem is no matter how I copy/export/import, no matter what options I set in MS SQL Server Management Studio 2008 when I click ‘table’->’Design’ (on db2) it ALWAYS says ‘Identity Spefication: NO’ even tho the db1 table has it on.

From db1 I go to ‘Tasks’->’export’->’source/db’ and ‘destination/db’->’Edit Mapping’->’Enable identity Insert’ and click it on.

But no joy. ALWAYS exports without it.
I try similar thing from IMPORT on db2. Similar thing if I use COPY.

I have read MANY of the STACKOVERFLOW articles on this, they all suggest setting IDENTITY_INSERT setting to ON but when I do run below:

SET IDENTITY_INSERT [dbo].[mytable] ON

The table either doesn’t exist yet or has already copied WITHOUT the identity setting on so see the error:

does not have the identity property. Cannot perform SET operation.

I have tried setting it as a property (under database properties) for db2 but when I copy/import/export never works.

Would appreciate any help here as lots of StackOverflow articles so far all seem to be having an easier time than me.

I am planning on doing this for another 50 or so tables in this database so am hoping to find a way which doesnt involve running scripts for each table.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:10:07+00:00Added an answer on June 18, 2026 at 11:10 am

    The process of using the Export Data Wizard to copy the data from one table to another will NOT replicate all aspects of the schema (like identity and auto-increment). If you want to replicate the schema, script out your table into a create statement, change the name to db2, and create it. Then you should be able to run the export/import wizard with the identity insert option on and insert into your new table that replicates the schema of your old table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I'm using SQL Server Management Studio 2008 and I have a query window
I have a problem when debugging stored procedure using SQL server Management Studio 2008.
using Visual.Web.Developer.2010.Express; using SQL.Server.Management.Studio.2008.R2; What I'm ultimately trying to do is update a sql
I'm using SQL Server 2008 Management Studio. Below is what I have to write,
I am using SQL Server 2008 Management Studio and have a table I want
using Visual.Web.Developer.2010.Express; using SQL.Server.Management.Studio.2008.R2; N00b here, I have a GridView, but I want to
I'm using SQL Server 2008 Management studio viewing a 2005 server and have just
I'm using SQL Server Management Studio 2008 and SQL Server 2008. Currently, I cannot
using Visual.Web.Developer.2010.Express; using SQL.Server.Management.Studio.2008.R2; Kinda new at C# here.. I got the first row
I am using SQL Server 2008 management studio to execute the following SQL statements,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.