Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Security Question

 
   Database Help (Home) -> Server RSS
Next:  Sort data from Horizontal to Vertical ?  
Author Message
Eric

External


Since: Nov 26, 2008
Posts: 27



(Msg. 1) Posted: Tue Dec 02, 2008 7:29 pm
Post subject: Security Question
Archived from groups: microsoft>public>sqlserver>server (more info?)

Hi All,

If I want to enable a user to extract up to 200 rows per a request, how that
can be done?
Is it possible to control?

Thanks,

Eric

 >> Stay informed about: Security Question 
Back to top
Login to vote
Jonathan Kehayias

External


Since: Nov 25, 2008
Posts: 8



(Msg. 2) Posted: Tue Dec 02, 2008 7:41 pm
Post subject: Re: Security Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can do server-side paging of the data following the example in this
article:

http://www.sqlteam.com/article/server-side-paging-using-sql-server-2005

Not sure if that is exactly what you are after or not. Can you provide a
little more information on what exactly you are after if it doesn't answer
the question?

--
Jonathan Kehayias
SQL Server MVP
http://jmkehayias.blogspot.com
http://www.sqlclr.net

"Eric" <Ericxyz.TakeThisOut@Hotmail.com> wrote in message
news:ecb8D5NVJHA.2468@TK2MSFTNGP02.phx.gbl...
> Hi All,
>
> If I want to enable a user to extract up to 200 rows per a request, how
> that can be done?
> Is it possible to control?
>
> Thanks,
>
> Eric
>

 >> Stay informed about: Security Question 
Back to top
Login to vote
Plamen Ratchev

External


Since: Aug 20, 2008
Posts: 645



(Msg. 3) Posted: Tue Dec 02, 2008 7:52 pm
Post subject: Re: Security Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can use the TOP option to limit the result set:

SELECT TOP 200 <columns>
FROM Table
ORDER BY ...

--
Plamen Ratchev
http://www.SQLStudio.com
 >> Stay informed about: Security Question 
Back to top
Login to vote
Jonathan Kehayias

External


Since: Nov 22, 2008
Posts: 26



(Msg. 4) Posted: Tue Dec 02, 2008 11:32 pm
Post subject: Re: Security Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

TOP will always return the first 200 rows, it won't allow retrieval of
subsequent sets of 200 from the database. If the first 200 is all that is
needed TOP would work, but if you need paging, it won't.

--
Jonathan Kehayias
SQL Server MVP
http://jmkehayias.blogspot.com
http://www.sqlclr.net


"Plamen Ratchev" <Plamen DeleteThis @SQLStudio.com> wrote in message
news:8ZOdnYrnfO3PRajUnZ2dnUVZ_qfinZ2d@speakeasy.net...
> You can use the TOP option to limit the result set:
>
> SELECT TOP 200 <columns>
> FROM Table
> ORDER BY ...
>
> --
> Plamen Ratchev
> http://www.SQLStudio.com
 >> Stay informed about: Security Question 
Back to top
Login to vote
Plamen Ratchev

External


Since: Aug 20, 2008
Posts: 645



(Msg. 5) Posted: Tue Dec 02, 2008 11:54 pm
Post subject: Re: Security Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The question was how to extract 200 rows per user request, it did not
mention paging at all. You could build a paging solution using TOP.

--
Plamen Ratchev
http://www.SQLStudio.com
 >> Stay informed about: Security Question 
Back to top
Login to vote
Jonathan Kehayias

External


Since: Nov 22, 2008
Posts: 26



(Msg. 6) Posted: Wed Dec 03, 2008 12:53 am
Post subject: Re: Security Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In my original post I made the comment that I wasn't sure if paging was what
they were after or not. My interpretation of the question being asked might
be different than yours or someone elses.

I also didn't say that you absolutely couldn't build a paging solution with
TOP, I said doing a simple TOP 200 won't allow paging. TOP for paging would
be one of the more expensive ways of doing paging in SQL Server. The cost
to sort for TOP for paging can easily be more than using a CTE or a Table
Variable with an identity RowID column to control the paging sets.

--
Jonathan Kehayias
SQL Server MVP
http://jmkehayias.blogspot.com
http://www.sqlclr.net


"Plamen Ratchev" <Plamen DeleteThis @SQLStudio.com> wrote in message
news:8ZOdnYTnfO2DjKvUnZ2dnUVZ_qfinZ2d@speakeasy.net...
> The question was how to extract 200 rows per user request, it did not
> mention paging at all. You could build a paging solution using TOP.
>
> --
> Plamen Ratchev
> http://www.SQLStudio.com
 >> Stay informed about: Security Question 
