Hi Vijay,
Quote:
quote:Select @newid = Max(col) From tbl where FK = 1
/*code that Generates new id according to key spacifications of table
i mean every table is bounded with spacific numeric values....
i.e tbl_1 id allowed between 20 and 30 etc
so here i check table and then check max existing id value
and then generate new key ....
*/
|
I need to generate new id after checking number of range which is spacified for given table in string variable ...
hope it will help you more ... to help me ... :)
Stay Beautiful,
Abdul Salam
There is no moving creature on Earth whose sustenance is not provided by Allah. He knows its living and its resting place,
and all that is recorded in a glorious Book. (Al-Quran)