Results 1 to 2 of 2

Thread: sp_spaceused Stored Procedure

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    12

    sp_spaceused Stored Procedure

    Hi
    Has anyone evry used the sp_spaceused stored procedure before with VB. I'm not sure how to add a parameter to it. I'm using ADODB and need to get details on a table called Customers. I've got the following so far.

    cStored.CommandType = ADODB.CommandTypeEnum.adCmdStoredProc
    cStored.Parameters.Append(cStored.CreateParameter("")
    cStored.CommandText = "sp_spaceused"
    cStored.ActiveConnection = cConnection

    Its the create parameter bit I'm lost at.

    Cheers

    Steve

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    12
    If I run the procedure from SQL Query Analsier all I need to enter is

    exec sp_spaceused Customers

    So I'm looking for a similar way of doing this in VB using adodb.

    Hope this helps

    Steve

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