|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem with parameters?
Hello,
The following query: SELECT SUM(CASE WHEN DocTypeID = @p0 THEN 1 ELSE 0 END) AS c0 FROM dbo.Incoming returns an error message "Syntax error or access violation". Why? TIA |
|
#2
|
|||
|
|||
|
Problem with parameters?
Check your SUM function.
SUM(column_name) |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Problem with parameters? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|