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:
http://stackoverflow.com/questions/1525063/how-to-import-data-in-sql-compact-edition
http://stackoverflow.com/questions/1515969/exporting-data-in-sql-server-as-insert-into/1515975