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 > august 2006 > threads for sunday august 27

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

Subtracting one SELECT COUNT() from another SELCT COUNT() on same
Posted by a at 8/27/2006 9:32:04 PM
I hope this is the correct place to post this. I'm fairly inexperienced at SQL and I'm not even sure what to call this query. I have multiple records for each DateFiled and some of the entries have a value in the FormXML column but some entries in the FormXML column are NULL. I'd li...more >>


SP for poll table
Posted by Arjen at 8/27/2006 6:48:50 PM
Hi, This is my poll table: CREATE TABLE [dbo].[Poll]( [Id] [int] NOT NULL, [Statement] [nvarchar](500) COLLATE Latin1_General_CI_AI NULL, [Answer1] [nvarchar](500) COLLATE Latin1_General_CI_AI NULL, [Score1] [int] NULL, [Answer2] [nvarchar](500) COLLATE Latin1_General_CI_AI NULL, [Sc...more >>

Why does this query work but that one does not
Posted by dbuchanan at 8/27/2006 7:28:20 AM
Why does this query work; SELECT e1.emp_no, e1.emp_lname, e1.domicile, d1.location FROM employee_enh e1 JOIN employee_enh e2 ON e1.domicile = e2.domicile JOIN department d1 JOIN department d2 ON d1.location = d2.location ON e1.dept_no = d1.dept_no WHERE e1.emp_no <> e2.emp_no but this on...more >>

Update for table without Primary key
Posted by Joy at 8/27/2006 5:20:02 AM
Hi, I am faced with a situation where i need to update a table but this table doesn't have a primary key. How do i do that? regards, Joy...more >>

How to build Hexa stream (0x151C2F...) to insert to Image type column?
Posted by pedestrian via SQLMonster.com at 8/27/2006 12:14:22 AM
I'm using Northwind.dbo.Employees table. For the Photo (Image type) column, a visit to instnwnd.sql (Northwind database source statements) reveal the following: INSERT Employees (EmployeeID, LastName, FirstName, ... , Photo, ...) VALUES (1,'Davolio','Nancy', 0x151C2F0FFFEFF (***very long hexa...more >>

Query runs forever...
Posted by broy NO[at]SPAM omegasoftwareinc.com at 8/27/2006 12:02:40 AM
I have the query shown at the end of this post. I have run this query (actually a VIEW is based on it) many times before. However, for some reason, all of a sudden, it is taking forever to run (i.e. I haven't been able to wait long enough for it to finish). It used to run in a second or two tops...more >>

rename SELECT *
Posted by Trapulo at 8/27/2006 12:00:00 AM
I there any way I can "rename" fields returned by a select *? I need that all fields will have a same prefix. For example, if table has fields ID, NAME, SURNAME, I wat to run some as SELECT * FROM TABLE and retrieve a result with the fields PREF_ID, PREF_NAME, PREF_SURNAME, without to enume...more >>

Badly performing queue processing proc
Posted by Gyruss at 8/27/2006 12:00:00 AM
Hi, I would like some advice on improving a badly performing stored proc takes a record from a buffer table, calls a stored proc, then deletes the record . Basically, it's a priority queue implemented in TSQL. Its two problems are: (a) It slows down to a crawl when there are more than abo...more >>




DevelopmentNow Blog