Wednesday, March 28, 2012
How not to display all databases under sql2k using sql management studio?
However, what about if this person uses sql 2005 management studio to connect to a sql 2000 server. Since sql 2005 management studio does not call the store procedure sp_MSdbuseraccess, it will display all the database in the server.
It does not seem like I can use "deny view on any database to username" on a sql 2000 server.
Does anyone have any idea what I need to do in order to not show all the database when I use sql 2005 management studio to connect to a sql 2000 server box?
Thank you.EM will show the database as existing, but you can still deny access to the database and prevent people from opening it up or viewing the objects and data inside it.
Only admins should be using Enterprise Manager anyway...|||What I want to do is to deny any login id (who owns certain database) to not be able to see other database at all.
Just like sql 2005, you can run "deny view any database to userid"
However, doesn't seem like sql 2000 has this command.|||The databases are like houses. You can prevent people from going inside, but you can't prevent people from seeing them.
Monday, March 19, 2012
How Management Studio Express was developed?
i was just thinking what language was used to develop the Management Studio
Express?
anybody knows?
thanks...
SQL Server Management Studio
http://www.microsoft.com/downloads/d...displaylang=en
was developed in a .NET languange. It was probably developed in C# and C++
Keith Kratochvil
"Jassim Rahma" <JassimRahma@.discussions.microsoft.com> wrote in message
news:41F53DBA-277F-43C8-AA51-29211C5E05DC@.microsoft.com...
> hello,
>
> i was just thinking what language was used to develop the Management
> Studio
> Express?
>
> anybody knows?
>
> thanks...
>
>
|||Mostly C#
Mike
http://www.solidqualitylearning.com
Disclaimer: This communication is an original work and represents my sole
views on the subject. It does not represent the views of any other person
or entity either by inference or direct reference.
"Jassim Rahma" <JassimRahma@.discussions.microsoft.com> wrote in message
news:41F53DBA-277F-43C8-AA51-29211C5E05DC@.microsoft.com...
> hello,
>
> i was just thinking what language was used to develop the Management
> Studio
> Express?
>
> anybody knows?
>
> thanks...
>
>
Monday, March 12, 2012
how long need ALTER DATATABLE (DATABASE) SET ENABLE_BROKER ?
I am try to start with SQL BROKER service,
When I lunch from sql Management studio the following query, this don't finish never.
ALTER DATATABLE dbname SET ENABLE_BROKER
Where I am mistaking ?
I've written some article about SB here: http://www.dotnetfun.com/Articles/sql/sql2005/SQL2005ServiceBrokerProblems.aspx
Essentially:
I assume you mean ALTER DATABASE.
ALTER DATABSE dbname SET ENABLE_BROKER requires an exclusive lock on the database. Any session using that database has a shared lock on it, thus bloking the ALTER. So make sure you close (or switch to another database context) all sessions.
HTH,
~ Remus
|||
Holas!
How can I close all the sessions using a query?
Saludos,
|||You can use the WITH ROLLBACK IMMEDIATE clause of the ALTER DATABASE to force the close off conflicting sessions|||Thanks Ramus,
Saludos,
|||thank you for your best guidance that was very useful for me to solve my problem.
regard you
mojgan
how long need ALTER DATATABLE (DATABASE) SET ENABLE_BROKER ?
I am try to start with SQL BROKER service,
When I lunch from sql Management studio the following query, this don't finish never.
ALTER DATATABLE dbname SET ENABLE_BROKER
Where I am mistaking ?
I've written some article about SB here: http://www.dotnetfun.com/Articles/sql/sql2005/SQL2005ServiceBrokerProblems.aspx
Essentially:
I assume you mean ALTER DATABASE.
ALTER DATABSE dbname SET ENABLE_BROKER requires an exclusive lock on the database. Any session using that database has a shared lock on it, thus bloking the ALTER. So make sure you close (or switch to another database context) all sessions.
HTH,
~ Remus
|||
Holas!
How can I close all the sessions using a query?
Saludos,
|||You can use the WITH ROLLBACK IMMEDIATE clause of the ALTER DATABASE to force the close off conflicting sessions|||Thanks Ramus,
Saludos,
|||thank you for your best guidance that was very useful for me to solve my problem.
regard you
mojgan
how long need ALTER DATATABLE (DATABASE) SET ENABLE_BROKER ?
I am try to start with SQL BROKER service,
When I lunch from sql Management studio the following query, this don't finish never.
ALTER DATATABLE dbname SET ENABLE_BROKER
Where I am mistaking ?
I've written some article about SB here: http://www.dotnetfun.com/Articles/sql/sql2005/SQL2005ServiceBrokerProblems.aspx
Essentially:
I assume you mean ALTER DATABASE.
ALTER DATABSE dbname SET ENABLE_BROKER requires an exclusive lock on the database. Any session using that database has a shared lock on it, thus bloking the ALTER. So make sure you close (or switch to another database context) all sessions.
HTH,
~ Remus
|||
Holas!
How can I close all the sessions using a query?
Saludos,
|||You can use the WITH ROLLBACK IMMEDIATE clause of the ALTER DATABASE to force the close off conflicting sessions|||Thanks Ramus,
Saludos,
|||thank you for your best guidance that was very useful for me to solve my problem.
regard you
mojgan
|||Hi there,I faced the same problem you have mentioned.
Then, I found a simple solution. You need to use the following 2 statements together, and the query will finish in no time:
Use NorthWind
alter database NorthWind SET ENABLE_BROKER