Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi all- I have couple of questio

Status
Not open for further replies.

man72

Programmer
Dec 12, 2002
7
0
0
US
Hi all-

I have couple of questions:
1) How can I give permissions to all the tables in a database with one statement.
2) How do I alter a table(s) default value.

Any help will be highly appreciated.

Thanks
ManoJB
 
Man72

Try this:

1. Write a query that retrieves all the table names.
2. Export that data list into a file.
3. Create a query that grants the authority you want
based on a variable tablename.
4. Edit the data list from #2 in such a way to call #3 query.
5. Import the data list into a proc.
6. Save the proc and execute it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top