troubleshooting Question

When createing a linked server connection to a CSV file any numeric value len >= 10 is passed to SQL Server as a null

Avatar of scmchugh
scmchugh asked on
Microsoft SQL Server
1 Comment1 Solution183 ViewsLast Modified:
When creating a linked server connection to a CSV file and the column in the CSV file is numeric, any record in that column which has a length >= 10 is passed to the SQL Server as a NULL.

This does not happen when Bulk Insert is used or when the file is created as comma-delimited text.  

Here are the Linked Server settings:
provider= 'Microsoft.Jet.OLEDB.4.0',
srvproduct ='Jet 4.0',
provstr = 'Text'


Could it be that we are using the incorrect provider or srvproduct?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros