I have this VB code that runs a Stored Procedure. It is not doing anything but is not returning any error either. So I don't know what's not working. is there a way to see inside the parameters or to debug.print something?
If I run the SP in SSMS it works fine. so the SP seems to be OK.
TIA
DougP
If I run the SP in SSMS it works fine. so the SP seems to be OK.
Code:
Try
cnn.Open()
With cmd
.Connection = cnn
.CommandText = "sp_SOW_ManagerApproveTime"
.CommandType = CommandType.StoredProcedure
.Parameters.AddWithValue("WeekEndDate", Me.txtWeekEndingDate.Text)
.Parameters(0).SqlDbType = SqlDbType.Date
.Parameters.AddWithValue("Manager", Me.lblManagerName.Text)
.Parameters(1).SqlDbType = SqlDbType.Char
.Parameters.AddWithValue("ResourceLastName", TheFname)
.Parameters(2).SqlDbType = SqlDbType.Char
.Parameters.AddWithValue("ResourceFirstName", TheLname)
.Parameters(3).SqlDbType = SqlDbType.Char
' execute Sp
RetVal = .ExecuteScalar
End With
TIA
DougP