I require to create new tables for every client that signs up for my application.
For Example, I have two tables
Order_History_<ClientIdentifier>
Transcation_Log_<ClientIdentifier>
In SQL Server, how do I create tables with customized names on the go and how can I query them according to the client which is accessing my application.
very simple way:
if you need something more “automatic”, like creating the tables from a template table by copying all his fields and keys i would use the sys. views but it’s a bit longer to write 😛