This how I am defining it:
USE [ShopEarthDB]
GO
---DROP TABLE IF EXISTS SE_Cities
IF OBJECT_ID('SE_Cities') IS NOT NULL
DROP TABLE SE_Cities
CREATE TABLE [dbo].[SE_Cities](
[id] [int] IDENTITY(1,1) NOT NULL,
[region_id] [int] NOT NULL,
[country_id] [smallint] NOT NULL,
[latitude] [decimal](10, 8) NOT NULL,
[longitude] [decimal](11, 8) NOT NULL,
[name] [NVARCHAR](255)NOT NULL,
PRIMARY KEY CLUSTERED
(
[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]
CREATE INDEX SE_Cities_Index
ON SE_Cities (country_id,region_id,name);
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT SE_Cities ON
INSERT INTO SE_Cities
(id,
region_id,
country_id,
latitude,
longitude,
name )
VALUES
(1, 1, 1, 42.48333330, 1.46666670, 'Aixàs'),
(61, 1, 1, 42.43333330, 1.45000000, **'Mas d\'Alins''**),
enter code here
-- the following 3 are commented out, but also cause issues
--(143, 9, 2, 24.29861110, 53.20916670, 'Al Fuyay\''),
--(156, 9, 2, 22.96666670, 54.30000000, 'Al Hama\'im'),
--(739, 8, 2, 25.18222220, 56.22833330, 'Sa'if'),
(739, 8, 2, 25.18222220, 56.22833330, 'Sa'if');
------
-----------------
The error I receive is:
Msg 102, Level 15, State 1, Line 26 Incorrect syntax near 'Alins'.
I am trying to insert these the right way. I think its collation that I am looking for. Thanks for your time and help.