Viewing 15 posts - 11,746 through 11,760 (of 14,953 total)
On the point of halving the row versions:
Let's say you have a table with people's names in it, and LastUpdate (datetime) and LastUpdateBy (varchar) columns.
So, you issue a command to...
January 6, 2009 at 1:35 pm
J (1/6/2009)
I might be missing something, but how about creating a sorting key when populating the table and the selecting from table order by sortkey...
If you're going to add an...
January 6, 2009 at 1:25 pm
What you did is just fine. Saying "thanks, that helps" pretty much closes the thread. (Then, of course, some overly helpful person like me will come along and...
January 6, 2009 at 1:24 pm
It's important to know about cursors. Mainly so you can fix them when other people have mistakenly used them for ... well ... almost anything.
January 6, 2009 at 1:21 pm
I would think, if the database were in 80, that "CROSS APPLY" would get an error message instead of the thing about table hints. I don't have access to...
January 6, 2009 at 1:13 pm
You can use SSIS to automate output for files, including automatically naming the files. That's probably the best way to do what you want.
SSIS can run each script and...
January 6, 2009 at 1:06 pm
foxjazz (1/6/2009)
declare @c1 varchar(50), @c2 int
declare @rowcount
declare @sel cursor
set @sel = cursor for
select c1,c2 from t1
open @sel
fetch...
January 6, 2009 at 1:02 pm
You could also set up a hierarchy table that would include all codes that fall under any other code. That would give you a way to quickly determine which...
January 6, 2009 at 12:45 pm
I'd use Gail's second script to find all the tables that don't have PKs, then review them and figure out what PK each one needs.
Some might have an ID column...
January 6, 2009 at 12:38 pm
When you say you want differences, what exactly do you mean?
Do you just mean rows that exist in one that don't exist in the other? Do you mean rows...
January 6, 2009 at 12:34 pm
The only things I can think of that power failure would do that would improve performance like that would be to flush the execution cache, which might get rid of...
January 6, 2009 at 12:29 pm
You say you need to create some indexes very urgently, but how can you be sure indexes are what you need if you don't know how to create them?
What problem...
January 6, 2009 at 12:25 pm
If the UDFs are the ones that you define a table variable for the output (called "multi-value UDFs"), then that's probably the biggest source of the performance problem. Those...
January 6, 2009 at 12:22 pm
If you can guarantee that the only way for this data to be updated is by procs, then including the update date and user in the procswould be better, since...
January 6, 2009 at 12:18 pm
Knowing the differences on these can make a big difference in your ability to read execution plans, so I suggest looking all of them up in Books Online, which has...
January 6, 2009 at 12:02 pm
Viewing 15 posts - 11,746 through 11,760 (of 14,953 total)