In SQL Server 2008, I have a linked server to a directory containing comma-separated text files. The files contain fields that have leading zeros in them that constitute account numbers, i.e., "000025", and the leading zeros are intended as part of the number. As a linked server to a directory, I can see the tables, but I can't set the field types (see image below).
What I suspect is happening is that SQL Server sees numeric values and pre-emptively classifies the field as a number, and I am wondering if I can specify to have SQL Server recognize the field as an nvarchar, so as not to suppress leading zeros.
Thanks, ~Peter Ferber