Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: Play around the Datetime data

    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

  • RE: SQL Connection string

    Try:

    Dim connString As String = "user id=username;password=pass; initial catalog=DBName; data source=ServerName"

    Dim myConn As New SqlConnection(connString)

     

    Abs

Viewing 2 posts - 1 through 2 (of 2 total)