
October 1st, 2003, 05:55 AM
|
|
Junior Member
|
|
Join Date: Oct 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
sql/vb statement help
Heres my vb code
Dim sql As String = "SELECT P_Name, C_PeriodTo from PROPOSER, POLICY where DATEDIFF(DD, GETDATE(), C_PeriodTo)>1 AND DATEDIFF(DD, GETDATE(), C_PeriodTo)<28 AND P_RegnNo=C_RegnNo"
However, the result is different from what I get using Sql Query Analyzser. May I know if there is any special characters in the code that might be causing the difference?
|