开发者

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

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:

  • How to import data in SQL Compact Edition?
  • Exporting data In SQL Server as INSERT INTO


SQL Server Compact 3.5 does not support the full SQL Server (non-Compact) DLL/feature set. E.g. nvarchar(max) is not supported, nor is the ON PRIMARY syntax, since the compact database is stored in a single file.

Ref. SQL Server Compact Edition CREATE TABLE: link text

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