Tables [dbo].[UserProfileInfo]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count0
Created12:44:45 PM Thursday, October 04, 2007
Last Modified12:44:45 PM Thursday, October 04, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key pk_userprofileinfo: userID\upFieldIDForeign Keys fk_userprofileinfo_user: [dbo].[Users].userIDuserIDint4
No
Cluster Primary Key pk_userprofileinfo: userID\upFieldIDForeign Keys fk_userprofileinfo_upfields: [dbo].[Fields].upFieldIDupFieldIDint4
No
fieldDatanvarchar(200)400
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key pk_userprofileinfo: userID\upFieldIDpk_userprofileinfouserID, upFieldID
Yes
Foreign Keys Foreign Keys
NameColumns
fk_userprofileinfo_upfieldsupFieldID->[dbo].[Fields].[fieldID]
fk_userprofileinfo_useruserID->[dbo].[Users].[userID]
SQL Script
CREATE TABLE [dbo].[UserProfileInfo]
(
[userID] [int] NOT NULL,
[upFieldID] [int] NOT NULL,
[fieldData] [nvarchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UserProfileInfo] ADD CONSTRAINT [pk_userprofileinfo] PRIMARY KEY CLUSTERED ([userID], [upFieldID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UserProfileInfo] ADD CONSTRAINT [fk_userprofileinfo_upfields] FOREIGN KEY ([upFieldID]) REFERENCES [dbo].[Fields] ([fieldID])
GO
ALTER TABLE [dbo].[UserProfileInfo] ADD CONSTRAINT [fk_userprofileinfo_user] FOREIGN KEY ([userID]) REFERENCES [dbo].[Users] ([userID])
GO
Uses