SqlDBType size

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

I have a variable of SqlParameter type called parameter.

I need to find out what the original size is to compare it with the actual
size of my string.

parameter.size gives me the size of the string but not the size of the
varchar I originally set.

I also need to know if it was set to MAX. Is there a way to get this?

I looked at all the attributes in the debugger and can't seem to find it.

Thanks,

Tom
 
I have a variable of SqlParameter type called parameter.

I need to find out what the original size is to compare it with the actual
size of my string.

parameter.size gives me the size of the string but not the size of the
varchar I originally set.

I also need to know if it was set to MAX.  Is there a way to get this?

I looked at all the attributes in the debugger and can't seem to find it.

Thanks,

Tom

Hi,

I was under the impression that Size represent the size passed in the
constructor. It's independend of the size of the Value assigned.
Leavnig the Size empty is like saying MAX
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top