none
Use of Parameter.DBType and Parameter.Size property RRS feed

  • Question

  •  

    Hi,

     

    What is the relevance of Parameter.DBType and Parameter.Size property as shown in below code

     

    DbParameter param = provider.CreateParameter();

    param.DbType = DbType.String;

    param.Size = 1000;

     

    I want to use Enterprise Library DAAB. Point is EntLib does not provide parameter.DbType and provider.Size property. I just want to know what is the importance of the mentioned properties.

     

    Also I have Sybase as backend. So is there any link which provides mapping of .NET DBType and Sybase Type?

    I could get the mapping for DBType with SQLType, ODBC, OLE and Oracle type in following link:

     

    http://msdn2.microsoft.com/en-us/library/yy6y35y8(VS.80).aspx

     

    Any such link for Sybase and .NET DbTypes?

     

    Regards,

    HV

    Wednesday, February 6, 2008 9:15 AM

Answers

All replies