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 password does not meet the password policy requirements.
cross tab sql query
Sharepoint
Send Email From Access - VB Code to select Outlook 2007 Send Account
count by columns
Simple SQL question, filter only gives records that have url, want null also
How do I open MSMQ?
Microsoft File Transfer (MSDN) and SonicWALL TZ 210
SQL 2008 - Need to use calcualted field in another calculation
Dell XPS 600 Power Supply Replacement