I’m working on a location tracking system using SQL Server, and I store location updates for employees every few seconds. Here’s my table: CREATE TABLE tblAppLocation ( id INT PRIMARY KEY IDENTITY(1,1), inEmpId INT FOREIGN KEY REFERENCES tblMstEmployee(inEmpId), latitude FLOAT NOT NULL, longitude FLOAT NOT NULL, timestamp DATETIME NOT NULL DEFAULT GETDATE() ); We track 300+ employees, inserting data 12 hours a day. Over time, the table size will...
Originally asked by Ganesh Mohane on Stack Exchange (stackoverflow) (CC BY-SA 4.0).