I need column names from the table which is having leading space. To find out this, created stored procedure. The procedure first selecting the columns from the table whch is of char datatype then using cursor we are passing the column names and checking whether it have any leading space, if it has leading space, it should insert the column name in another temp table but the procedure inserting the column value(data) instead of column name.
Can anyone pls help me to get the column name instead of the column value which is having leading space.
Thanks in advance!
Forums: