MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Using LinkData to connect over UDL-File to MSDE/SQL-Server

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2004
Junior Member
White Belt
 
Join Date: Nov 2004
Posts: 3
Using LinkData to connect over UDL-File to MSDE/SQL-Server

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 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 11-15-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hi,

I've found a good solution and example at:

http://www.mp2kmag.com/a48--sqlserve....mappoint.html

Sebastian Boelling
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
connect, linkdata, msde or sqlserver, udlfile


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -5. The time now is 06:56 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Corfu Holiday
Why not enjoy the option of a Corfu holiday through UlookUbook? Check out the online offers...



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59