Connecting Tech Pros Worldwide Forums | Help | Site Map

MS SQL Problem

Newbie
 
Join Date: Aug 2008
Posts: 18
#1: Aug 13 '08
HI
er
Can Any one help on how do we create sequnce in ms sql, I can only do in Oracle but not in ms sql

I want to create a sequence and use a sequence in a trigger,
in oracle look like

you have a trigger(before insert new.field 1 := 'FD' || LPAD(CAST(uencename.nextval),num_field,Leading);

Can any one help how to do this.

debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,511
#2: Aug 13 '08

re: MS SQL Problem


pleaes find a related article here.
Newbie
 
Join Date: Aug 2008
Posts: 18
#3: Aug 13 '08

re: MS SQL Problem


Thanx I think that Examples will help
Reply