Alex Rivera | Logout

SqlCommand Parameters size confusion

Asked 2012-02-28T14:02:45.713
27

I have the following line of code:

sqlcommand.Parameters.Add("@LinkID", SqlDbType.Int, 4).Value = linkID;

But, I'm slightly confused about the use of size. Is this saying that its 4 bytes in size? Or a length of 4 so 1234 is acceptable but 12345 is too big?

Edit
Report

1 Answer

2

It is 4 bytes, 32 bits. It is a 32 bit integer.

answered 2012-02-28T14:05:27.747

Your Answer