Home Forums SQL Server 2008 T-SQL (SS2K8) I need to compare and split the string and then save it in the detail_tb but dont know how ? RE: I need to compare and split the string and then save it in the detail_tb but dont know how ?

  • those two foriegn key column can map,If i know how to map others .

    I select ka fk column values by selcting them with some criteria and map theses key with variable and pas them to insert queries.

    DECLARE

    @visid int,

    @msginID int,

    @@gsmno nvarchar(5)

    Select @msginID=fk_msgIn_Id,@visid=fk_visbox_Id from messageIn_Tb where GSMno =@gsmno

    I want to map the values as i did in above code.Is it possible and how ?