Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. EXEC [dbo.spsClient] '123456' '01.01.2014'
  2.  
  3. ...
  4. nr = 123456
  5. date = DateValue(ActiveWorkbook.Sheets(sheetData).Cells(4, 3))
  6.  
  7. Dim ADODBCmd As New ADODB.Command
  8. With ADODBCmd
  9. .ActiveConnection = objconn
  10. .CommandTimeout = 500
  11. .CommandText = "dbo.spsClient"
  12. .CommandType = adCmdStoredProc
  13. .Parameters.Refresh
  14. .Parameters.Append ADODBCmd.CreateParameter("@number", adVarChar, adParamInput, 50, nr)
  15. .Parameters.Append ADODBCmd.CreateParameter("@date", adDate, adParamInput, datePoint)
  16. Set recordset = .Execute()
  17. End With
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement