Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Generate a sequnce Number with String in SQL Server 2008r2

$
0
0

Hi All,

I need to generate a sequence number like below.

EmpId                      Ename

CT001                      John

CT002                      Mike

AB003                      Shaun

'                                  '

'                                  '

'                                  '

TB010                      Kate

When i create the new employee in my application EmpId should be genereate the above process.

How can i do this in SQL Server 2008 r2.

Thanks

Madhava


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>