Page 1 of 1

UniCommandBuilder.DeriveParameters Method does not wrok!

Posted: Sun 20 Mar 2011 09:58
by nickcole
When I use UniCommandBuilder.DeriveParameters Method. It does not work!
Error Information:
A parameter with name '@RETURN_VALUE' is not contained by this Parameters collection.
my Code:

Code: Select all

      Dim myConn As UniConnection = New UniConnection("Provider=SQL Server;User Id=sa;Password=hhzstsll;Data Source=IBM008;Database=pubs")
        myConn.Open()

        Dim includeReturnValueParameter As Boolean = False

        Dim spName As String = "byroyalty"
        Dim cmd As UniCommand = New UniCommand(spName, myConn)
        Dim discoveredParameters() As UniParameter


        cmd.CommandType = CommandType.StoredProcedure
        UniCommandBuilder.DeriveParameters(cmd)
        If Not includeReturnValueParameter Then
            cmd.Parameters.RemoveAt(0)
        End If

        discoveredParameters = New UniParameter(cmd.Parameters.Count - 1) {}
        cmd.Parameters.CopyTo(discoveredParameters, 0)
Devart.Data.Universal 3.20.42.0
MS SQL Server 2005 DB:pubs
VS2010 10.0.3.3019.1 RTMRel
:?:[/quote]

Posted: Mon 21 Mar 2011 15:22
by Shalex
We have reproduced the issue. We will investigate it and notify you about the results as soon as possible.

Posted: Mon 21 Mar 2011 17:32
by Shalex
The bug is fixed. I will post here when the corresponding build is available for download.

Posted: Tue 22 Mar 2011 12:23
by nickcole
OK. I wait for the new version!
Shalex wrote:The bug is fixed. I will post here when the corresponding build is available for download.

Posted: Fri 25 Mar 2011 13:16
by Shalex
New build of dotConnect Universal 3.20.44 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/univer ... nload.html (trial version) or from Registered Users' Area (for users with valid subscription only): http://secure.devart.com/ .
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=20590 . This build also includes the fix for the bug with the UniCommandBuilder.DeriveParameters() method.

Posted: Sat 26 Mar 2011 12:47
by nickcole
thank you!
I have download "dotConnect Universal 3.20 Standard (Free)". It does not update.
Shalex wrote:New build of dotConnect Universal 3.20.44 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/univer ... nload.html (trial version) or from Registered Users' Area (for users with valid subscription only): http://secure.devart.com/ .
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=20590 . This build also includes the fix for the bug with the UniCommandBuilder.DeriveParameters() method.

Posted: Mon 28 Mar 2011 08:28
by Shalex
Thank you for your report. We have updated the download links at http://www.devart.com/dotconnect/univer ... nload.html. Please try again and notify us about the results.

Posted: Tue 29 Mar 2011 11:37
by nickcole
greate! It's OK!
thank you!
Shalex wrote:Thank you for your report. We have updated the download links at http://www.devart.com/dotconnect/univer ... nload.html. Please try again and notify us about the results.