Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Using LinkData to connect over UDL-File to MSDE/SQL-Server within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I want to link geographic data with the DataSets.LinkData-Method. My Data is stored in a MSDE/SQL-Server-Database. I want to ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Using LinkData to connect over UDL-File to MSDE/SQL-Server I want to link geographic data with the DataSets.LinkData-Method. My Data is stored in a MSDE/SQL-Server-Database. I want to connect to the database over an UDL-File. I have longitude an latitude-values (data-type floating) in the database for faster linking to the data. The manual connection over the UDL-File to the MSDE/SQL-Server-Database with the DataSets.ShowLinkWizard-Method works fine. But the Link-Data-method fails. Does anybody have a working example for using the LinkData-method to connect over an UDL-File to an MSDE/SQL-Server Database with Lat/Lon-values? My (not working) example: Dim aArrayOfFields(1 To 2, 1 To 2) As Variant aArrayOfFields(1, 2) = "Longitude" aArrayOfFields(2, 1) = geoFieldLongitude aArrayOfFields(1, 2) = "Latitude" aArrayOfFields(2, 1) = geoFieldLatitude Dim strPrimaryKey As Variant strPrimaryKey = "ID" Dim oDataSet As MapPointCtl.DataSet Set oDataSet = Me.MappointControl1.ActiveMap.DataSets.LinkData(Ap p.Path & "\Data\Datalink.udl!geodata", strPrimaryKey, aArrayOfFields) Thank you, Sebastian Bölling |
| |||
|
Hi, I've found a good solution and example at: http://www.mp2kmag.com/a48--sqlserve....mappoint.html Sebastian Boelling |
![]() |
| Tags |
| connect, linkdata, msde or sqlserver, udlfile |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Connect to Oracle using UDL file | msotres | MapPoint 2006/2009 Discussion | 4 | 06-13-2004 09:31 PM |
| LinkData with UDL file in VB 6 App | Wim | MapPoint 2006/2009 Discussion | 1 | 04-03-2003 06:04 AM |
| connect dots | misterb83 | MapPoint 2006/2009 Discussion | 0 | 02-13-2003 09:57 AM |
| Connect Route Stops? | swberman | MapPoint 2006/2009 Discussion | 1 | 01-11-2003 09:29 PM |
| I'd like to connect my notebook with GPS through T.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 02-21-2002 11:51 PM |
Corfu Holiday
Why not enjoy the option of a Corfu holiday through UlookUbook? Check out the online offers...