本地连接:
data source=USER12;initial catalog=sms_test;persist security info=False;user id=sa;password=123456;workstation id=USER12;packet size=4096
服务器连接:
data source=IBM;initial catalog=sms;persist security info=False;user id=sa;password=××××;workstation id=IBM;packet size=4096本地连接是用,vs。net成生的。服务器连接是手修改的。

解决方案 »

  1.   

    好像找到原因了,好像与System.Windows.froms.dll有关
    一使用到MessageBoxShow()就会没反应了
      

  2.   

    问题解决了么?
    我也遇到过类似的问题,把一个web application移到另外一台机器上就出现了数据库只读的现象,查询可以,但是插入等等都不行了,我好像没用什么messageboxshow呀~~
    未找到原因中
    准备重装了。
      

  3.   

    呜呜我的.net已经重装过了,为什么还是只读呢????
    一遇到写操作,就出错:
    System.Data.OleDb.OleDbException: 操作必须使用一个可更新的查询。
       at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr)
       at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
       at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
       at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
       at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
       at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
       at QQ.Service1.GetID() in e:\c&s\herald\qq\qq.asmx.cs:line 108