Load labels from sql server.

Topics: General Topics
Aug 22, 2006 at 8:40 AM

In my windows application I draw a shape from a shapefile datasource. The labels are rendered from the same datasource. I would like to import the dbf part of the shapefile into SQLServer and render the labels from there.

Is it possible or where can I make an adjustment to make it possible?

Kind regards,

Aug 22, 2006 at 10:10 AM
Just uploading the DBF data to the SQL server isn't enough. You will need to at least upload a point where the label should be placed, or even better: Stop using shapefiles and upload the entire dbf AND geometry to the database (there's a helper method for that - see MsSql.CreateTable())