| Author |
Message |
clamk123
Joined: 01 Apr 2012 Posts: 27
|
Posted: Mon Sep 10, 2012 6:42 pm Post subject: RelationalIndex question |
|
|
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 |
|
 |
Manfred.Castro
Joined: 23 Apr 2012 Posts: 122
|
Posted: Wed Sep 12, 2012 9:23 pm Post subject: |
|
|
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 |
|
 |
|
|
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