hi
I use it to generate script from the database how I can generate script from database like below:
Refer below thread:
DROP TABLE Estate_TR
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE TABLE [dbo].[Estate_TR](
[id] [smallint] IDENTITY(1,1) NOT NULL,
[Transfer] [nvarchar](20) COLLATE Persian_100_CI_AI NULL,
[Type] [nvarchar](20) COLLATE Persian_100_CI_AI NULL
) ON [PRIMARY]
SET IDENTITY_INSERT [dbo].[Estate_TR] ON
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (1, N'رهن کامل', N'')
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (2, N'رهن/اجاره', N'')
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (3, N'پيش فروش', N'')
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (4, N'اجاره', N'زمين')
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (5, N'فروش', N'زمين')
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (6, N'معاوضه', N'زمين')
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (7, N'اجاره', N'باغ')
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (8, N'معاوضه', N'باغ')
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (9, N'فروش', N'باغ')
INSERT [dbo].[Estate_TR] ([id], [Transfer], [Type]) VALUES (17, N'معاوضه', N'""')
SET IDENTITY_INSERT [dbo].[Estate_TR] OFF
Best regards
Neda