CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2001
    Posts
    87

    Stored Procedures

    What is wrong with my stored procedures???


    cmd = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=OCVSTAT;"
    'Establish a connection with the database
    Set cn = New ADODB.Connection
    With cn
    .ConnectionString = cmd
    .Open cmd
    End With

    Set comm = New ADODB.Command
    Set comm.ActiveConnection = cn
    comm.CommandText = "OpenTempVCP"
    comm.CommandType = adCmdStoredProc

    Set RS2VCP = comm.Execute

    Oh HELP PLS!!!

    Thanks

    cecile


    The more u read, the more u do not know

  2. #2
    Join Date
    Jan 2001
    Posts
    365

    Re: Stored Procedures

    replace this
    Set RS2VCP = comm.Execute
    like
    RS2VCP = comm.Execute

    try this




  3. #3
    Join Date
    Apr 2001
    Posts
    87

    Re: Stored Procedures

    It returns back an error saying "Invalid property.. " so word "Set" must be there


    cecile

    The more u read, the more u do not know

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