Back to top
Login to vote
Eric

External


Since: Nov 26, 2008
Posts: 27



(Msg. 7) Posted: Wed Dec 03, 2008 11:28 am
Post subject: Re: Security Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi There,

My idea is how to prevent that someone that may work on my sql server 2005
will not attempt to extract more then 200 record. The person may try to
extract millions of records so I am trying to find out how to prevent that?
That person will work with me remotely and I need to setup an account for
him. I hope that was enough details.

Thanks,

Eric


"Jonathan Kehayias" <jmkehayias.nospam DeleteThis @nospam.gmail.com> wrote in message
news:%23iqfO$NVJHA.4900@TK2MSFTNGP05.phx.gbl...
> You can do server-side paging of the data following the example in this
> article:
>
> http://www.sqlteam.com/article/server-side-paging-using-sql-server-2005
>
> Not sure if that is exactly what you are after or not. Can you provide a
> little more information on what exactly you are after if it doesn't answer
> the question?
>
> --
> Jonathan Kehayias
> SQL Server MVP
> http://jmkehayias.blogspot.com
> http://www.sqlclr.net
>
> "Eric" <Ericxyz DeleteThis @Hotmail.com> wrote in message
> news:ecb8D5NVJHA.2468@TK2MSFTNGP02.phx.gbl...
>> Hi All,
>>
>> If I want to enable a user to extract up to 200 rows per a request, how
>> that can be done?
>> Is it possible to control?
>>
>> Thanks,
>>
>> Eric
>>
>
>
 >> Stay informed about: Security Question 
Back to top
Login to vote
Jonathan Kehayias

External


Since: Nov 25, 2008
Posts: 8



(Msg. 8) Posted: Wed Dec 03, 2008 2:05 pm
Post subject: Re: Security Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can't do that at the user or login level. It would be based on the
query code that they submit to the server more or less.

--
Jonathan Kehayias
SQL Server MVP
http://jmkehayias.blogspot.com
http://www.sqlclr.net

"Eric" <Ericxyz RemoveThis @Hotmail.com> wrote in message
news:%23uMUARWVJHA.3688@TK2MSFTNGP02.phx.gbl...
> Hi There,
>
> My idea is how to prevent that someone that may work on my sql server 2005
> will not attempt to extract more then 200 record. The person may try to
> extract millions of records so I am trying to find out how to prevent
> that? That person will work with me remotely and I need to setup an
> account for him. I hope that was enough details.
>
> Thanks,
>
> Eric
>
>
> "Jonathan Kehayias" <jmkehayias.nospam RemoveThis @nospam.gmail.com> wrote in message
> news:%23iqfO$NVJHA.4900@TK2MSFTNGP05.phx.gbl...
>> You can do server-side paging of the data following the example in this
>> article:
>>
>> http://www.sqlteam.com/article/server-side-paging-using-sql-server-2005
>>
>> Not sure if that is exactly what you are after or not. Can you provide a
>> little more information on what exactly you are after if it doesn't
>> answer the question?
>>
>> --
>> Jonathan Kehayias
>> SQL Server MVP
>> http://jmkehayias.blogspot.com
>> http://www.sqlclr.net
>>
>> "Eric" <Ericxyz RemoveThis @Hotmail.com> wrote in message
>> news:ecb8D5NVJHA.2468@TK2MSFTNGP02.phx.gbl...
>>> Hi All,
>>>
>>> If I want to enable a user to extract up to 200 rows per a request, how
>>> that can be done?
>>> Is it possible to control?
>>>
>>> Thanks,
>>>
>>> Eric
>>>
>>
>>
>
>
 >> Stay informed about: Security Question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Security Permissions Question - Hi all, I have the following situation: SQL 2000 server 2 Databases "ARDC", "PMM" Users log into and use PMM. Stored procedures accessed on PMM by users, Select data in ARDC, such as: SELECT P.COL1, P.COL2, ...

security - Hi! SQL 2000 Enterprise Server. I have a database with the user: user1 that has a db_owner rights. That databases has about 50 tables. We need for user1 to have db_owner role to all tables except the two (new requirement). user1 can read from those..

disabling security - It is possible to disable security in sql server ?

Security patches for SQL Server 2000 - How can I tell which security patches I currently have on sql server 2000 and if I am up to date on all the patches? Thanks. -- New SQL Server DBA

Security - Auditing Problem - One of our clients requiring us to audit the data cahnges to their database. Is there a "good" third party utility out there to do the job ? Before you answer to that, let me lay out some facts. - We need this on the DB level, so we can not...
   Database Help (Home) -> Server All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]