Hi,

When I try to use the DataSets.LinkData method with an udl file, it returns an Exception: "Cannot import data because a connection to the database could not be established."

Code:

string strConn = @"c:\temp\datalink.udl!Position";

MapPoint.DataSet objDS = this.objMap.Application.ActiveMap.DataSets.LinkDat a(strConn, "PositionID", null, MapPoint.GeoCountry.geoCountryTheNetherlands, MapPoint.GeoDelimiter.geoDelimiterDefault, GeoImportFlags.geoImportFirstRowNotHeadings );


datalink.udl contents:
[oledb]
Provider=SQLOLEDB.1;Password=WASSABI;Persist Security Info=True;User ID=BUD;Initial Catalog=Nuon_FSA;Data Source=S005


(created by double clicking empty .udl file)

Any advice?