---
title: "SQLCommand parameter is throwing \"InvalidCastException\" in ADO.Net"  
description: "SQLCommand parameter is throwing \"InvalidCastException\" in ADO.Net"  
author: "Revati S Misra"  
published: 2023-12-12  
updated: 2023-12-12  
canonical: https://www.mindstick.com/forum/160528/sqlcommand-parameter-is-throwing-invalidcastexception-in-ado-dot-net  
category: "ado.net"  
tags: ["c#", "ado.net", ".net", "asp.net"]  
reading_time: 1 minute  

---

# SQLCommand parameter is throwing "InvalidCastException" in ADO.Net

[SQLCommand](https://www.mindstick.com/forum/91/difference-between-sqlcommand-and-sqlcommandbuilder) [parameter](https://www.mindstick.com/blog/450/parameter-class-in-c-sharp) is throwing "InvalidCastException" in [ADO.Net](https://www.mindstick.com/articles/804/connection-pooling-in-ado-dot-net)


---

Original Source: https://www.mindstick.com/forum/160528/sqlcommand-parameter-is-throwing-invalidcastexception-in-ado-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
