Viewing 15 posts - 436 through 450 (of 533 total)
Here is an example to get rid of everything after the first "." and before the third "\". You provided very little info, so I don't know if that's...
May 7, 2010 at 11:44 am
Again, you're making this way harder than it needs to be. Using triggers to hard code the table when you can simply use the capabilities of T-SQL to query...
May 7, 2010 at 11:35 am
Also, something to consider if you have a lot of servers would be to keep your updated list in the 'Registered Servers' tab. I started doing that with my...
May 7, 2010 at 10:35 am
shane94 (5/7/2010)
I'll probably just use an after insert...
May 7, 2010 at 10:31 am
What you're describing is bad design ... it's not normalized and it's going to be confusing and have performance issues for the life of the database. You should have...
May 7, 2010 at 9:19 am
Generally it's bad form to use *. Specify the column names so you don't end up having issues in the future.
May 6, 2010 at 4:33 pm
This article[/url] indicates that the bug with SQL Server 2000 that required the Outlook client to be installed for the missing dll's was corrected with Service Pack 1.
It's been years...
May 6, 2010 at 1:45 pm
I don't see a problem with the IsActive bit field. Why do you think that's where the problem lies and how sure are you of that?
It's a little hard...
May 6, 2010 at 10:46 am
Sounds like you just want to use an IDENTITY. Take a look in Books Online.
May 5, 2010 at 6:54 pm
declare @t_temp table
(
[lngReservationId] [int] IDENTITY(1000,1) NOT NULL PRIMARY KEY,
[intRoom] [nvarchar](15) NOT NULL,
[dteArrivalDate] [datetime] NOT NULL,
[dteDepartureDate] [datetime] NULL
)
insert into @t_temp (intRoom, dteArrivalDate, dteDepartureDate)
select 2501, '4/15/10', '4/25/10' union
select 2501, '4/25/10', '4/25/10' union
select...
May 4, 2010 at 10:56 am
Lynn Pettis (4/26/2010)
bteraberry (4/26/2010)
He said he wanted arewrite with out subquery or CTE
but yes, without that stipulation the CTE would be plenty easy.
Why would we want to do...
April 26, 2010 at 2:06 pm
He said he wanted a
rewrite with out subquery or CTE
but yes, without that stipulation the CTE would be plenty easy.
April 26, 2010 at 1:56 pm
SELECT t1.*,
t2.SOMEVALUE
FROM
(SELECT KEY1,
MAX(VAL1) MAX1,
SUM(VAL2) SUM2
FROM @TableVar
GROUP BY KEY1) t1
JOIN @TableVar t2
ON t2.Key1 = t1.Key1 and
t2.VAL1 = t1.MAX1
Be easier to use a true subquery though IMO.
April 26, 2010 at 11:26 am
Isn't that just a parse error that simply won't allow it to run because it's a non-existent object being referenced?
You can get around it with dynamic sql, but there may...
April 22, 2010 at 12:18 pm
How many IO channels do you have?
What kind of database are you expecting to run (OLTP/OLAP/hybrid)?
How many transactions per second?
How critical is your data ... how many seconds/minutes/hours can you...
April 22, 2010 at 11:22 am
Viewing 15 posts - 436 through 450 (of 533 total)