Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

Hope all are rocking in coding.
I come across this different requirement, adding a column to multiple tables.
In my database I have 38 tables and in all tables I need to add a column - CreatedBy int not null.

Is there any way to add one column in all tables in a database.
Or add column in given table names.

Let me know your feedback and suggestions.

Thanks in advance.

Regards,
Avinash
Posted

1 solution

 
Share this answer
 
Comments
Avinash6474 20-Oct-15 7:00am    
How to do it for selected tables?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900