SQL Compact import DB from SQL Server Express with Server Management Studio

Posted by Sasha on Stack Overflow See other posts from Stack Overflow or by Sasha
Published on 2009-11-04T09:46:31Z Indexed on 2010/05/16 0:50 UTC
Read the original article Hit count: 279

Hi! I try to import sql script, generated with Server Management Studio, into SQL Compact 3.5 and get a lot of error. What I am doing wrong?

I generate script with "Task/Generate Script" context menu. Part of my script:

CREATE TABLE [LogMagazines](
[IdUser] [int] NOT NULL,
   [Text] [nvarchar](500) NULL,
[TypeLog] [int] NOT NULL,
[DateAndTime] [datetime] NOT NULL,
[DetailMessage] [nvarchar](max) NULL,
[Id] [int] IDENTITY(1,1) NOT NULL,
 CONSTRAINT [PK_LogMagazines] PRIMARY KEY
(
[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]

Knowledge Base:

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server