Ciao Lorenzo,
I do not have access to the actual Insert Commands being used by the third party application, I only have access at a query level.
So basically I am pulling records not inserting any, as I showed you in the structure the field is a DateTime field
CREATE TABLE [dbo].[STATS](
[ID] [bigint] IDENTITY(1,1) NOT NULL,
[StatType] [int] NOT NULL,
[StatisticTime] [datetime] NOT NULL,
[HowMany] [int] NOT NULL
)
A typical insert as scripted by the SQL server management tool .. not the actual application:
INSERT INTO [POSDB].[dbo].[STATS]
([StatType]
,[StatisticTime]
,[HowMany]
)
VALUES
(<StatType, int,>
,<StatisticTime, datetime,>
,<HowMany, int,>
)
So if you view it in a Grid Control you would see...
ID Stat Type StatTime How Many
0 21 2012-03-12 19:49:00 21
1 21 2012-03-12 19:48:00 120
2 21 2012-03-12 19:47:00 221
3 21 2012-03-12 19:46:00 231
4 21 2012-03-12 19:45:00 156
5 21 2012-03-12 19:44:00 44
6 21 2012-03-12 19:43:00 891
7 21 2012-03-12 19:42:00 990
8 21 2012-03-12 19:41:00 100
9 21 2012-03-12 19:40:00 120
Keep in mind there are millions of records here, we keep several weeks of data and that runs into the millions of transactions.
Spero che cosi va meglio ...
Angelo
Angelo Abruzzese