Dim CN As New ADODB.Connection
Dim iCmd As ADODB.Command



Const conn = "Provider = SQLOLEDB;" & _
               "Data Source = ip;" & _
               "Initial Catalog = storeDB;User ID =sa;Password = pw;"
CN.Open conn

Set iCmd = New ADODB.Command With iCmd .ActiveConnection = CN .CommandTimeout = 120 .CommandType = adCmdStoredProc .CommandText = "upd_yf_instore_by_styleNo" .Parameters.Refresh .Parameters("@styleNo") = Sheet1.Range("B" + Trim(Str(i))).Value .Parameters("@qty") = Sheet1.Range("C" + Trim(Str(i))).Value .Execute End With

 

相关文章:

  • 2022-01-04
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-07-15
  • 2022-02-10
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案