Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all

i am making a utility for upload data from a selected database and restore in another database

now problem is that i m not able to get the list of all tables in a selected database
Posted

1 solution

SELECT name as Table_names FROM sysobjects WHERE type = 'U';
is one way.
 
Share this answer
 
Comments
sharmarun 7-May-11 4:39am    
got it thabnx
yesotaso 7-May-11 4:46am    
No problem. If it is solved, please press accept.

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