Microsoft
Software
Hardware
Network
Question : Simple SQL Query Date Command
Hi SQL Experts,
I need help with a simple select statement.
I have a tenant table with field called 'dtleaseto' that holds the last date of the lease. I want to run a select statement to return all tenant records that have their 'dtleaseto' date ending within 30 days of today.
Answer : Simple SQL Query Date Command
select *
from tenent
where dtLeaseTo Between CONVERT(varchar(10), getdate(), 120 ) AND CONVERT(varchar(10), getdate()+30, 120 )
Random Solutions
Exchange Queues filling with error 'The connection was dropped due to an SMTP protocol event sink'
select minimum value from several rows that is greater or equal to a given a single value
How to read city from Active Directory and use as parameter to startup exe
Microsoft, NTFS Permissions, Windows 2003 R2, PowerShell, recursive search for folder, not file, ACLs on 200,000 folders
Diverting emails
Re-install windows 2003 and restore Primary Domain Controller functions
Progress Indicator for calculations
.rptproj is not installed.
IE7 on WinXP Cookies Fail
smtp;550 5.7.1 Unable to relay for