Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

Get Last Month's Record (SQL Server CE)

$
0
0

Hello All,

I'm trying to convert the SQL statement below that I used with MS Access to SQL Server (COMPACT EDITION) 4.0 statement and I can't figure the darn thing out. I'm simply trying to get all records of the previous month. Please keep in mind that I'm using SQL Compact Edition 4.

Dim m_sSQL_Global_LastMonth As String = m_sSQL_Base_DR _
& " Where Month(DDate)=" & Month(Today) - 1 & " And " & "Year(DDate)= " & Year(Today) & "" _
& " ORDER BY DDate DESC, DTime_Start ASC;"

Thanks to all,

ADawn


gary


Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>