Viewing 15 posts - 23,776 through 23,790 (of 26,490 total)
Jeff Moden (11/12/2008)
Well I'll be damned... didn't even notice until just now... 12,000+ posts... Steve owes me a shirt or two! 😛
Actually, according to the scores and standings page...
November 12, 2008 at 9:49 pm
Jeff Moden (11/12/2008)
ggraber (11/12/2008)
I was really looking for some basic guidelines.I really have come to love the readability of CTEs.
I just wanted to make sure I wasn't compromising performance.
I...
November 12, 2008 at 9:43 pm
Nope. Take a close look at the code. Everything appears to be using user-defined types. Those all need to be the base types for me to do...
November 12, 2008 at 3:24 pm
Here is a slightly different version doing the same thing.
DECLARE @test-2 TABLE
(ID INT, TXT VARCHAR (MAX))
INSERT INTO @test-2
SELECT 1,'A'
UNION
SELECT 2,'A'
UNION
SELECT 2,'B'
UNION
SELECT 3,'A'
UNION
SELECT 3,'B'
UNION
SELECT 3,'C'
declare @txt varchar(max);
select
...
November 12, 2008 at 3:19 pm
Are you trying to restore the master database from a SQL Server 2000 installation?
November 12, 2008 at 1:56 pm
Phil Auer (11/12/2008)
Two follow-ups:
1. Is removing the inactive entries on a full backup an option (which I would want to NOT select) in...
November 12, 2008 at 1:49 pm
There may be a better way, but I hope this helps:
DECLARE @test-2 TABLE
(ID INT, TXT VARCHAR (MAX))
INSERT INTO @test-2
SELECT 1,'A'
UNION
SELECT 2,'A'
UNION
SELECT 2,'B'
UNION
SELECT 3,'A'
UNION
SELECT 3,'B'
UNION
SELECT 3,'C'
declare @txt varchar(max);
select
...
November 12, 2008 at 1:30 pm
Phil Auer (11/12/2008)
1. Does a full backup in SQL Server 2000 remove inactive entries from the current...
November 12, 2008 at 1:16 pm
As you are using Management Studio, correct, you need to go to the options tab and select overwrite existing. You may also need to change the destination location for...
November 12, 2008 at 1:02 pm
If you have to have one stored proc in the Utilities database, then you will need to go with dynamic sql. I'd also look at writing your procedures so...
November 12, 2008 at 11:48 am
I had boolean logic hammered into me in a microprocessor design course/lab in college. Couldn't explain it well, but I sure do remember how it works.
November 12, 2008 at 11:14 am
Simple boolean error. Write the query to first return what you want to exclude.
After that, NOT the condition. If you expand that, you'll find that NOT(myLetter = 'A'...
November 12, 2008 at 10:57 am
Here is some test code for you to check out.
declare @SDate nvarchar(10),
@SDateNull nvarchar(10),
@DDate datetime;
set...
November 12, 2008 at 10:31 am
Appears that A.Account_Established_Date is not defined as a datetime, but perhaps nvarchar(10). Try this:
coalesce(A.Account_Established_Date, CONVERT(nvarchar(23), GETDATE(), 121))
November 12, 2008 at 9:51 am
I am assuming that in production you are running this against permanent tables, not table variables. If so, can you provide the DDL for the tables and the indexes...
November 12, 2008 at 9:42 am
Viewing 15 posts - 23,776 through 23,790 (of 26,490 total)