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 > september 2007 > threads for sunday september 16

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

A simple string manipulation
Posted by Rex at 9/16/2007 11:31:41 PM
I want to hide the first three character of a string. For eg. string '01-DS83156' should be returned as 'DS83156'. I want to do this in MS SQL Server. I am using MS SQL Server 2000 Cheers ...more >>

Keeping all contacts in one database
Posted by Peter at 9/16/2007 6:44:00 PM
I am a newbie and trying to setup a database similar to Northwind with Customers, Suppliers and Employees. However, unlike Northwind I want to keep all the contact info for each one of these (Customers, Suppliers, Employees) in the same table named Contacts ( which I hope to eventually link / ...more >>

Preventing duplicates in a coalesce query
Posted by Daniel Badger at 9/16/2007 6:30:00 PM
I have the following query running in a stored procedure - SELECT @UnitString = COALESCE(@UnitString + ',', '') + '3_' + ltrim(str(Id)) + '_' + ltrim(str(ChildId)) FROM #Members WHERE (Lineage LIKE '%/1/'+ ltrim(str(@MemberId)) +'/'+ ltrim(str(@ParentId)) +'%/') If for example the res...more >>

Split rows
Posted by Arjen at 9/16/2007 4:41:10 PM
Hi, Below you see my table. CREATE TABLE [Rates]( [Num] [int] IDENTITY(1,1) NOT NULL, [A] [int] NULL, [B] [int] NULL, [C] [int] NULL, [D] [int] NULL, [CreateDate] [nvarchar](50) COLLATE Latin1_General_CI_AI NULL, CONSTRAINT [PK_Rates] PRIMARY KEY CLUSTERED ( [Num] ASC )WITH (...more >>

Accessing data on a server?
Posted by Peter Olcott at 9/16/2007 11:19:01 AM
I have SQL Server developer edition installed on one computer and SQL Server Express Edition install on another computer. When I try to "Attach" a database located on my file server, SQL Server does not "see" the network drive. Is there anyway to get a local instance of SQL Server to "Atta...more >>

Violation of UNIQUE KEY constraint
Posted by Hadidi at 9/16/2007 10:42:01 AM
I've a unique constraint on 2 columns in a table The table is empty I tried to insert a record , But I had this error "Violation of UNIQUE KEY constraint" !!! Any Ideas ???...more >>

Dealing with null-fields in recordsets
Posted by OK at 9/16/2007 7:15:47 AM
Sometimes recordsets in my SQLserver 2005 queries hold null-fields since the value of the specific fields in a sum only contained null values. In order to process the recordset in my VB application in such as case I use the following code since VB is not able to handle these null-fields : "...more >>

Ignore Condition When Parameter Array Value is Null
Posted by fishpopsicle at 9/16/2007 4:26:32 AM
I'm getting myself all mixed up with trying to support a SP that allows the passing of an array (from a checkbox list) to a query. I've gotten the code to work, the only problem I am having is to ignore the part of the WHERE clause for this parameter if it's null. Functionally, a user can select...more >>




DevelopmentNow Blog