Friday, April 27, 2012

SQL query to create table


USE [Surgere1]
GO

/****** Object:  Table [dbo].[asn]    Script Date: 04/28/2012 10:08:14 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[asn](
[asn_id] [bigint] IDENTITY(1,1) NOT NULL,
[client_id] [bigint] NOT NULL,
[from_id] [bigint] NOT NULL,
[from_type] [varchar](50) NOT NULL,
[to_id] [bigint] NOT NULL,
[to_type] [varchar](50) NOT NULL,
[status] [varchar](50) NOT NULL,
[created_id] [bigint] NULL,
[created_dt] [datetime] NULL,
[last_update_id] [bigint] NULL,
[last_update_dt] [datetime] NULL,
[asn_no] [varchar](50) NULL,
 CONSTRAINT [PK_asn] PRIMARY KEY CLUSTERED
(
[asn_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]

GO

SET ANSI_PADDING OFF
GO


No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...