I had similar issues when accessing an SQLite database. Interested to see whether any possible solution might resolve my problem as well.
Tom Bacon
GIS Engineer, Mouchel
T 01444 472380 │ E thomas...@mouchel.com │ W www.mouchel.com
Our values: innovation │ excellence │ integrity │ responsibility
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
---
You received this message because you are subscribed to the Google Groups
"MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Mouchel Limited (Mouchel) is registered in England and Wales with registered number 01686040 at Export House, Cawsey Way, Woking, Surrey, UK, GU21 6QX. The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of Mouchel. No contracts may be concluded on behalf of Mouchel by means of email communications. Mouchel reserves the right to monitor and intercept emails sent and received on our network. |
Brendan,
Try creating a linked table. It is pretty much the same as a “native” table. Editing/changing data will of course take a good while to refresh but if the majority of your work is to display the data then a linked table should work fine.
I think for live/live cached tables was changed in v 11 or 11.5 to include the MARS parameter in the connection string. You may want to open your connection string in notepad to make sure it’s part of the string. This parameter does help a good bit for live tables but probably not to your satisfaction.
I don’t use live connections on hardly any of our files since the performance is so bad !!
I’ve found the bottleneck is probably the ODBC connection and speed that it’s limited to. I’d be interested to see if the CadCorp software is utilizing an ODBC connection to the database.
Anyway, give it a shot and see how it works.
HTH
Mike
From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Brendan Stone
Sent: Tuesday, February 04, 2014 8:42 AM
To: mapi...@googlegroups.com
Subject: [MI-L] MS SQL Server 2008 performance within Mapinfo
Hi all,
--
Select * From "GIS"."dbo"."AddressBase_Final" WITH(INDEX(SX_Geom))
Well I eventually solved this issue anhen registering the DBMS table I had to use the Expert Mode "SQL View" option and specify the full SQL query, e.g:
Select * From "GIS"."dbo"."AddressBase_Final" WITH(INDEX(SX_Geom))
sub addNearbyAddressesToMap Dim query as string Dim x1,x2,y1,y2 as integer x1 = MapperInfo(frontwindow(), MAPPER_INFO_MINX)-500 x2 = MapperInfo(frontwindow(), MAPPER_INFO_MAXX)+500 y1 = MapperInfo(frontwindow(), MAPPER_INFO_MINY)-500 y2 = MapperInfo(frontwindow(), MAPPER_INFO_MAXY)+500 query = "select ""UPRN"", ""OBJECT"" from ""GIS"".""dbo"".""AddressBase_Final"" WITH(INDEX(SX_Geom)) where ""geom"".STIntersects((geometry::STPolyFromText('POLYGON (("+x1+" "+y1+", "+x2+" "+y1+", "+x2+" "+y2+", "+x1+" "+y2+", "+x1+" "+y1+"))', 27700))) = 1" Dim hdbc As Integer hdbc = Server_Connect("ODBC","DSN=xxxx;Trusted_Connection=Yes;DATABASE=xxxx;") Server hdbc link table query Toolkit "ODBC" Into nearbyAddresses Autokey ON ReadOnly Add Map Window frontWindow() Auto Layer nearbyAddresses Set Map Window frontWindow() Layer 1 Display Global Global Symbol (34,4227327,7) end sub