id summary reporter owner description type status priority milestone component version severity resolution keywords cc 5696 MSSQL Spatial driver - Bug in SQL when creating table. vaticanuk tamas "377 oStmt.Appendf(""CREATE TABLE [%s].[%s] ([ogr_fid] [int] IDENTITY(1,1) NOT NULL"" 378 ""CONSTRAINT [PK_%s] PRIMARY KEY CLUSTERED ([ogr_fid] ASC))"", There needs to be a space either at the end of the string on line 377 or the start of the string on line 378. Otherwise the generated sql reads as ""... NULLCONSTRAINT ..."" which is invalid sql and the table creation fails. " defect closed normal 1.11.2 OGR_SF unspecified critical fixed