Viewing 5 posts - 1 through 5 (of 5 total)
sorry, I didn't realize the blog exceed the limit. The example is under this topic 'Summarizing Data Using ROLLUP'.
September 22, 2005 at 8:08 am
Is an aggregate function that causes an additional column to be output with a...
September 22, 2005 at 8:06 am
If you want just the date, use an ODBC canonical function
select {fn CURRENT_DATE()} AS 'date only'
or
SELECT {fn CURRENT_TIMESTAMP()} AS 'Timestamp'
See
August 31, 2005 at 6:54 am
The easiest way is to use an ODBC canonical function which SQL Server supports.
select {fn CURRENT_DATE()} AS 'date only'
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcscalar_functions.asp for more information on ODBC functions.
August 31, 2005 at 6:46 am
This would be a better approach.
Create the table first:
create table Table2 (col list)
Then insert all the records from Table 1 to table 2:
Insert into Table2
select (col list)
From Table1 with (nolock)
August 31, 2005 at 6:37 am
Viewing 5 posts - 1 through 5 (of 5 total)