Lightswitch存储过程

时间:2015-04-24 12:55:23

标签: stored-procedures visual-studio-lightswitch

这是我的存储过程

Using connection = New SqlConnection
    '  Dim connectionStringName = Me.DataWorkspace.XtraReportsServiceData.Details.Name
    connection.ConnectionString = "Data Source=WIN-BTU6KNHNEGR\SQLEXPRESS;Initial Catalog=SapyLiveSystem;User ID=sa;Password=tytyty@21;Connection Timeout=3000000;"

    Dim procedure = "UpdateColorMatching"

    Using command = New SqlCommand(procedure, connection)
          command.CommandType = CommandType.StoredProcedure
          connection.Open()
          command.ExecuteNonQuery()
    End Using

End Using

'result = webservicesql.CallStoredProcuder
Log.log("Called after Stored Procedure")

它在我的开发电脑上运行100%,如果我从Web服务调用存储过程,它运行100%,如果我在服务器上安装它并尝试从web服务通过灯开关调用该过程它不会运行。如果我打电话给网络服务,它运行100%罚款。如果我从开发电脑上的lightswitch运行它100%罚款购买不是从服务器任何帮助

0 个答案:

没有答案