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
Speed up loading of form loaded with text boxs
Workflow: Update List Item using multiple "find" criteria
Excel shared spreadsheet problem
SCCM Server Share Distribution point
Ho to make Browser Task flashing in Taskbar
error 2009 , my dos application under foxplus is not run with XP
How do I fix system restore so that it functions correctly?
Go to a specific Record in a popup form from a record listed in an open form/subform
how so I get the uniqueidentifier after insert in SQLEXPRESS?
how to add two textboxes in access form to display in another textbox