You might be just missing the column list, as the message says
SET IDENTITY_INSERT [MyDB].[dbo].[Equipment] ON
INSERT INTO [MyDB].[dbo].[Equipment]
(COL1,
COL2)
SELECT COL1,
COL2
FROM [MyDBQA].[dbo].[Equipment]
SET IDENTITY_INSERT [MyDB].[dbo].[Equipment] OFF
Related Contents:
- How to check if a column exists in a SQL Server table
- How to set a default value for an existing column
- How do I find a stored procedure containing ?
- How do I move a table into a schema in T-SQL
- How do you view ALL text from an ntext or nvarchar(max) in SSMS?
- How to wait for 2 seconds?
- Alter column, add default constraint
- INSERT INTO vs SELECT INTO
- SQL Server: Maximum character length of object names
- Generate MD5 hash string with T-SQL
- Using RegEx in SQL Server
- How do I use the CONCAT function in SQL Server 2008 R2?
- Current executing procedure name
- Confused about UPDLOCK, HOLDLOCK
- Get first day of week in SQL Server
- Listing information about all database files in SQL Server
- MS SQL compare dates?
- TSQL: How to convert local time to UTC? (SQL Server 2008)
- Understanding PIVOT function in T-SQL
- Comma separated results in SQL
- SQL Server 2008 Empty String vs. Space
- Can you explain the use of sys.sp_addextendedproperty in the following code?
- SQL Server: combining multiple rows into one row
- Pros & Cons of TRUNCATE vs DELETE FROM
- Compare dates using SQL Server
- T-SQL How to grant role to user
- SQL Server: check whether a Trigger is Enabled or Disabled?
- SQL Server 2008 – How do i return a User-Defined Table Type from a Table-Valued Function?
- Elegant way to delete rows which are not referenced by other table
- Counting no of rows returned by a select query
- Get size of all tables in database
- How can I remove duplicate rows?
- Check if a row exists, otherwise insert
- SQL Server Regular expressions in T-SQL
- What is the Oracle equivalent of SQL Server’s IsNull() function?
- T-SQL datetime rounded to nearest minute and nearest hours with using functions
- Multiple INSERT statements vs. single INSERT with multiple VALUES
- How can I automate the “generate scripts” task in SQL Server Management Studio 2008?
- What is the maximum number of characters that nvarchar(MAX) will hold?
- Simple DateTime sql query
- Microsoft SQL Server Management Studio 2008 deleting multiple user tables
- Determine SQL Server Database Size
- How to add a new schema to sql server 2008?
- Convert varchar into datetime in SQL Server
- Using IF ELSE statement based on Count to execute different Insert statements
- Remote Procedure call failed with sql server 2008 R2
- What do these Copy Only Backup options mean?
- Is there an “IF EXISTS” test for a linked server?
- SQL Server, How to set auto increment after creating a table without data loss?
- An attempt to login using SQL authentication failed