Viewing 15 posts - 25,156 through 25,170 (of 26,490 total)
Actually, I just read the EULA for SQL Server 2005 Standard Edition, and you can install multiple instances on the same computer. I think that was a change from...
March 6, 2008 at 10:34 am
Here is some code that works:
declare @DateOfBirth datetime
set @DateOfBirth = '1959-08-29 09:59:00.000'
select datediff(yy, @DateOfBirth, getdate()) - case when dateadd(yy,datediff(yy, @DateOfBirth, getdate()), @DateOfBirth) > getdate() then 1 else 0 end
set @DateOfBirth...
March 6, 2008 at 10:15 am
I want my point back too....
Here is the code as run with results:
declare @DateOfBirth datetime
set @DateOfBirth = '1959-08-29 09:59:00.000'
select DATEDIFF(yy, @DateOfBirth, GETDATE()) union all
select FLOOR(CONVERT(decimal(9, 2), DATEDIFF(d, @DateOfBirth, GETDATE())) /...
March 6, 2008 at 10:01 am
I don't have time right now to work on this, but I can give you a suggestion. When building a dynamic sql statement, build it in steps. Select...
March 6, 2008 at 8:00 am
One reason is isolation of databases. If you want to query between databases in multipke instances, you have to use linked servers or similiar query methods. On larger...
March 6, 2008 at 4:30 am
I just wish the computer would do want I want, not what I tell it to do. It would be sooo much easier.
:w00t:
March 6, 2008 at 4:26 am
O.D.A.A., Now that's a good one!
:w00t:
March 5, 2008 at 10:32 am
Should also remember that 8 years of experience does not always equate to 8 years of experience; it could be 1 year of experience 8 times.
:hehe::cool:
March 5, 2008 at 9:30 am
It also looks like you are using SQL Server 2005, so when considering indexes, also look at covered indexes using included columns. Remember there is a trade off using...
March 5, 2008 at 8:29 am
Sorry, but this doesn't quite make sense:
I need to be able to a row that contains the name of the consultant even if the main SELECT statement returns a empty...
March 4, 2008 at 2:21 pm
You can put a primary key on a TVF as long as it isn't an inline TVF. We would need to see the DDL for the functions to be...
March 4, 2008 at 1:56 pm
Not sure either, and with no DDL, sample data, and expected results I can't test what I have, so give this a try with no promises that it will work:
with...
March 4, 2008 at 1:45 pm
You know, I didn't even notice that, but with the lack of formatting, it was easy to miss.
😎
March 4, 2008 at 1:03 pm
I don't think you are going to get much better improvement. Also, it is possible a nonclustered index on [State] and [InActive:] columns may have been a better choice...
March 4, 2008 at 12:20 pm
Viewing 15 posts - 25,156 through 25,170 (of 26,490 total)