Viewing 15 posts - 19,246 through 19,260 (of 22,226 total)
Prior to 2005? Suffered.
There really wasn't an easy way to do it back then. The best approach was to have a natural key on the table then you wouldn't have...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 8:08 am
You mean like "You're right and I'm wrong" as I just recently posted?
😛
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 8:03 am
Sorry, you're right. It's leakage from the old days. SCOPE_IDENTITY specifically deals well with triggers. My bad.
I still like the OUTPUT approach becuase it works the same with one row...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 7:44 am
It doesn't work on 2005. Period. Full Stop.
It doesn't work terribly well on 2008.
Get Red Gate SQL Prompt. It works great on both and in Visual Studio (although it's a...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 6:50 am
I assume you already updated the statistics with a full scan?
After doing that... Can you post the execution plan & query? Some functions that worked well enough in 2k don't...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 6:47 am
Keith West (11/25/2008)
I'm not sure if this is the correct forum for this but here goes.
As good a forum as any. This is a huge topic, but I'll try to...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 6:43 am
If you're scripting database creation, two areas are going to cause you problems in terms of time. First, however big the database you create determines, on a given system, how...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 6:22 am
This sort of implies that you're only using the GUI to create tables. You can change the schema for the object created in the gui by accessing the properties window,...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 5:43 am
It really depends on your business needs. If you need to keep a history of the individual call itself, your method won't work. If all you care about is the...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 5:41 am
Matt's nailed it. If you went for the identity value on the table, you could get someone else's insert value. OUTPUT pretty much guarantees what you're getting. Still, in most...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 26, 2008 at 5:23 am
Huh... I'm kind of amazed that works. I just tested it. Not only can you do it, but it doesn't affect inserts or updates. Strange.
No, I can't imagine why you...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 25, 2008 at 12:24 pm
You can also open up the Properties window and set it there.
Best of all, try using TSQL. I think it's a heck of a lot easier to create tables there...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 25, 2008 at 10:51 am
For a single value from OUTPUT, I'm pretty sure it's free.
Where you might see a performance hit (or benefit, depending on how you define it) is when you define...
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 25, 2008 at 10:48 am
Garadin (11/25/2008)
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 25, 2008 at 10:43 am
That one was a hoot. The original problem definition was what, four lines. It grew to almost four pages of code by the time the guy was done adding things.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 25, 2008 at 10:40 am
Viewing 15 posts - 19,246 through 19,260 (of 22,226 total)