Red Gate forums :: View topic - RelationalIndex question
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK 10
SQL Comparison SDK 10 forum

RelationalIndex question

Search in SQL Comparison SDK 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
clamk123



Joined: 01 Apr 2012
Posts: 28

PostPosted: Mon Sep 10, 2012 6:42 pm    Post subject: RelationalIndex question Reply with quote

When trying to determine a primary key on a table, if you use the Index.PrimaryKey boolean it states that it is deprecated and that one should use the RelationalIndexes instead.

When I enumerate through the Relational indexes, it seems to have a 1-to-1 match to the indexes.

For example, if my indexes count is 4, my relational indexes is 4 as well.

So what is the definition of a "RelationalIndex"? I'm trying to associate which index is a primary key, which seems to be looking for PrimaryKey=True, but this appears deprecated, but it isn't clear what is the new way to find it.

Any assistance would be helpful.
Back to top
View user's profile Send private message
Manfred.Castro



Joined: 23 Apr 2012
Posts: 205

PostPosted: Wed Sep 12, 2012 9:23 pm    Post subject: Reply with quote

RelationalIndex.PrimaryKey Property

True if the index is a primary key.

Namespace: RedGate.SQLCompare.Engine
Assembly: RedGate.SQLCompare.Engine (in RedGate.SQLCompare.Engine.dll)

Syntax

Visual Basic (Declaration)

Public Property PrimaryKey As Boolean

C#

public bool PrimaryKey { get; internal set; }

Visual C++

public:
property bool PrimaryKey {
bool get ();
void set (bool value);
}
_________________
Manfred Castro
Product Support
Red Gate Software
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