Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have 2 text box one of them is user name (like rohit ) and i want that as i click button one table is created in database which table name is rohit


how to create table run time when click button in asp.net in sql server 2005
Posted

1 solution

click button one table is created in database which table name
All you need is to execute a query on database which would be similar to how you insert/update/delete a record in database.

In your click handler, based on username, form a CREATE TABLE query and then execute it on database using ADO.NET.

Try out!
 
Share this answer
 
Comments
anshu77 1-Sep-12 6:55am    
please give solution on asp.net sql server 2005
Sandeep Mewara 1-Sep-12 7:01am    
I told exactly what you need to do. Try out and post specific issue if you face.

Don't expect exact codes please.
anshu77 4-Sep-12 2:11am    
THANKS

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