Viewing 15 posts - 21,166 through 21,180 (of 22,184 total)
Check the connection settings for both Management Studio & the App. You may have differences there that are causing the differences in execution time. Stuff like SET IMPLICIT_TRANSACTIONS, SET ANSI_PADDING.
Do...
January 23, 2008 at 5:50 am
True, I forgot about that. Thanks.
January 22, 2008 at 1:29 pm
That's one ugly debate you're entering into. Short answer is, parameterized queries function the same way as stored procedures. SQL Server will be able to reuse execution plans because it...
January 22, 2008 at 12:55 pm
You've got someone running transactions, sorts, or creating temporary tables with lots of data. We had users starting an ORDER BY query (no parameters, bad joins, bad search criteria) that,...
January 22, 2008 at 12:47 pm
In terms of a join, don't adjust anything. If the column is null, it doesn't equal anything and that row won't be returned which is as it should be.
January 22, 2008 at 12:15 pm
You've already laid out the issues pretty well. You can either save it in the database where:
[highlight]You get a good, clean, synchronized backup
When the user is deleted, you also easily...
January 22, 2008 at 5:52 am
You could use a view to combine the data from the four tables into a single select statement. 12,000 rows, depending on how much data is in them, is not...
January 22, 2008 at 5:44 am
I have to agree with Steve on this one. If you've had a conflict (and who hasn't) and that comes up in an interview, you need to be honest about...
January 22, 2008 at 5:27 am
this is a pretty regular debate. I usually fall back on business requirements to help decide.
The one technical issue that does help decide is backups. If you store the...
January 21, 2008 at 11:55 am
Well, there you go. Trigger is the trick then.
January 21, 2008 at 11:50 am
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')
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...
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...
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...
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...
January 21, 2008 at 6:17 am
Viewing 15 posts - 21,166 through 21,180 (of 22,184 total)