Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Copy all tables with names begins with a given string

$
0
0

Hi,

 Did anyone come across to create a script to Copy all tables with names begins with a given string, assume is 'AA', from Database A to Database B within the same sql server?  For instance, Table AAcustomer, AAproduct ...etc. All table contents and structures should remain the same, for examples, cluster indexes and primary key constraint. Many thanks!

Regards

Stephen


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>