>>>1 of 2:
>>>System.Data.Common.DbParameter DbParameterCollection[int index]
>>>System.Data.Common.DbParameter DbParameterCollection[string parameterName]
>>>
>>>I'm using the second. What happens if you split it:
var v = command.Parameters["@Param3"];
>>> var v2 = v.Value;
>>
>>I get compiler errors. Let me ask you, what tpe is your var "v"? I also get error on the "var"; what is it?
>
>Are you using .NET 4.0 or prior version? What version of VS? var was introduced in the version .NET 4.0
I found my problem. When declaring the command object I missed changing it from interface to SQL Server specific.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham