Forum Replies Created

Viewing 9 posts - 16 through 24 (of 24 total)

  • RE: Excel with Stored Procedures

    In Excel 2003:

    If you leave the ? in the call, it should prompt for a value. Enter a value to get a result set, then use the Send to Excel...

  • RE: Excel with Stored Procedures

    I just realized you said Excel 2007, which I've yet to use.

    If you read this thread from the beginning, I believe you will find a satisfactory VBA-less method of...

  • RE: Excel with Stored Procedures

    Try this.

    Dim prm As ADODB.Parameter

    Dim cmd As New ADODB.Command

    cmd.CommandType = adCmdStoredProc

    cmd.CommandText = "dbo.proc_StoredProcedure"

    Dim strParameterValue As String

    strParameterValue = Sheet1.Range("A1").Value

    Set prm = cmd.CreateParameter("@ParameterName", adVarChar, adParamInput, 50, strParameterValue)

    cmd.Parameters.Append prm

    If you use Command type...

  • RE: Excel with Stored Procedures

    Matteo (8/14/2008)


    ...For pivot tables, one way to kind-of get parameter-ish functionality when using an external data source...

    I found a satisfactory method of refreshing pivot data based on parameters. Using the...

  • RE: Excel with Stored Procedures

    Swarm_Catcher (8/18/2008)


    How do you eliminate carriage returns? I replaced a query with a stored procedure in MSQuery and get the same results, except for the additional carriage returns in...

  • RE: Excel with Stored Procedures

    I've found that the datatypes for the parameters are optional, and in my experience, this is with MSSQL Server 2005, the server handles the implicit conversions quite well.

  • RE: Excel with Stored Procedures

    I use Excel 2003 with stored procedures without involving VBA. The trick is to manually edit the .dqy file that MSQuery generates, or more accurately, just manually create the file...

  • RE: Query performance drops when wrapped in stored procedure

    That did it Christopher. I'd heard the term 'parameter sniffing' but I did not realize this is what it meant. It actually crossed my mind to try replacing the input...

  • RE: Migrating from SQL2K to SQL2K5, reset to default instance

    Thanks Tim, that is the same answer we came up with. Actually glad we uninstalled both and came back with 2K5 as the default.

Viewing 9 posts - 16 through 24 (of 24 total)