简单的插入查询导致Msg 10054

时间:2014-03-14 22:15:00

标签: sql sql-server sql-server-2008

我只是尝试将一些记录插入SQL Server 2008,如下所示:

INSERT INTO [Mydb].[mytable].[Daily_message] (
       [ServerIP_vch]
      ,[ENASubject_vch]
      ,[ENAMessage_vch]
      ,[TroubleshootingTips_vch]
      ,[CGIDump_txt]
      ,[HighPriority_bit]
      ,[AlertType_si]
      ,[Timestamp_dt]
      ,[To_vch])
VALUES
      ('xx.xx.x.xxx',
       'Communication Link Failure',
       'S108',
       'NULL',
       'NULL',
       'CGI DUMP',
       '0',
       '1',
       '2013-10-18 08:02:55.113',
       'my@myemail.com');

我收到了以下红色信息:

Msg 10054, Level 20, State 0, Line 0
A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

我发现人们在网上讨论Msg 10054:http://www.sqlservercentral.com/Forums/Topic484875-146-1.aspx

他们在谈论以下原因:

  1. 网络故障
  2. SQL故障
  3. SQL config
  4. 恶意代码
  5. 但是,我想知道,由于上述4个原因,如何才能运行简单的Insert查询。任何人有任何想法?请告诉我。

    谢谢

1 个答案:

答案 0 :(得分:0)

如果从连接池中提取连接并且与服务器的连接已丢失,则会显示此错误。