Hi all,I was converting oracle code to sql and found that a variable is declared %rowtype ( in oracle %rowtype means say for eg. v_prod_row tab%rowtype it will declare a variable of entire table col accesed by table.coli,e. v_prod_row.col1.. so on) I decided to use #tmp table for this, however the next statement isa call to functionv_prod_row = get_product_row(cPrId,cLegEnt,cMCent,'O')
followed by stm which is passing entire row to a functionvProduct_type = get_its_product_type(v_prod_row,null,cLegEnt,cMCent,'A')
can I do this in sql using table variableCan get entire table rec (v_pord_row) into a table variable at one go as above.Can I pass the entire table record as in second statement (v_prod_row)any help in moving me in rt direction would be of great help.I am using sql2005.Regards,-Neil