Wednesday, March 21, 2012
EXCEL / SQL SERVER HELP - URGENT
procedure inside an Excel Query ,
I tried
.dbo.MySP ?
It return with error message
"Parameters are not allowed in queries that can't be displayed graphically"
The purpose for this approach -
This would allow me to anchor my parameter to certain cells on the
spreadsheet.
My report users could then change the values in those cells and click a
button to refresh the query data.
Thanks
MikeAs long as you are going to use a button, you might try using code like ADO
(using a visual basic control button that is - get from View/Toolbars):
Sub GetData()
Dim cmd As New ADODB.Command, RS As New ADODB.Recordset
Dim DateVar As Date
DateVar = Sheets("Sheet1").Range("A1")
cmd.ActiveConnection = "Provider=SQLOLEDB;Data Source=yourServer;" _
& "Initial Catalog=yourDB;UID=SA;PWD=Tiger;"
cmd.CommandTimeout = 600
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "stp_yourSP"
cmd.Parameters("@.bDate").Value = DateVar
Set RS = cmd.Execute
Sheets("Sheet1").Range("A2").CopyFromRecordset RS
End Sub
The user enters a date value Cell("A1") and then clicks the button. Boom!
starting at Cell("A2") you have your resultset.
HTH
Rich
"MS User" wrote:
> I got a stored procedure with 1 parameter and I want to call this stored
> procedure inside an Excel Query ,
> I tried
> ..dbo.MySP ?
> It return with error message
> "Parameters are not allowed in queries that can't be displayed graphically
"
> The purpose for this approach -
> This would allow me to anchor my parameter to certain cells on the
> spreadsheet.
> My report users could then change the values in those cells and click a
> button to refresh the query data.
> Thanks
> Mike
>
>
>
EXCEL / SQL SERVER HELP - URGENT
procedure inside an Excel Query ,
I tried
..dbo.MySP ?
It return with error message
"Parameters are not allowed in queries that can't be displayed graphically"
The purpose for this approach -
This would allow me to anchor my parameter to certain cells on the
spreadsheet.
My report users could then change the values in those cells and click a
button to refresh the query data.
Thanks
Mike
As long as you are going to use a button, you might try using code like ADO
(using a visual basic control button that is - get from View/Toolbars):
Sub GetData()
Dim cmd As New ADODB.Command, RS As New ADODB.Recordset
Dim DateVar As Date
DateVar = Sheets("Sheet1").Range("A1")
cmd.ActiveConnection = "Provider=SQLOLEDB;Data Source=yourServer;" _
& "Initial Catalog=yourDB;UID=SA;PWD=Tiger;"
cmd.CommandTimeout = 600
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "stp_yourSP"
cmd.Parameters("@.bDate").Value = DateVar
Set RS = cmd.Execute
Sheets("Sheet1").Range("A2").CopyFromRecordset RS
End Sub
The user enters a date value Cell("A1") and then clicks the button. Boom!
starting at Cell("A2") you have your resultset.
HTH
Rich
"MS User" wrote:
> I got a stored procedure with 1 parameter and I want to call this stored
> procedure inside an Excel Query ,
> I tried
> ..dbo.MySP ?
> It return with error message
> "Parameters are not allowed in queries that can't be displayed graphically"
> The purpose for this approach -
> This would allow me to anchor my parameter to certain cells on the
> spreadsheet.
> My report users could then change the values in those cells and click a
> button to refresh the query data.
> Thanks
> Mike
>
>
>
Monday, March 19, 2012
example of Asynchronous.
Hello :
I have a Web application with reports which lasts for a long time, for it I reflected to make call Asynchronous for reports
(that is I execute the report and warned the user when the report is ready).
I found an example which supplied with SQL Server, but as I am novice C# I understands not everything in the example
( AsynchronousRenderCS).
Please indicate me a simpler example.
Thank you.
Actually, this one is quite simple, what do you want to have at least ?
Jens K. Suessmeyer.
http://www.sqlserver2005.de
Friday, March 9, 2012
Every 2 seconds hiting.
application will hit every 2 seconds to database for checking calls so is
there any optimized way I can use like instead of hiting the database every
2 seconds I use any alternate way ?
Thanks
I don't know what kind of app you are creating but it would seem to make
sense that you notify the app when the appropriate condition occurs vs.
constantly polling the db. Since this is a new app you should consider
using SQL2005. Some of the features such as Notification Services (a
version exists now with 2000 as well) and Service Broker might make your
life easier.
Andrew J. Kelly SQL MVP
"Joh" <joh@.mailcity.com> wrote in message
news:eyiuL$VVFHA.2768@.tk2msftngp13.phx.gbl...
>I am creating one Call centre database and application. The issue is that
> application will hit every 2 seconds to database for checking calls so is
> there any optimized way I can use like instead of hiting the database
> every
> 2 seconds I use any alternate way ?
> Thanks
>
Wednesday, March 7, 2012
Events in SSRS Reports
I would like to have a button type of thing on the report and on click of
it, I need to call a method in the custom assembly.
I was successful creating and using the custom assembly, but not able to
raise an event from the report.
Thanks in advance,
SureshI am not aware of any way to do this. I am aware of a variety of extensions
that are possible: rendering, security, data processing and delivery.
However, this is not like a winform or webform that has a variety of events
you can respond and write your custom code for.
What are you trying to do, perhaps there is another way to solve the
problem.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Suresh" <Suresh@.discussions.microsoft.com> wrote in message
news:409DCFC3-7875-4A9E-818D-C55094BC0895@.microsoft.com...
> Hi,
> I would like to have a button type of thing on the report and on click of
> it, I need to call a method in the custom assembly.
> I was successful creating and using the custom assembly, but not able to
> raise an event from the report.
> Thanks in advance,
> Suresh|||Thanks Bruce for the response,
After the report is generated from report server, I need to publish this
report to som eother location. I would like to acheive that by the click of a
button. Here Im not sure how to place a button, or just raise an event by the
user to perform that action.
Suresh. India
"Bruce L-C [MVP]" wrote:
> I am not aware of any way to do this. I am aware of a variety of extensions
> that are possible: rendering, security, data processing and delivery.
> However, this is not like a winform or webform that has a variety of events
> you can respond and write your custom code for.
> What are you trying to do, perhaps there is another way to solve the
> problem.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Suresh" <Suresh@.discussions.microsoft.com> wrote in message
> news:409DCFC3-7875-4A9E-818D-C55094BC0895@.microsoft.com...
> > Hi,
> > I would like to have a button type of thing on the report and on click of
> > it, I need to call a method in the custom assembly.
> > I was successful creating and using the custom assembly, but not able to
> > raise an event from the report.
> >
> > Thanks in advance,
> > Suresh
>
>|||I was looking for a way to reset the rownumber for each group, so I
could display a record count for every item in each group not one
continuous number for the entire report, when I saw this posting.
Access to the group event and being able to set rwonumber back to 1
would solve my task.
Perhaps there is another way to do it?
Thanks,
IanO|||What do you mean you need to publish? Are you wanting to save the report as
PDF somewhere? Or are you talking about publishing the report to another
Server?
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Suresh" <Suresh@.discussions.microsoft.com> wrote in message
news:D617027B-61DB-4AA8-AD99-0E39070B60C8@.microsoft.com...
> Thanks Bruce for the response,
> After the report is generated from report server, I need to publish this
> report to som eother location. I would like to acheive that by the click
> of a
> button. Here Im not sure how to place a button, or just raise an event by
> the
> user to perform that action.
> Suresh. India
> "Bruce L-C [MVP]" wrote:
>> I am not aware of any way to do this. I am aware of a variety of
>> extensions
>> that are possible: rendering, security, data processing and delivery.
>> However, this is not like a winform or webform that has a variety of
>> events
>> you can respond and write your custom code for.
>> What are you trying to do, perhaps there is another way to solve the
>> problem.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "Suresh" <Suresh@.discussions.microsoft.com> wrote in message
>> news:409DCFC3-7875-4A9E-818D-C55094BC0895@.microsoft.com...
>> > Hi,
>> > I would like to have a button type of thing on the report and on click
>> > of
>> > it, I need to call a method in the custom assembly.
>> > I was successful creating and using the custom assembly, but not able
>> > to
>> > raise an event from the report.
>> >
>> > Thanks in advance,
>> > Suresh
>>
Friday, February 17, 2012
event for call export.
Hello :
I have a report with a button, and when I click the button I call directly the export of the report.
It is what the event which call the export.
Thank's.
What about redirecting / hyperlinking to the same back with the appropiate Export parameters using URL parametrization (examples shown in the BOL)
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de