CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2007
    Posts
    115

    Question How to define decimal sqlparameter

    Dear Sir,

    I know to define integer type sqlparameter but I do not know the decimal type sqlparameter for the precession. how to define please give me a example.

    I am giving a sample example.

    //Code

    Dim sqlparameters(2) as sqlparameter

    sqlparameters(0)=new sqlparameter ("@RMID", SqlDbtype.integer,7)
    but in case of decimal I am giving like this
    sqlparameters(1)=new sqlparameter ("@RMID", SqlDbtype.decimal,7,2)
    which is wrong

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to define decimal sqlparameter

    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured