Friday, March 30, 2012
No Login Required
in to execute? I would like to be able to put specific reports in a
open folder so that people can run them without login.
Thanks
BobOn May 4, 12:12 pm, Bob <b...@.ebearings.com> wrote:
> Is it possible to create a folder of reports that do not require a log
> in to execute? I would like to be able to put specific reports in a
> open folder so that people can run them without login.
> Thanks
> Bob
You can select the folder, then press properties> Security. You can
add users there. There is a catch though because different Reporting
Servers work in different ways. Now, my company uses Windows Login
for the Reporting Server. Previously, this was separate and everyone
had a separate account for RptServ, SQLServ, and all other tools.
Just add the users under the security tab, make sure they're BROWSERS
otherwise you may go back to the folder and find it... blank.|||On May 4, 11:34 am, Ayman <ayma...@.gmail.com> wrote:
> On May 4, 12:12 pm, Bob <b...@.ebearings.com> wrote:
> > Is it possible to create a folder of reports that do not require a log
> > in to execute? I would like to be able to put specific reports in a
> > open folder so that people can run them without login.
> > Thanks
> > Bob
> You can select the folder, then press properties> Security. You can
> add users there. There is a catch though because different Reporting
> Servers work in different ways. Now, my company uses Windows Login
> for the Reporting Server. Previously, this was separate and everyone
> had a separate account for RptServ, SQLServ, and all other tools.
> Just add the users under the security tab, make sure they're BROWSERS
> otherwise you may go back to the folder and find it... blank.
Thanks, but right when I iopen my browser on my desktop and point to
the folder, I get login required. I am actually trying t use the
following logic and not even go to the report server.
http://rpt-serv/ReportServer?/sales%2fC+of+C&shipnum=2022222&rs:Format=PDF
If I put this in a browser, I can get my report output in .pdf format,
without going to the webpage. I would just like to retreive this
report without stopping for a login prompt. If I could do that, then
I can write a front end prompt in my app.
Enter ship number [1234544]
Make sense?
Bob
http://rpt-serv/ReportServer?/sales%2fC+of+C&shipnum=[variable
ship_no]&rs:Format=PDF|||On May 4, 12:56 pm, Bob <b...@.ebearings.com> wrote:
> On May 4, 11:34 am, Ayman <ayma...@.gmail.com> wrote:
>
> > On May 4, 12:12 pm, Bob <b...@.ebearings.com> wrote:
> > > Is it possible to create a folder of reports that do not require a log
> > > in to execute? I would like to be able to put specific reports in a
> > > open folder so that people can run them without login.
> > > Thanks
> > > Bob
> > You can select the folder, then press properties> Security. You can
> > add users there. There is a catch though because different Reporting
> > Servers work in different ways. Now, my company uses Windows Login
> > for the Reporting Server. Previously, this was separate and everyone
> > had a separate account for RptServ, SQLServ, and all other tools.
> > Just add the users under the security tab, make sure they're BROWSERS
> > otherwise you may go back to the folder and find it... blank.
> Thanks, but right when I iopen my browser on my desktop and point to
> the folder, I get login required. I am actually trying t use the
> following logic and not even go to the report server.http://rpt-serv/ReportServer?/sales%2fC+of+C&shipnum=2022222&rs:Forma...
> If I put this in a browser, I can get my report output in .pdf format,
> without going to the webpage. I would just like to retreive this
> report without stopping for a login prompt. If I could do that, then
> I can write a front end prompt in my app.
> Enter ship number [1234544]
> Make sense?
> Bobhttp://rpt-serv/ReportServer?/sales%2fC+of+C&shipnum=[variable
> ship_no]&rs:Format=PDF
I understand, you want the entire ReportServer not to have a login.
Here our's is passed through by Windows Accounts... so we never get
the login screen. Our DBA is out, I'll try to figure it out with him
on Monday and let you know. I'm sure if you can do a Windows
Authentication pass then there is a way to just keep it open to anyone
who is on your Intranet.|||On May 4, 12:11 pm, Ayman <ayma...@.gmail.com> wrote:
> On May 4, 12:56 pm, Bob <b...@.ebearings.com> wrote:
>
>
> > On May 4, 11:34 am, Ayman <ayma...@.gmail.com> wrote:
> > > On May 4, 12:12 pm, Bob <b...@.ebearings.com> wrote:
> > > > Is it possible to create a folder of reports that do not require a log
> > > > in to execute? I would like to be able to put specific reports in a
> > > > open folder so that people can run them without login.
> > > > Thanks
> > > > Bob
> > > You can select the folder, then press properties> Security. You can
> > > add users there. There is a catch though because different Reporting
> > > Servers work in different ways. Now, my company uses Windows Login
> > > for the Reporting Server. Previously, this was separate and everyone
> > > had a separate account for RptServ, SQLServ, and all other tools.
> > > Just add the users under the security tab, make sure they're BROWSERS
> > > otherwise you may go back to the folder and find it... blank.
> > Thanks, but right when I iopen my browser on my desktop and point to
> > the folder, I get login required. I am actually trying t use the
> > following logic and not even go to the report server.http://rpt-serv/ReportServer?/sales%2fC+of+C&shipnum=2022222&rs:Forma...
> > If I put this in a browser, I can get my report output in .pdf format,
> > without going to the webpage. I would just like to retreive this
> > report without stopping for a login prompt. If I could do that, then
> > I can write a front end prompt in my app.
> > Enter ship number [1234544]
> > Make sense?
> > Bobhttp://rpt-serv/ReportServer?/sales%2fC+of+C&shipnum=[variable
> > ship_no]&rs:Format=PDF
> I understand, you want the entire ReportServer not to have a login.
> Here our's is passed through by Windows Accounts... so we never get
> the login screen. Our DBA is out, I'll try to figure it out with him
> on Monday and let you know. I'm sure if you can do a Windows
> Authentication pass then there is a way to just keep it open to anyone
> who is on your Intranet.- Hide quoted text -
> - Show quoted text -
Thanks, I appreciate it.|||On May 4, 1:25 pm, Bob <b...@.ebearings.com> wrote:
> On May 4, 12:11 pm, Ayman <ayma...@.gmail.com> wrote:
>
> > On May 4, 12:56 pm, Bob <b...@.ebearings.com> wrote:
> > > On May 4, 11:34 am, Ayman <ayma...@.gmail.com> wrote:
> > > > On May 4, 12:12 pm, Bob <b...@.ebearings.com> wrote:
> > > > > Is it possible to create a folder of reports that do not require a log
> > > > > in to execute? I would like to be able to put specific reports in a
> > > > > open folder so that people can run them without login.
> > > > > Thanks
> > > > > Bob
> > > > You can select the folder, then press properties> Security. You can
> > > > add users there. There is a catch though because different Reporting
> > > > Servers work in different ways. Now, my company uses Windows Login
> > > > for the Reporting Server. Previously, this was separate and everyone
> > > > had a separate account for RptServ, SQLServ, and all other tools.
> > > > Just add the users under the security tab, make sure they're BROWSERS
> > > > otherwise you may go back to the folder and find it... blank.
> > > Thanks, but right when I iopen my browser on my desktop and point to
> > > the folder, I get login required. I am actually trying t use the
> > > following logic and not even go to the report server.http://rpt-serv/ReportServer?/sales%2fC+of+C&shipnum=2022222&rs:Forma...
> > > If I put this in a browser, I can get my report output in .pdf format,
> > > without going to the webpage. I would just like to retreive this
> > > report without stopping for a login prompt. If I could do that, then
> > > I can write a front end prompt in my app.
> > > Enter ship number [1234544]
> > > Make sense?
> > > Bobhttp://rpt-serv/ReportServer?/sales%2fC+of+C&shipnum=[variable
> > > ship_no]&rs:Format=PDF
> > I understand, you want the entire ReportServer not to have a login.
> > Here our's is passed through by Windows Accounts... so we never get
> > the login screen. Our DBA is out, I'll try to figure it out with him
> > on Monday and let you know. I'm sure if you can do a Windows
> > Authentication pass then there is a way to just keep it open to anyone
> > who is on your Intranet.- Hide quoted text -
> > - Show quoted text -
> Thanks, I appreciate it.
Sorry for the late reply, this may help:
http://odetocode.com/Articles/216.aspxsql
Wednesday, March 28, 2012
No grouping?
Hi to all!
To count(something), it is usually required to use a group by function, however, that is not applicable in this case: I would like to select records that have similar values for 'col2' and 'col3', given a certain 'col1', and how many records each 'col1' returns. The following example hopefully makes it clear.
The table:
Col1 Col2 Col3
s1 A B
s1 C D
s2 A B
s2 C D
The result should be:
col1 col2 col3 Expr
s2 A B 2
s2 C D 2
I had figured out the not-working-query:
SELECT *, count(col1)
FROM table as t1 INNER JOIN table as t2 ON
t1.col2 = t2.col2 AND t1.col3 = t3.col3
WHERE col1 = 's1'
Could anyone provide me a hand? Many thanks in advance.
Kind regards,
Nele
SELECT Col1,Col2,Col3,Count(Col1)
FROM TEST
GROUP BY Col1,Col2,Col3
|||No, that returns for 'expr' value 1.
|||Are you trying to find those records where value of COL2 and COl3 are similar, which means there is more than one record having same value for col2 and col3
Col1 Col2 Col3
s1 A B
s1 C D
s2 A B
s2 C D
s3 C A
IF I get it correctly, here the last record should not be displayed. Is that what you intend?
|||
In SQL 2000, you can do:
select *, (select count(*) from table as t2 where t2.col1 = 's1') as cnt
from table as t1
where t1.col1 = 's1'
In SQL 2005, you can do:
select *, count(*) over(order by t1.col1) as cnt
from table as t1
where t1.col1 = 's1'
Having said this, there is really no need to complicate the query by doing this. You will only get slow performance. The number of rows that qualifies the query can be obtained by looking at @.@.ROWCOUNT after the SELECT statement or determined in the client side easily. So it seems unnecessary to do this .
|||Yes! That is what I intend.|||I tried your code, but for sql 2005 it returned an error "incorrect syntax near the keyword 'order' "?
@.@.rowcount returns the total number, I rather would like to know how many records of a certain value for 'col1' are returned (to select the top(100) in the end). E.g., for 's2' that is 2.
|||How's about:
Select Col2, Col3, Count(distinct col1 )
From ...
Group by Col2, Col3
Having Count(distinct col1) > 1
And if you want Col1 to display, you can add use
Select Max(Col1), Col2, Col3, Count(distinct col1)
|||Sorry that should be partition by not order by. We don't support ORDER BY clause for aggregate function yet in OVER clause. We support only partition clause.
|||No, the problem is that I want to know how many times a certain value for 'col1' occurs, not taking into account the values of col2 and col3 for that calculation.
Besides, all have an nvarchar as type.
|||Yes, that is what I wanted to achieve
Thanks for the reactions!
sqlFriday, March 9, 2012
Next IsNull help required
I have written a simple formula to identify the last address in a sequence, in a multiple address report which is sorted in alphabetical order:
If next ({address}) <> {address} then 1 else 0
This works fine, however, the very last record in the report 'should' have a value of 1 but doesn't because obviously there is no Next record.
I have therefore tried adding the following line (and variations on the same theme!) but cannot achieve what I want.
If Next ({address}) <> {address} then 1 else
If Next IsNull ({address}) then 1 else 0
I presume this is not possible as there is no Next record. Can anyone suggest a way around this?
Thanks.OnLastRecord|||Thanks. My report now works. Apologies for being a numbskull!