Thank this author by sharing:
index include script
Scripting Objects Including Permissions
Script tables but why not include their non-clustered indexes ?
Script one or all roles in a database. Includes users, obect permissions and column permissions.
Can't script remote database using script method
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.