January 9, 2008 at 1:56 am
You need to create a user in the database, map it with the login created, and then provide appropriate permissions on the objects.
January 9, 2008 at 7:48 am
There is no spool command like that you have in Oracle. You can save the result to a file.
-Roy
January 10, 2008 at 5:36 am
thanks for the advice!
More questions
The following code was posted earlier to allow me to list user tables
select 'grant select on ' + a.name + ' to serviceuser'
from sysobjects a where a.type = 'u'
So I assume that the type = 'u' means tables?
How do I list user views? ie what is the type code?
How do I get to the sysobjects table, so I can see how this works?
January 10, 2008 at 5:55 am
You can see all objects in sys.all_objects. It is view.
-Roy
January 10, 2008 at 6:13 am
sorry to be a pain, but how do i access that in Management Studio?
I've tried a describe command, but it doesn't work
January 10, 2008 at 6:18 am
Open New Query window.
Use Midas;
Go
Select * from sys.all_objects
go
-Roy
January 10, 2008 at 6:21 am
use [dbname]
select * from sys.all_objects
=============================================================
/* Backups are worthless, Restores are priceless */
Get your learn on at SQL University!
Follow me on Twitter | Connect on LinkedIn
My blog: http://sqlchicken.com
My book: Pro Server 2008 Policy-Based Management
Viewing 7 posts - 16 through 21 (of 21 total)
You must be logged in to reply to this topic. Login to reply