Sql Server Cursor Insert Into Table Query In Sql