MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Using VB6 to Link to SQL View

This is a discussion on Using VB6 to Link to SQL View within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; What is the best way to do this? In the Help file examples, I do not see a syntax defined ...


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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 12-08-2004
Junior Member
White Belt
 
Join Date: Dec 2004
Posts: 6
Using VB6 to Link to SQL View

What is the best way to do this? In the Help file examples, I do not see a syntax defined for a Datasource Moniker using SQL. I do see a UDL file type, but there is no example syntax and I cannot get this to work.
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 12-08-2004
Junior Member
White Belt
 
Join Date: Dec 2004
Posts: 6
Answer

Ok. I figured out my own problem. Of course I will share...


For those of you trying to Import/Link directly to a SQL Table or View instead of using MS-Access as the "middleman". First create a UDL file that points to your SQL database (I use the ODBC DSN method). Here is the syntax for the code to link:

LinkData("C:\My_Data.UDL!My_Table", "ID_Field")

The part I was having a hard time with was the after the "!". You must specify the name of your SQL table or view here. Hope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-08-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,041
Blog Entries: 2
Thanks for the follow up.

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~~
~ Upgrade to MapForums Plus membership ~
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
link, sql, vb6, view


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/using-vb6-link-sql-view-3552.html

Posted By For Type Date
Sql view example - Using ADABAS Data in SAS Programs : Selecting and Combining Data This thread Refback 04-11-2007 08:02 AM

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
View by zip code John Swanick MapPoint 2006/2009 Discussion 8 07-12-2005 08:05 AM
Choosing what to view Anonymous MapPoint 2006/2009 Discussion 1 12-04-2003 03:46 AM
3D View Anonymous Wish List 0 06-06-2003 05:19 PM
One country view only? Anonymous MapPoint 2006/2009 Discussion 1 04-18-2003 10:45 AM
Print View healthsouthgirl MapPoint 2006/2009 Discussion 1 08-14-2002 09:03 PM


All times are GMT -5. The time now is 01:54 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

Luxor Holiday
Book your Luxor holiday through UlookUbook and visit this destination stooped in history.



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