Viewing 15 posts - 256 through 270 (of 1,479 total)
This trace flag helped me when I was working with SQL Server 2000 about 8 years ago. Since I've stopped working with SQL Server 2000, I did not have...
January 20, 2013 at 8:12 am
You can use varchar(XXXX) or char(XXXX). Instead of XXXX you can specify a number up to 8000. The number represents the number of characters that you'll have. ...
January 16, 2013 at 8:10 am
You can do it with DDL trigger. DDL trigger can be created on server level and on database level, but each level has different events that fire the trigger....
January 9, 2013 at 2:07 am
There is a good chance that for large tables the server will do an index scan, but it depends on few more things. For example is the value that...
December 26, 2012 at 9:00 am
The original request was that if both of the values are 99, then we have to exclude that line. It is enough that one of the columns won't be...
December 26, 2012 at 8:31 am
Makes perfect sense. I was missing something:-)
Adi
edited: Sorry, just had a look at it. It does seems to work. According to the where clause one of the...
December 26, 2012 at 7:38 am
Am I missing something? Seems to me that this should work:
select cStudentID, cCurrentGradeCode, cAnticipatedGradeCode
from #temp
where cCurrentGradeCode <> '99' or cAnticipatedGradeCode <> '99'
Adi
December 26, 2012 at 6:35 am
When SQL Server has to read very small tables, it many times uses table scan. In such small size, it doesn't make a difference.
Adi
December 26, 2012 at 6:25 am
Most chances are that it will get used much more. Partly because it is needed for SQL Server 2012's always on and partly because now the secondary database can...
December 26, 2012 at 3:32 am
I'm sorry, but I think you are going to extremes here in your argument discussion with GSquared.
Just because you CAN add a persisted computed column and index it force a...
December 19, 2012 at 6:55 am
I don't think that the error that you got is an error that is generated from SQL Server. I couldn't find an error with similar text and you didn't...
December 19, 2012 at 4:49 am
anthony.green (12/19/2012)
Use COUNT(*) from the INSERTED table instead.
But if the...
December 19, 2012 at 3:42 am
I have to admit that it is very hard for me to define the term SARGable. Before we started our discussion in my opinion SARGable criteria was one that...
December 19, 2012 at 2:45 am
Can you explain the logic that is used to get the values for the computed columns?
Adi
December 17, 2012 at 2:08 pm
At this point we both agree that when variables are used in a query and the variables got there values in the same scope as the query, the server will...
December 17, 2012 at 2:04 pm
Viewing 15 posts - 256 through 270 (of 1,479 total)