Thanks for all the pointers so far - I am understanding more about the API each day and learning that there are several ways to achieve results.
Now trying to figure out the best method to achieve the end result for my Ship Trackin application (porting from MapInfo).
I have a SQL Server Express 20008 R2 table for my ship locations, with various fields including Vessel_ID (unique number), VesselName, Latitude, Longitude, Speed, Heading, Symbol_Info (shape, size, colour, attribute), etc.
This table is being updated independently as new data comes in so the vessel position, speed & heading will change for each vessel at any time.
I want to have MapSuite working pretty well independently of the data coming in, and have MapSuite cycle through the database every 5 or 10 seconds (or less), displaying all the vessels.
I see sql2008Layer can connect to SQL Server 2008, but all the examples I have seen uses the spatial capabilities of SQL Server where the points (actually all the examples seem to use shapes rather than points) are stored spatially inside the database & easily pulled out into MapSuite.
In my case I have no spatial data in the table so MapSuite would have to somehow figure out from the Lat & Long fields where to place each point and how to rotate the font symbol. And to add to the difficulty each symbol will be a different shape, size & colour.
So, is it possible to do the actual work in one line like is done with the example:
Dim sql2008Layer As New MsSql2008FeatureLayer(connectString, "states", "recid")
or would I have to bring the vessels from the database to the map one record at a time to change their attributes before putting them onto the map? I guess that is the main question.
If I have to do it record by record I think I already know enough about how to do it, but if it could be done in 1 go then this would be a lot less code & a lot faster.
Or is this method not the best way to do it in the first place? I can see that it might be a waste of CPU resources redisplaying 1000 different ships every 5 seconds if only a few have moved in the last 5 seconds since the last cycle.