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

  • Question




    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:



    Any such link for Sybase and .NET DbTypes?




    Wednesday, February 6, 2008 9:15 AM


All replies