Hello,
I'm trying to connect MapX (patched, i.e. 4.51.106) to SpatialWare (4.5 on MS/SQL 2K
(SP2)), using both the
Add(miLayerinfoTypeServer) and the AddServerLayer methods.
They fail with an error message something along these lines:
Run-time error '-2147417848 (80010108): Method '~' of object '~' failed.
Anyone seen this kind of error message before ?
I've verified that the sent query is valid, it returns one record. The VB6 code looks
like this:
Dim L As New LayerInfo
L.Type = 4 'miLayerInfoTypeServer
L.AddParameter "Name", "MyLayer"
L.AddParameter "ConnectString", "DSN=MyDSN;Trusted_Connection=Yes"
L.AddParameter "Query", "SELECT * From dbo.vwMyView WHERE " & Text1.Text
L.AddParameter "Toolkit", "ODBC"
Map1.Layers.Add L, 1
Is there a simple way to verify whether or not MapX is capable of connecting to
SpatialWare or not ?
We're using MIPro 6.5 (patched) and MapBasic with the same SpatialWare database
without problems.
Best regards/Med venlig hilsen
Lars V. Nielsen
GisPro, Denmark
http://www.gispro.dk/
http://hjem.get2net.dk/lars-online/
WGS84: 10.26'40"E 55.20'20"N
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 6109