Results 1 to 4 of 4

Thread: MSSql7: Alter Table

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Posts
    2

    Post

    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.

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    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).]

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Posts
    2

    Post

    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

  4. #4
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    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
  •  



Click Here to Expand Forum to Full Width