Hi,
When I trying to link MapPoint to the DB2 database using UDL file
strDataSource = "C:\DB2_Dev.UDL! PIC_GTA_MAP_DATA "
objDataSets = oApp.ActiveMap.DataSets
objDataSet = objDataSets.LinkData(strDataSource, "OUTLET_NUMBER", , 39, , )
I got this error: “Cannot connect with the specified DataSourceMoniker.”

I tested connection to the DB2 in UDL file and test was OK.

But when I use Access database with linked tables to the DB2 everything work fine:
strDataSource = "C:\Databases\PIC.mdb!PIC_GTA_MAP_DATA"
objDataSets = oApp.ActiveMap.DataSets
objDataSet = objDataSets.LinkData(strDataSource, "OUTLET_NUMBER", , 39, , )

Could you please tell me what I did wrong?