@Table_R nvarchar(50)
FETCH NEXT FROM M_cursor INTO @M_col    
PRINT 'Mandatory Feilds ' + @M_col 
Select count(*) from @Table_R where @M_col is null'    
FETCH NEXT FROM M_cursor INTO @M_col 
I will send the table name as parameter ' @Table_R' , But in the cursor it throws an error.
- How to use dynamic table in the Sql Cursor.
thanks
 
     
    