Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008
all groups > sql server programming > january 2006 > threads for saturday january 28

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Adv. T-SQL: Finding closest match across multiple columns
Posted by Todd Brooks at 1/28/2006 5:31:33 PM
Without resorting to OLAP, I would like a way to query a table of multiple columns to find a match within a specified tolerance level. For example, if I have a table like below: CREATE TABLE MyTable ( [ID] [int] IDENTITY (1, 1) NOT NULL , [Col1] [int] NOT NULL , [Col2] [int] N...more >>


Looping
Posted by EdB at 1/28/2006 4:29:29 PM
Is there any way to do a loop in a stored procedure? I have a "ripple effect" delete I need to and appearantly you can't do a join in a delete statement. A->B->C->D Table B is relationally tied to A Table C is relationally tied to B Table D is relationally tied to C If I delete a rec...more >>

FIND OUT IT IS A NUMBER OR STRINg
Posted by Savas Ates at 1/28/2006 4:00:21 PM
I have a column with varchar type.. It has some records like this... isbuluyorum 11222 a1285 12r23 How can i find out it is a number or string ? ...more >>

transfer data from remote sql server 2000 to local sql server 2005
Posted by Steve_at_BF at 1/28/2006 12:11:28 PM
My objective is to transfer data from a table in a remote sql server 2000 to a table in a local sql server 2005. Any relatively easy way would be OK. It is OK if it is a manual method because I will not do it very often, just when upgrading to a new version of SQL server. I prefer a trouble...more >>

Tuning Wizard Quits Spontaneously
Posted by querylous at 1/28/2006 11:56:04 AM
Hi- I am trying to use ITW on my DB. I'd call it moderately sized; few hundred tables, maybe 100 indexes. DB size is 7GB. I ran a profiler trace (index tuning template) and generated 1700 lines of queries. Then I try to apply tuning wizard. I uncheck limit queries to 200, and I select all tabl...more >>

enforce update statement order
Posted by éric at 1/28/2006 4:53:51 AM
I have a table with animals in the update statement I have a self join on this table where one animal is joined to itself (by father_id = animal_id) the statement updates a field based on a value obtained from the father's record. I want to enforce in the statement that the oldest animlas a...more >>

COUNT with conditions
Posted by Gérard Leclercq at 1/28/2006 12:00:00 AM
SELECT rankingSong, count(rankingPosition) as rankingWeeks, max(rankingPosition) as rankingHighest count(If rankingPosition=1)as rankingWeeksOnTop, FROM tblPositions GROUP BY rankingSong Can i add conditions to COUNT, something like count(If rankingPosition=1)as rankingWeeksOnTop, GL....more >>

SUM
Posted by Gérard Leclercq at 1/28/2006 12:00:00 AM
Hi everybody, We keep a hit charts in a database. On the end of the we make a Top 100. So i need to calculate how many points a song have. This is done bu multiply the rankingPosition by a number. Our chart counts 30 entries Problem is that the nr 1 wins 30 point 2 wins 29 point .... ...more >>



How to perform multi-namespace?
Posted by Frank Lee at 1/28/2006 12:00:00 AM
I would like to arrange a table into a multi-namespace, for example, to be db.FM.Accounting.JournalTable. How to do so? The only way I got is db.FM_Accounting.JournalTable, anyway else? Frank, using sql2005dev ...more >>


DevelopmentNow Blog