Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How to get the details from a table in databse to send as an attachment through email.


Database table consists of c_Date,Eid,Intime,Outtime,Estatus,Count columns.

I need to fetch the all the columns where Estatus='in' and c_Date is today.

select * from table where Estatus='in'

whats the command for checking today's date with c_Date.
Posted
Comments
Member 9444634 15-Feb-13 0:24am    
can you please explain more clearly??

1 solution

1. GetDate function can be used to compare date with current date. You may also need to make use of DateDiff or DatePart if you only want to check for date and not time.
2. You may use SMTPClient for sending emails. Check out MSDN documentation on this.
 
Share this answer
 

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