|
-
Aug 9th, 1999, 03:06 AM
#1
Thread Starter
New Member
Hi,
I want to grant other user the ability of altering (adding columns to) the table I created through VB code. In MSSql7, I can't find a statement like 'grant alter table on tb_name to public'. Is it possible to do so in sql7?
Any help will be greatly appreciated.
-
Aug 9th, 1999, 03:34 AM
#2
Frenzied Member
Give sp_addrolemember 'dbcreator', 'NETDOMAIN\username'
a shot (where username=the name of the user connecting). This will give the authority to a single user.
To give the authority to "public", I think
sp_addrolemember 'dbcreator', 'NETDOMAIN\public'
might work.
Am only just investigating it, I have not yet worked with SQL Server 7.0...
[This message has been edited by JHausmann (edited 08-09-1999).]
-
Aug 9th, 1999, 07:17 PM
#3
Thread Starter
New Member
Thanks, it really works. I think it will only work for sql7 though, since I can not find a store procedure called sp_addrolemember in sql6.5
-
Aug 9th, 1999, 08:37 PM
#4
Frenzied Member
Roles are a feature new to 7.0
BTW, there are lots of different assigned roles (and you can create your own, too). You might want to take a look at the online help and see if any of the others are beneficial to your needs.
[This message has been edited by JHausmann (edited 08-10-1999).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|