![]() | ![]() |
Home |
|
|
Troubleshooting and Error Messages Guide |
|
| Chapter 3 Error Message Writeups |
|
| Parser Errors |
|
| Error 195 |
15
'%.*s' is not a recognized %S_MSG.
Error 195 is raised when a query contains illegal syntax; more specifically, it is raised when the Adaptive Server parser expects a specific syntaxt (such as a particular command, keyword or punctuation mark) but instead encounters some other syntax or encounters missing text.
Error 195 is raised with the following states:
State | Meaning |
1 | Invalid create procedure option. |
2 | Invalid timestamp keyword on writetext. |
3 | Invalid log keyword on writetext. |
4 | Invalid shutdown option, invalid trace keyword on kill, or invalid option on set lock. |
5 | Invalid set option; covers miscellaneous options that are set to "on" or "off" |
6 | Invalid option on set offset. |
7 | All other invalid set options |
8 | Invalid option on set statistic. |
15 | Invalid quiesce database begin option |
16 | Invalid quiesce database end option |
The following common query errors may raise the 195 message:
using incorrect built-in function names (pre-12.5 only; in ASE 12.5 and later, a function that is not a built-in will be treated as an SQLJ function and will raise error 14216 if it is not found.)
using function names (applies to pre-12.5 only) or using keywords that are not recognized by T-SQL.
using an invalid combination of punctuation marks, such as unpaired quotes.
Check the query syntax; the state of the error can be helpful in locating the source of the problem in a complex query.
Check the semantics to make sure that the keywords or options used in the query are valid where they are used in the query.
If Running xp_cmdshell
If the 195 error was raised when you attempted to run xp_cmdshell, check for invalid syntax and check the parameters that were supplied to the procedure. Combinations of single and double quotes can make it impossible for the command to be parsed; replace each double quote (") with two single quotes ('') and retry.
If Using CIS
If the 195 error was raised when you queried an object in a remote server using Component Integration Services (CIS): your query may be using T-SQL syntax which is not understood by the (non-Sybase) remote server. To correct this, use the sp_passthru stored procedure, which allows you to pass a SQL statement using syntax native to the remote server.
For example:
sp_passthru ORACLE, "select date from shiptable", @errcode output, @errmsg output, @rowcount output, @shipdate output
Refer to the Reference Manual for more information about sp_passthru.
All versions
|
|