About 50 results
Open links in new tab
  1. sql - Return value from a stored proc on error - Stack Overflow

    Nov 5, 2012 · SQL Server will default the return value to zero. The returned values are typically used to return a status flag from the stored procedure with a non-zero value usually indicating …

  2. SQL Server return code -6, what does it mean? - Stack Overflow

    Aug 9, 2011 · It used to be the case, that the return values -1 to -99 were reserved for system-generated return values, and Books Online for earlier versions of SQL Server specified …

  3. t-sql Return Error Codes vs RaiseError - Stack Overflow

    Jan 2, 2013 · The main difference between a return code and an exception is that the exception will continue to be passed up the chain of calls. In general, in the code that I write, I use return …

  4. How to return the output of stored procedure into a variable in sql ...

    Aug 15, 2012 · I want to execute a stored procedure in SQL Server and assign the output to a variable (it returns a single value) ?

  5. sql server - Is a return value of 0 always a success in stored ...

    May 17, 2011 · If a stored procedure returns a value of zero, does that always mean it was run successfully? I am using MS SQL Server 2008.

  6. oracle database - sqlldr return codes - ex_warn - Stack Overflow

    May 4, 2012 · I want to know if my file is loaded complete in the database. if you check the return codes here you can see that 1 and 3 is a fail. EX_SUCC 0 EX_FAIL 1 EX_WARN 2 EX_FTL 3 …

  7. DB2 SQL Error: SQLCODE=-514, SQLSTATE=26501 - Stack Overflow

    Jul 30, 2013 · When I used JDBC to execute a prepared statement as following: select count (1) from TableName where col1 = 9 and col2 = ? it ocurred a DB2 SQL Error: SQLCODE=-514, …

  8. sql server - Why does my stored procedure return -1? - Stack …

    Mar 7, 2018 · I have a stored procedure. The call to it returns -1. What does this mean? Here is the code that calls the stored procedure (auto-generated by Entity Framework): public virtual …

  9. sql - Getting return value from stored procedure in C# - Stack …

    Apr 12, 2015 · 4 When we return a value from Stored procedure without select statement. We need to use "ParameterDirection.ReturnValue" and "ExecuteScalar" command to get the value.

  10. Insert throws SQLCODE: -180, SQLSTATE: 22007 on IBM DB2

    Feb 19, 2013 · DB2 SQL error: SQLCODE: -180, SQLSTATE: 22007, SQLERRMC: null - Line: 0 Seems like the date column (DATULTOA) is in wrong format, but it isn't. The same command, …