Community of VE/MapPoint Users and Developers
This is a discussion on UDL to SQLServer doesn't work (C#) within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, When I try to use the DataSets.LinkData method with an udl file, it returns an Exception: "Cannot import data ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| UDL to SQLServer doesn't work (C#) 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? |
![]() |
| Tags |
| sqlserver, udl, work |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Work with mapinfo by VB6, help me!!! | Anonymous | Other Mapping Platforms | 6 | 08-07-2008 01:09 PM |
| Automatic Bar/Pie Charts (with Data from SQLServer) | webjagger | MapPoint 2006/2009 Discussion | 3 | 05-27-2004 11:16 AM |
| i want to use this example but it don't work | Anonymous | MapPoint 2006/2009 Discussion | 3 | 02-28-2004 10:37 AM |
| Can Mappoint work for me? | mr_hypocrite | MapPoint 2006/2009 Discussion | 1 | 08-14-2003 10:49 AM |
| does mappoint2002 work with win 95 | Anonymous | MapPoint 2006/2009 Discussion | 0 | 06-24-2003 08:45 AM |