Viewing 15 posts - 48,826 through 48,840 (of 59,065 total)
A CTE is nothing more than a "derived table" just like a subquery in a FROM clause would be. The big differences between itself and a "derived table" is...
August 10, 2008 at 5:26 pm
Heh... spot on, actually. Sergiy is absolutely correct.
August 10, 2008 at 3:51 pm
So change the update code to insert code and change the join to be a WHERE NOT EXISTS or other exclusionary join.
August 10, 2008 at 2:22 pm
I do this same thing with a lot of mixed record files... they're usually fixed width instead of delimited, though. Anyway, I bring the whole file in as a...
August 10, 2008 at 2:13 pm
... and, with SQL Server 2000, we end up with this...
DBCC UPDATEUSAGE (0)
SELECT so.Name AS TableName,
si.Rows AS [Rows]
...
August 10, 2008 at 1:48 pm
So... hedging a bet against BOL and changing the code to something a bit more conventional, we end up with this...
DBCC UPDATEUSAGE (0)
SELECT so.Name AS TableName,
...
August 10, 2008 at 1:43 pm
I've found that most of the books are simply a slightly longer, more expensive regurgitation of Books Online. Most of the books I've read don't explain things like the...
August 10, 2008 at 11:40 am
It can't happen unless the trigger has code in it telling it to ignore the inserts from WinCC. Recommend you post the trigger code.
August 10, 2008 at 11:10 am
rbarryyoung (8/10/2008)
Gimme time to eat lunch, Jeff! 😛 🙂
Heh... hey! I need to know... does brother Darth have to take off the Chevy look-alike to eat?
August 10, 2008 at 11:07 am
Jeffrey Williams (8/10/2008)
Select object_schema_name(object_id) As...
August 10, 2008 at 10:56 am
Also, have 0x100 as the row identifier for both the teacher and the test page does not seem logical... are you sure about that?
August 10, 2008 at 10:48 am
It would be helpful if you posted the CREATE statements for the tables you're trying to target... 😉
August 10, 2008 at 10:46 am
Aye... that's more like it.
The only thing I'd be worried about is... do you need to update usage (DBCC UPDATEUSAGE) as you do in SQL Server 2000 to get accurate...
August 10, 2008 at 10:32 am
Not sure a recursive CTE is needed for this simple update problem... it appears that the prototype ID is simply being updated for each occurance in the temp table...
Sainath,
Thank you...
August 10, 2008 at 10:25 am
Howdy,
Since you're brand new, please take the time to read and follow the suggestions in the link in my signature... it'll help you get very high quality help much faster....
August 10, 2008 at 10:09 am
Viewing 15 posts - 48,826 through 48,840 (of 59,065 total)