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
Add reference to Microsoft.SqlServer.Manage<wbr />ment not available
Silverlight bandwidth performance
Add CrLf to a string of text
Program constantsly closes and has "encountered error report"
T SQL Update table.col based on several criteria
3 Cascading Combo boxes Working and NotInList Working But How do I Input Data from another Form
What is Bitlocker ion Vista and windows 2003. How different are these in both OS.
Failed Update KB967723 Windows Server x64 2008 Standard Sp2
WinDBG - Need Help Using
Infopath 2007 with SharePoint Drafts