Saturday, 16 June 2018
How to add auto increament with string of number and letter?
CREATE TABLE [dbo].[tbl_Product](
[Id] [int] IDENTITY(101,1) NOT NULL,
ProductId As 'PRO'+Right('000'+convert (varchar(10),Id),6)persisted,
[ProductName] [nvarchar](100) NULL,
[Quantiy] [int] NULL,
[Price] [decimal](18, 1) NULL,
[CreateOn] [datetime] NULL
) ON [PRIMARY]
Output-
Subscribe to:
Posts (Atom)
How to Setup SLA in CE module
Setting Up SLA (Service Level Agreements) in Dynamics 365 Customer Engagement (CE) A Service Level Agreement (SLA) in Dynamics 365 CE (Cust...
-
CREATE Procedure SP_PaymentToSupplierEmployee_Periodically @tbl_OrganizationId nvarchar(50) AS BEGIN SET NOCOUNT ON; SELECT COUNT(...
-
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ArrayManipulation { ...
-
tbl_employee EmployeeId EmployeeName Gender 1 ABC male 2 YYC ...