Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 30th, 2007, 05:22 AM
Authorized User
 
Join Date: Aug 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Identity_insert problem

When I am tryin to use identity_insert for first table(Master)...the function is working...but then after gettin redirected to Employee table, when again I am tryin to execute the query --

Set Identity_insert Employee On

then it is showing me error -- Microsoft OLE DB Provider for SQL Server (0x80040E14)
IDENTITY_INSERT is already ON for table 'company_information.dbo.Master'. Cannot perform SET operation for table 'EMPLOYEE'.

What shud I do??

And if I turn off the identity_insert for Employee then it gives me an error -- Identity_insert is set to off for table employee.

 Whats the solution?? :(
 
Old August 30th, 2007, 05:51 AM
Authorized User
 
Join Date: Aug 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It got sorted out :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
IDENTITY_INSERT happygv SQL Server 2000 4 November 27th, 2006 02:10 PM
Linked server with Identity_insert on b_amit76 SQL Server 2000 2 February 22nd, 2005 12:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.