Viewing 15 posts - 21,211 through 21,225 (of 22,219 total)
You don't have to use a trigger.
You could use the OUTPUT clause from the insert statement:
INSERT INTO TabA (Col1, Col2)
OUTPUT Inserted.Col1, Inserted.Col2 INTO TabB (Col1,Col2)
VALUES ('A','B')
"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
January 21, 2008 at 11:46 am
Because of the naming conventions (you're right, they're horrible), it's hard to tell exactly what's happening in the "generic" design. However, looking at your design, it sure seems to me...
"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
January 21, 2008 at 7:33 am
Congratulations.
Yes, you should learn tons & tons. When you've only yourself to rely on, you start learning things very, very quickly. Remember that automation is your friend. Spending an hour...
"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
January 21, 2008 at 7:16 am
The only time I had to do this I was using an application to take the output from a stored procedure and then save it to a file. I haven'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
January 21, 2008 at 7:05 am
Sandy (1/20/2008)
Hey Grant,Thanks for your trying,
did you get any way to solve this?
Cheers!
Sandy.
I'm sorry, no, becuase, I think like everyone else, I still don't understand what you're trying to accomplish...
"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
January 21, 2008 at 6:17 am
If I understand the question, you can simply use the Database Diagrams to see all the tables and their relationships. Assuming those relationships in your database are all through primary...
"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
January 18, 2008 at 10:32 am
D'oh!
Did Steve see?
"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
January 18, 2008 at 8:43 am
And following up on what Matt says, you want to know that too. Except for extreme circumstances (you're about to lose the house, the family is hungry, etc.) lying your...
"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
January 18, 2008 at 8:42 am
Bad news. I just ran this little in 2008:
goto MyLabel
exec sp_who
Mylabel:
It's STILL there. I'm planning on being in Seattle in November for PASS... I'll brink an Ozark Tire Thumper and...
"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
January 18, 2008 at 8:24 am
I agree. We work with XML a lot out in the applications, but the database mostly just returns regular old result sets.
However, if you really had to, in addition 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
January 18, 2008 at 8:13 am
You can run DBCC OPENTRAN('dbname') to verify that there are no open transactions. Run the Activity Monitor will also let you know if a transaction is still open in 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
January 18, 2008 at 8:09 am
Tell them the truth. Anything else will get you into trouble.
"I've been working for these insane college kids at this dot com and I can't stand it any more."
I used...
"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
January 18, 2008 at 7:55 am
Oh man, don't they have to kick you off the boards for 8 months like Don Imus if you use language like that?
"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
January 18, 2008 at 7:42 am
I still don't understand the problem fully, so I'm not sure I can help.
The second line is just a short cheat that's available with the "go" statement that makes it...
"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
January 18, 2008 at 6:01 am
The way I did it early in my career was answer as many questions for my peers as possible. Then I'd take the question & answer to the guys I...
"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
January 17, 2008 at 12:30 pm
Viewing 15 posts - 21,211 through 21,225 (of 22,219 total)