Microsoft
Software
Hardware
Network
Question : SQL Rewrite this dateadd line
How can I name this with the date?
SELECT
@Day2 As DATEADD(DAY, -1, GetDate()),
The resulting field name I need - '01/21/2010'
with the data @Day2
Answer : SQL Rewrite this dateadd line
thats not possible without using a dynamic sql
DECLARE @Day2 DATETIME = Getdate()
DECLARE @sql VARCHAR(1000)
SET @sql = 'SELECT '+ CONVERT(VARCHAR, @Day2, 112) + 'As "'+ cast( DATEADD(DAY, -1, GetDate()) AS varchar) +'" '
EXEC (@sql)
Random Solutions
the certificate is invalid for exchange server usage
script will not removed mapped drive from user profiles
WIndows Vista dont boot, blue screen
Adding a unique identifier to a field for export
MS Word conversion to Adobe
MS Access - References Lost When Distributing
SoapException when passing a class to web service
Can Access 2003 and 2007 coexist in peace on the same machine?
After OCS F-E's IP was changed, Services would't start - SQL connection lost?
Small Business Server 2008 - TASK Scheduler Errors