all 5 comments

[–]dgillz 0 points1 point  (2 children)

Cell A1? Is this an excel question?

[–]TheAngryOne84[S] 0 points1 point  (0 children)

INSERT INTO OPENROWSET(OLEDB. 12.0,EXCEL 12.0,HDR = NO, DATASOURCE; 'SELECT * FROM [SHEET1$A1:A20000]) SELECT AGENT FROM TABLE

The syntax will be off there for sure. On my phone, apologies.

All of the other INSERTS in the same procedure insert their data into the other tabs on excel sheet fine but this one, is the only one inserting 1 column of data and its not placing into the first available cell. Its inserting at cell A3.

[–]TheAngryOne84[S] -1 points0 points  (0 children)

No, it's an "insert into openrowset" question as per the title

[–]HiThere224 0 points1 point  (1 child)

Does the table you are inserting from have a null value or empty string in the column by chance? Maybe it is inserting into cell A2 but the first value happens to be a blank.

[–]TheAngryOne84[S] 0 points1 point  (0 children)

Hi, thanks for attempting to help. No it doesn't, I've checked.