Skip to content

Commit 6b7ffaa

Browse files
authored
Merge pull request #10454 from MicrosoftDocs/FromPublicRepo
Confirm merge from FromPublicRepo to master to sync with https://github.com/MicrosoftDocs/sql-docs (branch live)
2 parents 1b5b667 + 55c3954 commit 6b7ffaa

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

docs/t-sql/functions/openrowset-transact-sql.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,17 @@ SELECT * FROM OPENROWSET(
407407
SINGLE_CLOB) AS DATA;
408408
```
409409

410+
```sql
411+
select *
412+
from openrowset('MSDASQL'
413+
,'Driver={Microsoft Access Text Driver (*.txt, *.csv)}'
414+
,'select * from E:\Tlog\TerritoryData.csv')
415+
;
416+
```
417+
410418
> [!IMPORTANT]
411-
> Azure SQL Database does not support reading from Windows files.
419+
> - The ODBC driver should be 64-bit. Open the **Drivers** tab of the [OBDC Data Sources](../../integration-services/import-export-data/connect-to-an-odbc-data-source-sql-server-import-and-export-wizard.md) application in Windows to verify this. There is 32-bit `Microsoft Text Driver (*.txt, *.csv)` that will not work with a 64-bit version of sqlservr.exe.
420+
> - Azure SQL Database does not support reading from Windows files.
412421
413422

414423
### I. Accessing data from a file stored on Azure Blob storage

0 commit comments

Comments
 (0)