microsoft / microsoft/sql-server-samples
Cannot obtain the required interface ("IID_IColumnsInfo") from OLE DB provider "BULK" for linked server "(null)".
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 11.2k
- Forks
- 9.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 14
Description
I have followed all the steps you have mentioned in the bulk insert sample from Azure Blob Storage to Azure Sql.
Here's my table defintiion
CREATE TABLE Attendance(
[ATTENDANCE.SchoolID] varchar(100),
[Attendance.StudentID] varchar(100),
[Attendance.Attendance_CodeID] varchar(100),
[Attendance.Att_Date] date,
[Attendance.Period_ID] varchar(100),
[Attendance.Att_Mode_Code] varchar(100),
[Attendance.YearId] varchar(100)
)
BULK INSERT Attendance
FROM 'Attendance_export.csv'
WITH (
DATA_SOURCE = 'devStorage',
FORMAT='CSV',
FIRSTROW=2,
FIELDTERMINATOR=',',
ROWTERMINATOR = '0x0a',
TABLOCK);
When I do my insert this fails with the error
Cannot obtain the required interface ("IID_IColumnsInfo") from OLE DB provider "BULK" for linked server "(null)".
I have tried every combination of parameters possible. What do I have to do to debug this issue?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied Attendance table definition and BULK INSERT statement, then compare them with the repository's bulk insert sample from Azure Blob Storage to Azure SQL. Reproduce the IID_IColumnsInfo error using the stated CSV and settings; done means documenting the confirmed cause and the configuration or sample change that resolves it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, sql
- Domain
- cloud, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100