Viewing 15 posts - 11,011 through 11,025 (of 26,486 total)
How about the following:
IF OBJECT_ID('tempdb..#RecsToPull') IS NOT NULL
DROP TABLE #RecsToPull;
CREATE TABLE #RecsToPull
(
DeptAbbr char(10),
CasePulls int
);
INSERT INTO #RecsToPull values('A', 1);
INSERT INTO #RecsToPull values('B', 2);
INSERT INTO #RecsToPull values('C', 3);
IF OBJECT_ID('tempdb..#DeptPurchases') IS NOT NULL
DROP...
June 28, 2012 at 1:53 pm
C# Gnu (6/28/2012)
Lynn Pettis (6/28/2012)
Question, is the 2nd part of the UK Postal code always the last 3 characters and the 1st part 3 or 4 characters long?
Yes Lynn that's...
June 28, 2012 at 1:39 pm
Question, is the 2nd part of the UK Postal code always the last 3 characters and the 1st part 3 or 4 characters long?
June 28, 2012 at 1:17 pm
Since you can't post the actual table DDL and sample (made up data) for the table that demonstrates your problem, not much we can do unless you can put together...
June 28, 2012 at 1:10 pm
Also, Charmer, you have been around these forums long enough to know how to post DDL, sample data, and expected results. You really need to start putting more effort...
June 28, 2012 at 1:01 pm
thadeushuck (6/28/2012)
June 28, 2012 at 12:08 pm
Welsh Corgi (6/27/2012)
Why is sys.sql_modules the preferred table?
That's funny that you mention NOLOCK's. I had someone tell me that the WITH (NOLOCK) was...
June 27, 2012 at 9:07 am
Not to hijack this thread, but I'm glad that the Cult of Mediocrity doesn't exist when evacuating citizens from areas of danger. The Colorado Springs Fire and Police Departments...
June 27, 2012 at 8:49 am
anush_tar (6/26/2012)
I have After Trigger on table, that's why I can't use SCOPE_IDENTITY() or @@IDENTITY. IDENT_CURRENT is not limited by scope and session.
That's why when 2 or more...
June 27, 2012 at 12:23 am
Just heard from my friend. They got out of the area with the fire right behind them. They are with family in Denver.
June 26, 2012 at 10:25 pm
Mandatory evacuation area has expanded on the North West side of Colorado Springs. The area now includes the area where I currently work.
Waiting for email updates to know what...
June 26, 2012 at 10:10 pm
Made a slight change to my code. I noticed I forgot to comment a closing paren.
June 26, 2012 at 7:39 pm
Sounds good as I haven't had a chance to even look at it.
June 26, 2012 at 5:35 pm
And we have another horror story, Already tried repair, rebuild, detach/attach, backup/restore (no backup prior to this error).
June 26, 2012 at 5:28 pm
Do you have any way to recreate your data should you have to rebuild from scratch (which you may have to do in this case)?
June 26, 2012 at 5:26 pm
Viewing 15 posts - 11,011 through 11,025 (of 26,486 total)