Viewing 2 posts - 1 through 2 (of 2 total)
Hi,
If you want to select everything for a particular month use:
SELECT * FROM <TABLE_NAME> WHERE MONTH(Date_and_Time) = 6
Note you can also use the following:
DAY(Date_and_Time)
YEAR(Date_and_Time)
Hope this Helps,
A
September 7, 2006 at 3:10 am
#659001
Try:
Dim connString As String = "user id=username;password=pass; initial catalog=DBName; data source=ServerName"
Dim myConn As New SqlConnection(connString)
Abs
August 4, 2006 at 2:19 am
#653267