Viewing 15 posts - 1,471 through 1,485 (of 2,171 total)
Let him enter the field of landmines by using dynamic SQL.
See http://www.sommarskog.se/dynamic_sql.html
July 27, 2007 at 2:12 pm
Yes. It is called PIVOT or CROSSTAB queries.
There are examples of this in Books Online.
Or have a look at
http://www.sqlservercentral.com/columnists/plarsson/pivottableformicrosoftsqlserver.asp
July 25, 2007 at 2:16 pm
The modesty doesn't suite you
There are many people listen (read) to what you say (write)
July 23, 2007 at 6:40 pm
July 23, 2007 at 4:43 pm
===== Jeff ======
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
DBCC execution completed. If DBCC printed error messages, contact your...
July 22, 2007 at 7:34 am
USE TEMPDB
CREATE TABLE DBO.AILMENTDETAIL (
AILMENTDETAILID INT IDENTITY( 1 , 1 ),
AILMENTID INT,
DATAPOINTID
July 22, 2007 at 7:26 am
I think Jeff soon will post his million record test again
Checking the query plans I might think Jeff's suggestion is faster.
July 22, 2007 at 7:06 am
DELETE
ad
FROM AilmentDetail AS ad
LEFT JOIN (
SELECT MIN(
July 22, 2007 at 1:23 am
Well, with SQL Server 2005, you can do this with ROWNUMBER() function.
July 20, 2007 at 12:20 pm
From App you wrote?
If you use the ADO library, just put the sorting string to the Sort method.
July 19, 2007 at 4:14 pm
SELECT d.PRODUCTID, d.Value FROM Table1 AS d
INNER JOIN (SELECT Value FROM Table1 GROUP BY Value HAVING COUNT(*) > 1) AS t ON t.Value = d.Value
July 19, 2007 at 2:22 pm
Is week 1 of any year always starting with the monday on January 1 or nearest monday after?
Or do you want simple ISO week calulation? Then remember that there can...
July 19, 2007 at 2:20 pm
select * from resources where resourcename LIKE '%[' + char(224) + char(225) + char(226) + char(227) + char(228) + char(229) + ']%'
update resources
set resourcename = replace(replace(replace(replace(replace(replace(resourcename, char(224), char(97)),...
July 19, 2007 at 2:10 pm
You are using SQL Server 2005, are you?
asc desc diff
1 4 3 -- even number of datapoints
2 3 1
3 2 -1
4 1 -3
1 3 2 --...
July 19, 2007 at 2:06 pm
Viewing 15 posts - 1,471 through 1,485 (of 2,171 total)