Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EXEC [dbo.spsClient] '123456' '01.01.2014'
- ...
- nr = 123456
- date = DateValue(ActiveWorkbook.Sheets(sheetData).Cells(4, 3))
- Dim ADODBCmd As New ADODB.Command
- With ADODBCmd
- .ActiveConnection = objconn
- .CommandTimeout = 500
- .CommandText = "dbo.spsClient"
- .CommandType = adCmdStoredProc
- .Parameters.Refresh
- .Parameters.Append ADODBCmd.CreateParameter("@number", adVarChar, adParamInput, 50, nr)
- .Parameters.Append ADODBCmd.CreateParameter("@date", adDate, adParamInput, datePoint)
- Set recordset = .Execute()
- End With
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement