I am trying to insert data into a temp table from a select
query. I have almost 100 columns in my select query. How would I know or is there any trick by which I could know that a specific column is causing the binary data truncate error?
My query is like:
Insert into #t1
Select t1, t2,....
From Table1
What I thought out is to include additional column for each of my column which will give me length of column. But issue is I will having additional 100 columns in my select. Then I have to individually check for max size for each column.
Any help or suggestions will be appreciated.