Viewing 15 posts - 6,031 through 6,045 (of 14,953 total)
Alvin Ramard (11/16/2010)
GSquared (11/16/2010)
Chris Morris-439714 (11/16/2010)
WayneS (11/16/2010)
Chris Morris-439714 (11/16/2010)
Thanks guys. I'll leave him be, he's had enough prompting.Think he'll PM you again for more help?
No idea, Wayne.
That really freaked...
November 16, 2010 at 11:07 am
It means you lost the connection. Could be anything from a bad cat-5 cable to a faulty router, any number of things.
November 16, 2010 at 11:05 am
Chris Morris-439714 (11/16/2010)
WayneS (11/16/2010)
Chris Morris-439714 (11/16/2010)
Thanks guys. I'll leave him be, he's had enough prompting.Think he'll PM you again for more help?
No idea, Wayne.
That really freaked me out, it...
November 16, 2010 at 11:02 am
There's a sys.indexes system view you can select from. Use Object_Name() on the ParentObjectID column.
November 16, 2010 at 10:57 am
Ah. That makes sense then. Forgot about those.
November 16, 2010 at 6:38 am
Try something like this, see if it does what you need:
SELECT
Employeenumber,
Name,
CASE WHEN SUM(totalminutes) > 480 THEN 480
...
November 16, 2010 at 6:32 am
Learner1 (11/15/2010)
try it..
CREATE TABLE [SAL](
[name] [varchar](12) NULL,
[salary] [int] NULL
)
select * from SAL
INSERT INTO sal ( ...
November 16, 2010 at 6:24 am
Same thing, just replace 'ABCD' in either one.
November 16, 2010 at 6:19 am
I'm curious as to why a loop is needed here at all.
It looks to me like what you're doing is taking all of the rows in one table, based on...
November 16, 2010 at 6:16 am
Paul White NZ (11/15/2010)
GSquared (11/15/2010)
If you use OUTPUT INTO in the delete, the insert will be part of the same transaction.
How do you know the target table does not have...
November 16, 2010 at 6:06 am
If you have a trace running that captures that kind of thing, it's pretty easy to find out.
If you have a DDL log, again, it's easy to find out.
If you...
November 15, 2010 at 1:28 pm
A separate copy, like Gail mentioned, is what I've recommended in the past. If what the analysts are doing has value to the business, the RoI on hardware for...
November 15, 2010 at 1:27 pm
The trigger fires as part of the insert, so the error value would be after the trigger, I think.
Test it. Put a trigger on a test table that has...
November 15, 2010 at 1:25 pm
Honestly, this kind of thing becomes trivial to solve with a proper Calendar table. Anything else requires the kind of complex math you're looking at here.
November 15, 2010 at 1:18 pm
If you can post actual table names and structures, this can be done in a single query pretty easily.
November 15, 2010 at 1:15 pm
Viewing 15 posts - 6,031 through 6,045 (of 14,953 total)