MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




UDL to SQLServer doesn't work (C#)

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


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

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 04-03-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
UDL to SQLServer doesn't work (C#)

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?
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
sqlserver, udl, work


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


All times are GMT -5. The time now is 12:08 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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