Viewing 15 posts - 15,826 through 15,840 (of 22,211 total)
wschampheleer (2/10/2010)
Thank you for the compliment.
Unfortunately, I believe your new version is no improvement: you still need to insert the old ID if you want to retrieve it using the...
February 10, 2010 at 6:50 am
sql_lock (2/10/2010)
In my example, no (as sql is just changes the pointers to the meta-data). But to answer with the original post in mind then yes you would need to...
February 10, 2010 at 6:26 am
Huge topic. Someone should write a book.
Execution plans, in short, are how SQL Server determines how it will access your data. They are reused if the query you're submitting matches...
February 10, 2010 at 6:10 am
Test, test, test. Introducing constraints into a system that had none previously will, in all likelihood, lead to errors. Go slow. Try to identify the areas of data that are...
February 10, 2010 at 5:59 am
You can only insert into one table at a time as far as the TSQL commands are concerned. But as the last post showed, if you wrap these inserts in...
February 10, 2010 at 5:55 am
sql_lock (2/10/2010)
You could try using the Switch command.
ALTER TABLE [dbo].tbl1 SWITCH to [dbo].tbl2
Don't you also have to set up partitioning between these tables first? I'm asking because I've never used...
February 10, 2010 at 5:53 am
Another option is to use the OUTPUT clause to capture the generated ID's and then use them in the inserts in the second table.
February 10, 2010 at 5:52 am
You can get different execution plans if the connection settings are different. Check the ANSI settings in particular.
February 10, 2010 at 5:44 am
Based on the query, you're probably getting pretty severe table scans. But I agree with the previous post, make sure your statistics are up to date.
Can you post the execution...
February 10, 2010 at 5:42 am
David Portas (2/10/2010)
Grant Fritchey (2/10/2010)
Without the trigger and in the arc design, it's possible to have a comment be designated for more than one object
Not if you use a compound...
February 10, 2010 at 5:23 am
David Portas (2/10/2010)
Grant Fritchey (2/10/2010)
February 10, 2010 at 5:12 am
Dave Winchester (2/10/2010)
Thanks for the reply. Your explanation has helped me (mentally) greatly. I understand the Person/Location etc...relationship better now.
With regards to my problem of the Comments tables for...
February 10, 2010 at 4:29 am
weitzera (2/9/2010)
They have identical costs in the query plan.
Yeah, they frequently do. You have to remember that costs in query plans are just estimates, not real numbers. They can be...
February 10, 2010 at 4:20 am
I'm on board with Welsh Corgi, make sure you're testing your backups.
Other than that, it seems like a reasonable plan. I'd just run the log backups for 24 hours though....
February 10, 2010 at 4:03 am
Roy Ernest (2/9/2010)
This is the first time I got insulted here. Feels kind of strange... But what ever.....
February 10, 2010 at 3:50 am
Viewing 15 posts - 15,826 through 15,840 (of 22,211 total)