MAPINSTANCE
                                        Contains an XML definition of the state of a map at the time it was saved.  
                                        Primary Key
                                        
                                            
                                                
                                                    | Primary Key | 
                                                    Field Type | 
                                                
                                            
                                            
                                                
                                                    | ID | 
                                                    uniqueidentifier | 
                                                
                                            
                                        
                                        Fields
                                        
                                            
                                                
                                                    | Field | 
                                                    Field Type | 
                                                    Null | 
                                                    Notes | 
                                                    Description | 
                                                
                                            
                                            
                                                
                                                    | NAME | 
                                                    nvarchar(100) | 
                                                    
                                                     | 
                                                    Default = '' | 
                                                    Name of the map instance. | 
                                                
                                                
                                                    | DESCRIPTION | 
                                                    nvarchar(1000) | 
                                                    
                                                     | 
                                                    Default = '' | 
                                                    Description of the map instance. | 
                                                
                                                
                                                    | MAPINSTANCEXML | 
                                                    xml | 
                                                    
                                                     | 
                                                    
                                                     | 
                                                    Map instance XML definition. | 
                                                
                                                
                                                    | DATEADDED | 
                                                    datetime | 
                                                    
                                                     | 
                                                    Default = getdate() | 
                                                    Indicates the date this record was added. | 
                                                
                                                
                                                    | DATECHANGED | 
                                                    datetime | 
                                                    
                                                     | 
                                                    Default = getdate() | 
                                                    Indicates the date this record was last changed. | 
                                                
                                                
                                                    | TS | 
                                                    timestamp | 
                                                    
                                                     | 
                                                    
                                                     | 
                                                    Timestamp. | 
                                                
                                                
                                                    | TSLONG | 
                                                    bigint (Computed) | 
                                                    yes | 
                                                    CONVERT(bigint, TS) | 
                                                    Numeric representation of the timestamp. | 
                                                
                                            
                                        
                                        Foreign Keys
                                        
                                            
                                                
                                                    | Foreign Key | 
                                                    Field Type | 
                                                    Null | 
                                                    Notes | 
                                                    Description | 
                                                
                                            
                                            
                                                
                                                    | MAPCATEGORYCODEID | 
                                                    uniqueidentifier | 
                                                    yes | 
                                                    MAPCATEGORYCODE.ID
                                                     | 
                                                    FK to MAPCATEGORYCODE | 
                                                
                                                
                                                    | ADDEDBYID | 
                                                    uniqueidentifier | 
                                                    
                                                     | 
                                                    CHANGEAGENT.ID
                                                     | 
                                                    FK to CHANGEAGENT. | 
                                                
                                                
                                                    | CHANGEDBYID | 
                                                    uniqueidentifier | 
                                                    
                                                     | 
                                                    CHANGEAGENT.ID
                                                     | 
                                                    FK to CHANGEAGENT. | 
                                                
                                            
                                        
                                        Indexes
                                        
                                            
                                                
                                                    | Index Name | 
                                                    Fields | 
                                                    Unique | 
                                                    Primary | 
                                                    Clustered | 
                                                
                                            
                                            
                                                
                                                    | IX_MAPINSTANCE_DATEADDED | 
                                                    DATEADDED | 
                                                    
                                                     | 
                                                    
                                                     | 
                                                    yes | 
                                                
                                                
                                                    | IX_MAPINSTANCE_DATECHANGED | 
                                                    DATECHANGED | 
                                                    
                                                     | 
                                                    
                                                     | 
                                                    
                                                     | 
                                                
                                                
                                                    | PK_MAPINSTANCE | 
                                                    ID | 
                                                    yes | 
                                                    yes | 
                                                    
                                                     | 
                                                
                                                
                                                    | UC_MAPINSTANCE_NAME | 
                                                    NAME | 
                                                    yes | 
                                                    
                                                     | 
                                                    
                                                     | 
                                                
                                            
                                        
                                        Triggers