Programming MapPoint in .NET
C.2. Step 1: Create a Table to Store Your Business Location Data
Let's say you have business locations for which you want to enable proximity searching; in order to do that, you need to have your business listings and their corresponding location information expressed in latitude and longitude coordinates as radians. Once you have that data, you need to create a SQL table (say, BusinessEntity) to store your business listings: CREATE TABLE [BusinessEntity] ( [ID] [int] IDENTITY (1, 1) NOT NULL, [Name] [nvarchar] NOT NULL, [Latitude] [float] NOT NULL, [Longitude] [float] NOT NULL, [XAxis] [float] NOT NULL, [YAxis] [float] NOT NULL, [ZAxis] [float] NOT NULL, ) ON [PRIMARY] GO
Once you created the table successfully, load your data into it using either SQL Data Transformation Services (DTS) or SQL Server Integration Services (SSIS).
|
Категории