Viewing 15 posts - 1,681 through 1,695 (of 1,838 total)
For SQL Server 2005, you can use the following query:
SELECT t.name AS table_name, i.name AS index_name, SUM(ps.row_count)
FROM sys.tables t
INNER JOIN sys.indexes i ON t.object_id...
November 20, 2008 at 12:06 pm
Honestly, from my experience, a 100 row table won't be a major factor in performance. If it's never expected to grow to more than 100 rows, it should be...
November 20, 2008 at 9:58 am
I have to agree with AndyD that most of the spam I get is boring stuff, like hot stock tips or Canadian pharmacy drugs. Of course I have a...
November 7, 2008 at 7:02 am
The thing I'm struggling with on this one is that in my mind both CHAR and NCHAR are fixed width datatypes, so it seems to me that both should have...
November 6, 2008 at 9:56 am
Why did they have to make the answer really be a response to 2 separate questions? UNION ALL is not a workarround for a column defined as TEXT datatype....
November 6, 2008 at 7:45 am
Actually, even better, use the SCOPE_IDENTITY() function, it will only reference the last identity value created within your stored procedure in the current session.
@@Identity is current session but any scope
IDENT_CURRENT()...
November 4, 2008 at 3:28 pm
Actually ALZDBA has the more correct answer, since the original post wanted the client side version, not the server side version. If your laptop has Management Studio, an easy...
November 3, 2008 at 1:57 pm
is it possible for you to use SQL Profiler? It can capture the actual values of the parameters that are getting passed to your stored procedure in an EXEC...
October 30, 2008 at 9:59 am
do you do any math on the AnnualizedReturn value after it is calculated here? If not you can just CAST this entire CASE expression as VARCHAR. If you...
October 30, 2008 at 9:51 am
yes, if I'm understanding you right. To be more specific:
select
from (select top 1 column1, column2, column3, column4
...
October 30, 2008 at 9:34 am
I haven't done any trials on this scenario, but my initial thoughts would be that TOP1 in this case would have ever so slightly negative or no effect on performance,...
October 30, 2008 at 9:27 am
If you need to join the results of this query to something else, it may be easiest to set it up as a derived table (a subquery in your...
October 30, 2008 at 9:18 am
Wayne (10/27/2008)
We need to implement this solution without any...
October 30, 2008 at 9:15 am
could you take a different approach and do something like this:
select TOP 1 column list
from tablename
order by datecolumn DESC, timecolumn DESC
I suppose it depends on how this query is being...
October 30, 2008 at 9:00 am
richard (10/30/2008)
I have however added an order on the form which displays the results of the query...
October 30, 2008 at 8:48 am
Viewing 15 posts - 1,681 through 1,695 (of 1,838 total)