Auto Generate Unique ID in SQL Server ASP.NET C# | CODERBABA

preview_player
Показать описание
How to auto generate Unique user define Employee ID like (EMP001) with help of SQL Server in ASP.NET C#.
--------------------------
Step-1: Create a Table in SQL Server Database

create table tblemployee2
(
employeeId nvarchar(50),
empname nvarchar(50),

)
__________________________________
step-2: Insert a record

insert into tblemployee2 values('DYR4','VARI kumar')

--------------------------------------------------
Step-3: Use below mention select query
select 'FHMS'+ cast (max(cast(SUBSTRING( employeeId ,4, 5 )as int))+1 as nvarchar) as EmpID
from tblemployee2

_______________________________________
#coderbaba #AutoGenerateID #Emp001
...........................
.............................
Thanks for watching my video hit like , subscribe our channel and don't forget to share with you friends
............................
Thanks for being with us make sure you share and stay with us with subscribing us - regards CODERBABA

.....................
Follow Us Socially :

............................

LIKE SHARE SUBSCRIBE

See you in next video, have a nice day.
GOOD LUCK
Рекомендации по теме
Комментарии
Автор

Same question is asked in tech round and i pass that round because of your video very helpfulll thank you sir :) 😊

simrankalawant
Автор

Very informative video and i make a exe software reference via your video . kya aap mujhe bata sakte hai ki visual basic me hum jab tak net na ho to local server par data save ho aur jab net ho to domain server par save ho

vinodverma
Автор

Aur data automatic syn hota rahe please iss par ek video banaiye mujhe solution nahi mil raha visual basic me

vinodverma
Автор

Sir i am getting an error sqlexception was unhandled what to do in that plzz help me

priyansharora
Автор

Hello sir
Sir please bootstraps admin template ka use krna sikha suniye

sachinkumar-gber
Автор

unable to open project c:\program files(x86)microsoft visual studio in vb.net 2010 give solution

sarvottamlasane
Автор

Sir substring ka use mai kar raha hu to kuch nahi response mil raha hai

dhananjaysingh
Автор

Ecommerce ka website banana fully responsive and project asp.net ka video upload karana plz sir,
Or aap me incomplete chudha ecommerce website ka vosko pahle pura karo fir dusre ap video upload karana plz sir ji

Tarun-ujvq