Skip to content

Instantly share code, notes, and snippets.

@armand1m
Last active October 15, 2016 14:35
Show Gist options
  • Save armand1m/73922eef60b48b7b91ed888adacf4a3d to your computer and use it in GitHub Desktop.
Save armand1m/73922eef60b48b7b91ed888adacf4a3d to your computer and use it in GitHub Desktop.
how to query a mssql server table by date
SELECT *
FROM TABLENAME
WHERE DateTime BETWEEN '04/12/2011 12:00:00 AM' AND '05/25/2011 3:53:04 AM'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment