I am running the following query to import a csv file:

SELECT * FROM OPENROWSET('MSDASQL', 'Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ=D:\Documents\;', 'SELECT * from file.csv') AS something


I am getting this error:

OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "(null)".


This is what I have done to try an resolve the issue, neither of which was enough:


MsSQL and IIS have access to the folder and file in question. They also both have access to the temporary folder for Network Services under which SQL server is running.
I have enabled Ad Hoc Distributed Queries using sp_configure
I have fixed the registry key DisallowAdhocAccess by setting it to 0
I have installed Microsoft Access Database Engine 2010 Redistributable


The system is a Windows 2008 Server running SQL Server 2012 Express, but the issue has been replicated with SQL Server 2008 as well.

At this point any random ideas are appreciated :). Thanks!


Question: What does this variable mean?
Answer: First of all, note that, like most dictionary definitions, this is not a complete sentence. To make it a complete sentence, we can read it as "[A function is] a variable so related...".

Second, note that the noun "variable" is implied in the prepositional phrase beginning with to, and in a few other places thereafter:

A variable so related to another [variable]...

Third, I think you may be getting tripped up by the adverb so, which is used in a nonintuitive way in this definition. It is used here in the sense of "in such a way" or "in the manner indicated":

A variable [that is] related to another [in such a way] that for each value assumed by one there is a value determined for the other.

This is roughly the same sense in which you use the word yourself: "...only to fail to do so." 

The reason it's confusing here is that although the word "related" is being used here as a verb in the past tense, "related" can be used as an adjective as well. And when we see the construction "[noun] ([verb]) so [adjective]," the word so is usually used in a different sense--that of an intensifier indicating a greatness of degree:

...a man so old his hair was as white as snow.

Knowing all this, we can rewrite the definition in a way that may be clearer to you:

[A function is] a variable [that is] related to another [variable] [in such a way] that for each value assumed by one [variable] there is a value determined for the other [variable].