Obtenir le code d'un create table avec la collation
A partir de SSMS, je sélectionne une table, "script table as->Create to", j'obtiens
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| CREATE TABLE [Stubbe].[UniqueIdentifier](
[Id] [varchar](100) NOT NULL,
[ShortUI] [varchar](50) NULL,
[StateId] [tinyint] NOT NULL,
[TypeId] [tinyint] NOT NULL,
[GenerationRequestedOn] [datetimeoffset](7) NULL,
[AnticipatedUsageOn] [datetimeoffset](7) NULL,
[IssuerNotificationTime] [datetimeoffset](7) NULL,
[ParentId] [varchar](100) NULL,
[ProductItemId] [int] NULL,
[RecalledByCode] [varchar](100) NULL,
[FacilityId] [varchar](300) NULL,
CONSTRAINT [PK_UniqueIdentifier] PRIMARY KEY NONCLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] |
Or, si je vais sur la colonne [Id]->Properties, je vois que la collation est SQL_Latin1_General_CP1_CS_AS.
Or, si je vais sur la colonne [RecalledByCode]->Properties, je vois que la collation est SQL_Latin1_General_CP1_CI_AI, différents.
Est-il possible d'obtenir le script du create table avec la collation dedans?