Click here to Skip to main content
15,745,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SELECT count(*) FROM table name this above code work fine in standalone sql table, but who can I do this simple task with in wpf project ?
[no name] 31-May-15 8:47am    
You connect to your database and execute your query against your database.
Waqas Ali 31-May-15 8:49am    
i connect and run query but who to get total number of row's.
[no name] 31-May-15 8:51am    
Well since I can't see your code, what is it that you expect to find out? ExecuteScalar should work. Did you search for and follow any of the thousands of tutorials that are available that show you how to do exactly this?
Waqas Ali 31-May-15 8:53am    
i did not find any tutorial like this will you guide me some where?
[no name] 31-May-15 8:53am

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