T-SQL ile Excel dosyasını sorgulamak

December 11th, 2011 by ne0c0de | Print T-SQL ile Excel dosyasını sorgulamak

Aşağıdaki kod ile C:\Dev klasöründeki test.xls dosyasında yer alan Sayfa1 isimli sheet deki verileri sorgulayabilirsiniz:

SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=C:\Dev\test.xls', 'SELECT * FROM [Sayfa1$]');

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

 

Leave a Reply

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.