Viewing 15 posts - 3,061 through 3,075 (of 3,957 total)
wolfkillj (8/9/2012)
One way to see how much this issue is affecting your database would be to rewrite queries that join views to return the same results by querying the underlying...
August 9, 2012 at 11:10 pm
Rather than using a Dynamic SQL query that substitutes in the table you want to SELECT FROM, why not instead consider using IF/ELSE IF/END with static SQL queries?
August 9, 2012 at 11:06 pm
To quote Jeff Moden's signature:
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what...
August 9, 2012 at 11:03 pm
Jeff Moden (8/9/2012)
dwain.c (8/9/2012)
Jeff Moden (8/9/2012)
dwain.c (8/8/2012)
Are you suggesting something else?</eager-to-learn-more>
Yes and I apologize for the rather lame question. Looking back at it, if someone had asked me the...
August 9, 2012 at 9:00 pm
CELKO (8/9/2012)
August 9, 2012 at 8:20 pm
Brandon Carl Goodman (8/9/2012)
August 9, 2012 at 8:12 pm
Brandon Carl Goodman (8/9/2012)
August 9, 2012 at 7:57 pm
In thinking about it a little further and a little clearer, I think what you need is this:
1. Anchor 1: Resolve parents --> children
2. Anchor 2: Resolve children (that are...
August 9, 2012 at 7:50 pm
;WITH rCTE AS (
-- Anchor 1: ...
SELECT ...
UNION ALL
-- Anchor 2: ...
...
August 9, 2012 at 7:47 pm
I can get you started but I have a question. Your rCTE looked close but I've made some modifications that I'll explain in a minute. First a revised...
August 9, 2012 at 7:37 pm
This might work for you:
CREATE TABLE #Test1
( [ID] INT IDENTITY(1,1) NOT NULL,
[Trans] BIGINT NOT NULL,
[SubTrans] BIGINT NOT NULL,
[Date] VARCHAR(20) NOT NULL
)
INSERT INTO #Test1([Trans],[SubTrans],[Date])
SELECT 1,2,'09/2012'
UNION ALL SELECT 1,3,'09/2012'
UNION...
August 9, 2012 at 7:13 pm
Something like this should get you close:
DECLARE @Languages XML
SET @Languages =
'<Languages>
<Language>
<LanguageId>9</LanguageId>
<ProficiencyId>4</ProficiencyId>
...
August 9, 2012 at 6:53 pm
Interesting and you're right it doesn't throw a syntax error!
You can follow the comma with more columns or something like this:
PRIMARY KEY ([DateID]
August 9, 2012 at 6:38 pm
Jeff Moden (8/9/2012)
dwain.c (8/8/2012)
Are you suggesting something else?</eager-to-learn-more>
Yes and I apologize for the rather lame question. Looking back at it, if someone had asked me the same question, I...
August 9, 2012 at 6:28 pm
Here's a couple of ways, obviously fraught with hazards if you don't have a lot of control over the creation of the filenames:
DECLARE @Table TABLE (filename VARCHAR(200))
DECLARE @CurrentYear CHAR(4) =...
August 9, 2012 at 12:15 am
Viewing 15 posts - 3,061 through 3,075 (of 3,957 total)