November 7, 2011 at 2:15 pm
INSERT INTO OPENROWSET('Microsoft.Jet.OLEDB.4.0','Text;Database=D:\MSSQL\;HDR=Yes;', 'SELECT * FROM Test.txt')
SELECT * FROM Keywords
True this is for iimporting data ... but use HDR=No; It might be worth a quick test
November 7, 2011 at 2:22 pm
Thanks Ron.
I was doing it a little differently.
I do not see a property on my Excel Connection where I can set the Header to False.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 8, 2011 at 4:28 pm
I started a new post because the way I worded it was not the best for a reply.
http://www.sqlservercentral.com/Forums/Topic1202548-148-1.aspx
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 3 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply