Red Gate forums :: View topic - Changed index not detected as a change
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Source Control 1
SQL Source Control 1 forum

Changed index not detected as a change

Search in SQL Source Control 1 forum
Post new topic   Reply to topic
Jump to:  
Author Message
rpresser



Joined: 02 Jun 2006
Posts: 7

PostPosted: Thu Feb 03, 2011 12:01 am    Post subject: Changed index not detected as a change Reply with quote

I dropped and recreated two indexes on a table (I changed the filter expressions), but SQL Source Control does not offer to let me commit them.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1121
Location: My desk.

PostPosted: Fri Feb 04, 2011 1:01 pm    Post subject: Reply with quote

Thanks for your post.

I've tried to replicate this myself with this kind of change:

Code:
USE [AW2]
GO

/****** Object:  Index [IX_Test]    Script Date: 02/04/2011 11:48:05 ******/
IF  EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[Test]') AND name = N'IX_Test')
DROP INDEX [IX_Test] ON [dbo].[Test] WITH ( ONLINE = OFF )
GO

USE [AW2]
GO

/****** Object:  Index [IX_Test]    Script Date: 02/04/2011 11:48:05 ******/
CREATE NONCLUSTERED INDEX [IX_Test] ON [dbo].[Test]
(
   [TID] ASC
)
WHERE [TID] < 0
WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
GO


Source Control correctly detected this (previously it was set to > 0 instead of < 0)

The difference is I am using the EAP of version 2.0 - so you may wish to test this out and see if it makes any difference? You'll find details here: http://www.red-gate.com/MessageBoard/viewtopic.php?t=12298.
The official version 2 is currently due out at the beginning of March (although this is subject to change of course)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group