Viewing 15 posts - 46 through 60 (of 104 total)
We give datareader access on the read-only reporting db to some staff who need to run ad-hoc queries. None of our business logic is in the database (Views, stored proces,...
August 12, 2008 at 7:24 am
OK, can you do the following please?
Run (remove the WITH TIES):
ALTER VIEW NumberView AS
SELECT TOP 3
numberValue,
numberTimesUsed
FROM number
ORDER BY numberTimesUsed DESC
Send the results of the following:
select * from number
August 12, 2008 at 7:19 am
karthikeyan (8/12/2008)
Hey Trevor,I have tested the below script, It is giving perfect result.
Same here.
Trevor, Karthik's script above uses a temp table - Which cannot be used in view's definitions.
August 12, 2008 at 6:54 am
Can you also send the results of the following:
sp_helptext numberview
August 12, 2008 at 6:37 am
Sorry, only saw the third column afterwards. Also, my sort order needed some changing.
Try this & let me know:
ALTER /*CREATE*/ VIEW NumberView AS
SELECT TOP 3 WITH TIES
numberValue,
numberTimesUsed
FROM number
ORDER BY...
August 12, 2008 at 6:28 am
Will this work?
CREATE VIEW NumberView AS
SELECT TOP 3 WITH TIES
count(numbervalue) AS Amt,
numbervalue
FROM number
GROUP BY numbervalue
ORDER BY count(numbervalue)
August 12, 2008 at 6:18 am
Thanks for the info.
I'm sure it will come in handy very soon!
August 12, 2008 at 2:17 am
Nice article Andy.
If I may ask, what do you have against the datareader role? Apart from denying users access to sensitive data, do you have any other reasons/examples of why...
August 12, 2008 at 12:32 am
Thanks for the response. (Holiday??)
Do you have any tips (apart from the documented procedures/articles available) in working with replication? I.e. something you wish you knew before you started working with...
August 11, 2008 at 7:22 am
It's used in setting up table & index partitioning.
A nice article on this topic:
August 8, 2008 at 12:58 am
The training kits Gail mentioned are published by Microsoft & are probably the next bext thing than sitting in the lectures
August 5, 2008 at 7:27 am
RML51 (7/31/2008)
The impact of replication running with this configuration is minimal on the Publisher.
What's the size of the database? How many users connect to it during peak hours? And...
August 4, 2008 at 8:23 am
Hi there,
Can you make sure that all the required packages are available for use?
I.e. if you imported the 'main' package (The one in your job step) but that package references...
June 4, 2008 at 1:36 am
As with a normal SQL Agent job, just specify the package in one the job's steps.
June 4, 2008 at 12:55 am
Viewing 15 posts - 46 through 60 (of 104 total)