0
Array
(
[0] => 01S02
[1] => 0
[2] => [Microsoft][ODBC SQL Server Driver]Cursor type changed (SQLExecute[0] at ext\pdo_odbc\odbc_stmt.c:250)
[3] => 01S02
)
這是我得到的錯誤,當我在我的mssql數據庫中選擇。我只在某些查詢中得到這個,而我在某些查詢中沒有得到它。我正在使用相同的選擇。Mssql選擇返回錯誤的某些查詢
我想知道爲什麼我在我的mssql select中遇到這種錯誤。
有些時候,我得到
Array
(
[0] => 42000
[1] => 8114
[2] => [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type varchar to numeric. (SQLExecute[8114] at ext\pdo_odbc\odbc_stmt.c:254)
[3] => 42000
)
是什麼這些錯誤的手段?
不知道的第一個錯誤,但第二個錯誤看起來你有哪些與類型亂搞一些不好的SQL Server代碼。 –
@TimBiegeleisen關於什麼導致'遊標類型改變'的任何想法也是數據類型?在什麼東西? – Martin
請參閱[這裏](https://stackoverflow.com/questions/20436426/cursor-type-changed-error-on-perl-ole32-mssql-dateadd-function-results)爲一個可能的答案。它可能與混合類型的第二個錯誤有關。我會專注於查找並修復第二個錯誤,也許第一個錯誤也會消失。 –