Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Frnds..
I have an application which i can connect the SQl SErver and able to Export data from SQL serverr to Excel sheet..
now my query is
for each and every time i don't want to export the entire data to Excel.
i am looking to pass query as selecting date or any field so that i can filter data and i can export data for only related to that query ..
please help me how to make a query in the code where i am slecting the table...
Posted
Updated 8-Oct-12 19:14pm
v2

1 solution

Here is a good comprehensive article on the subject
http://www.w3schools.com/sql/sql_quickref.asp[^]

OK, bear in mind that your question very unclear - and it doesn't seem like you've gone through the effort of actually looking on this site for possible answers to your query.
Here is a link to a more useful place for learning with your slightly expanded explanation about your problem:

how to pass query by date SQL Server in C# coding
Beginners guide to accessing SQL Server through C#[^]
Enjoy, and remember good questions gives good answers.
 
Share this answer
 
v2
Comments
Malikarjuna Rao Pendem 10-Oct-12 5:28am    
hi i want how to pass query by date..in C# coding..

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