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
How to call a 32 bit DLL from a 64 bit application.
Fololders copy any tool that can log whats moved and does not error for long paths.
Does wordpad support automation from vb.net?
How do I remove 'group on' in VB code for Access 2007 report?
Vista Backup error message 0x8007002
How do I add an onclick action to a ButtonField inside a GridView?
Populate a DataTable from another DataTable
Hyperlinked InfoPath Form within SharePoint
run a dll as an app keeps appearing when I want to do ANY window operation!
Single quotation in strVariable causes error 2147217900