Tags / ado.net
Resolving the Exception: Unable to Cast Object of Type 'System.DBNull' to Type 'System.Byte[]' in SQL Server and .NET
Executing Scalar Values After Database Inserts in ASP.NET Web Applications Using Output Clause and Stored Procedures
Executing Multiple Non-SELECT MySQL Statements as a Single Command Text in .NET for Improved Performance and Reduced Round-Trip Times to the Database Server