Viewing 9 posts - 16 through 24 (of 24 total)
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...
December 11, 2008 at 8:38 am
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...
December 3, 2008 at 2:07 pm
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...
December 3, 2008 at 1:45 pm
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...
September 16, 2008 at 10:03 am
Swarm_Catcher (8/18/2008)
September 16, 2008 at 9:50 am
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.
September 16, 2008 at 9:48 am
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...
August 13, 2008 at 7:07 am
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...
August 11, 2008 at 7:39 am
Thanks Tim, that is the same answer we came up with. Actually glad we uninstalled both and came back with 2K5 as the default.
May 21, 2007 at 6:27 am
Viewing 9 posts - 16 through 24 (of 24 total)