Hi All, how can I use select into(of oracle) statement in sqlserverHi Kirsten, I have started the new thread, plz help it is giving syntax error for select into begin DECLARE @MyRowCountFlag int select a,b into v1,v2 from tab where ... IF @@ROWCOUNT=0 SELECT @MyRowCountFlag=1 select x,y into v3,v4 from tab2 where.. IF @@ROWCOUNT=0 SELECT @MyRowCountFlag=2exception -- as per my understanding this exception is raised when any of the above select fails to retrive data ( i mean no rec) IF @MyRowCountFlag IS NOT NULL BEGIN when_no_data found then v1= some value v2= some value END