Anyone have came across this problem? A simple insert statement took 7 seconds, and this table contain 300 row of records. There no trigger on this table.
Table:
CREATE TABLE [dbo].[Table]
(
[intMsgIn] [int] IDENTITY(1,1) NOT NULL,
[charType] [char](4) NOT NULL,
[dtTrx] [datetime] NOT NULL,
[varMsg] [varchar](4000) NULL,
CONSTRAINT [PK_Tbl] PRIMARY KEY CLUSTERED ([intMsgIn] ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
SQL statement:
INSERT INTO Table (charType, dtTrx, varMsg)
VALUES(@charType, getdate(), @varMsg)
SELECT @@IDENTITY
This SQL statement was code in the store procedure and then is call by C# application.
Any possible reason that cause this slow?