If you encounter error Msg 15123, Level 16, you were probably trying to execute EXEC SP_CONFIGURE 'Agent XPs'
while advanced options are hidden.
This error is easily fixed.
Continue readingIf you encounter error Msg 15123, Level 16, you were probably trying to execute EXEC SP_CONFIGURE 'Agent XPs'
while advanced options are hidden.
This error is easily fixed.
Continue readingIt’s quite easy to encounter error Msg 214, Level 16 when executing stored procedures such as sp_executesql
or sp_describe_first_result_set
.
Fortunately it’s easy to fix too!
The most common reason for getting this error is that you forgot to prefix your string with N
.
Therefore, to fix this issue, try prefixing your string with N
.
If you encounter the “index name must be a string” error when dropping multiple indexes in MongoDB, it’s probably because you’re passing the specifications document instead of the name.
When you use the dropIndexes()
method or the dropIndexes
command to drop multiple indexes, you need to pass the index names (not the specifications documents) in an array.
If you’re running a query in SQL Server, and you get the following error…
Msg 104, Level 16, State 1, Line 8
ORDER BY items must appear in the select list if the statement contains a UNION, INTERSECT or EXCEPT operator.
…you should check your SQL statement – you’ve probably omitted a column from your SELECT
list.
As the error message implies, you’ll probably only see this error if you’re running a query that contains a UNION
, INTERSECT
or EXCEPT
operator.
Simply adding the column to your SELECT
list should fix the problem.
If you’re receiving error Msg 3902, Level 16, which reads “The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION”, it’s probably because you’ve got a stray COMMIT
statement.
You could be getting this due to implementing error handling, and forgetting that you’ve already committed or rolled back the transaction elsewhere in your code.
Continue readingIf you get error Msg 15281, Level 16 in SQL Server, chances are you’re trying to run an ad hoc distributed query, but you haven’t enabled ad hoc distributed queries.
This can be fixed easily by enabling ad hoc distributed queries.
Continue readingIf you’ve created a SQL Server Agent job, and you’re now trying to test it to see if it will run properly, you may encounter an ugly error message that reads, among other things, “SQLServerAgent is not currently running so it cannot be notified of this action”.
Fortunately, this is easy to fix.
Continue readingSQL Server error Msg 206, Level 16 is a common error to get when inserting data into a table.
It happens when you’re trying to insert data into a column that is incompatible with the data type you’re trying to insert.
This could happen if you accidentally try to insert data into the wrong column (or even the wrong table). But it could also happen if you incorrectly assume that SQL Server will convert the data for you.
To fix this issue, make sure you’re inserting the correct data type.
Continue readingSQL Server error Msg 245, Level 16 tells us that there was a problem when trying to convert a value to a specific data type.
You’ll get this error if you try to insert the wrong data type into a column.
To fix this issue, make sure the data type of the value you’re trying to insert, matches the column’s type.
Continue readingSQL Server error 120 occurs when you don’t specify enough columns in your INSERT
list when using a SELECT
list for the values to insert.
To be more specific, it happens when you use a SELECT
list in your INSERT
statement, but the SELECT
list doesn’t return as many columns as you’re specifying with the INSERT
.
This is easy to fix. Simply make sure the number of columns match between your INSERT
and SELECT
list.