CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Location
    Reykjavik,Iceland
    Posts
    25

    Stored Procedure parameter problem

    Hello

    I'm having problems talking to the third parameter in the stored procedure header here bellow:

    CREATE PROCEDURE [sp_AddToHistory_tblFileHistory]
    (@lFileID [int],
    @sUser [nvarchar](20),
    @sComment [ntext],
    @dtCheckedInTime [int])

    Here is how I talk to the first

    Set prmChecktblFiles = cmdChecktblFiles.CreateParameter( _
    "lFileID", _
    adBigInt, _
    adParamInput, , _
    lFileID)

    If anyone knows how to create the parameter for the third, the please let me know

    Thanks




  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Stored Procedure parameter problem

    I'd try to call cmd.Parameters.Refresh just for testing. Then check what the Parameters collection looks like for the third parameter.


  3. #3
    Join Date
    Oct 1999
    Location
    MD, USA
    Posts
    169

    Re: Stored Procedure parameter problem

    I had the same problem with text fields in SQL server and I worked around by executing straightaway:

    connection.execute sp_something param1, param2, param3


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