我使用oledb从.txt文件获取数据,并且遇到错误。OleDB'未指定的错误'VB
Dim oleDB = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\CompName\C$\Path;ExtendedProperties="Text;HDR=Yes;FMT=Fixed""
其中COMPNAME和路径是实数值
我得到了适配器未指定的错误填写
Using connection As New OleDbConnection(oleDb)
Using command As New OleDbCommand(sql, connection)
Using adapter As New OleDbDataAdapter(command)
adapter.Fill(s)
End Using
End Using
End Using
Return s
End Function
没有人尝试过使用OLEDB从不同的计算机越过歌厅内网的数据?
您设置为固定格式,你有SCHEMA.INI描述文本文件的结构(也叫做架构)? http://www.connectionstrings.com/microsoft-jet-ole-db-4-0/fixed-length-columns/ – Steve 2014-09-24 09:26:52
是的,我有 - 但我会检查默认分隔符,以确保 – 2014-09-24 10:00:13
也检查'正常“的共享名而没有隐藏的共享C $,这可能是一个权限问题。 – Steve 2014-09-24 10:02:27