Viewing 15 posts - 31 through 45 (of 276 total)
based on the limited data, one way is substring. a combination of left and right could work as well.
DECLARE @STR VARCHAR(20)
SET @STR = 'W~W51247~0~1~0'
SELECT ...
September 2, 2010 at 2:34 pm
you can get counts with this:
SELECT QUOTENAME(SCHEMA_NAME(t.schema_id), ']') + '.' + QUOTENAME(t.name, ']') AS fulltable_name
, SCHEMA_NAME(t.schema_id) AS schema_name
...
September 2, 2010 at 12:17 pm
SELECT ref
, seq
, COUNT(seq)
FROM demo AS D
GROUP BY ref
...
September 1, 2010 at 12:13 pm
I bet there are better options, but here is one.
Create table #Test
(SNO int identity(1,1), Code varchar(6), Amount Money, Type Varchar(10), Month int, year int)
insert into #Test values ( 'D10001', 10,...
June 22, 2010 at 3:03 pm
I had the same issue, I am downloading and installing now.
May 18, 2010 at 10:22 am
Jeff Moden (5/14/2010)
3. No... I disagree... old threads should NEVER be locked. Every once in a while, I'll come across one that I absolutely disagree with (either in...
May 14, 2010 at 12:57 pm
The two things I would like to see are:
1) Lock old (after defining "old") threads from being resurrected, or, a "warning" to the new poster that this thread is...
May 14, 2010 at 11:35 am
Something like this?
DECLARE @entereddate DATETIME
SET @entereddate = GETDATE()
SELECT DATEADD(MONTH, -6, @entereddate) AS past,
@entereddate,
DATEADD(MONTH,...
May 12, 2010 at 11:21 am
Being that you have a table with columns to keep, you can try this:
CREATE TABLE #Keep ( NAME sysname ) -- Create the columns to KEEP
INSERT INTO #Keep (...
May 12, 2010 at 8:53 am
Just a guess, what about something like one of these?
select suser_sname(), suser_name()
May 11, 2010 at 12:21 pm
a quick google search on XIRR turned up this:
May 11, 2010 at 11:51 am
Gianluca Sartori (5/11/2010)
Don't run the select * from #myhead statement, as it involves presenting results in SSMS.
DOH! :w00t: Good call. 11 second run time now.
May 11, 2010 at 8:36 am
Lowell (5/11/2010)
25...
May 11, 2010 at 8:25 am
Jeff Moden (5/10/2010)
May 11, 2010 at 5:40 am
Viewing 15 posts - 31 through 45 (of 276 total)