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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
|