Results 1 to 6 of 6

Thread: Create table + index + primary

Threaded View

  1. #2
    Join Date
    Sep 2002
    Posts
    5,938
    CREATE TABLE [dbo].[Users] (
    [id_Users] [int] NOT NULL PRIMARY KEY clustered,
    [Name] [nvarchar] (100) NULL,
    [Serial] [nvarchar] (100) NULL unique,
    ) ON [PRIMARY]


    CREATE TABLE [dbo].[UsersExtra] (
    [id_Users] [int] NOT NULL references [users].[id_users] on delete cascade
    ) ON [PRIMARY]


    You can find syntax in books online.
    Last edited by rmiao; 12-17-2006 at 10:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •