Viewing 15 posts - 61 through 75 (of 85 total)
You need to debug this sql using standard techniques. I suggest that the first thing you do is find out what the value of @i is in your while...
March 9, 2015 at 1:24 pm
Hi,
The time datatype isn't really for durations, it represents the time of day, so if I'm reading your data correctly it'll throw an error when converting 335 hours to...
March 9, 2015 at 12:43 pm
I think the following sentence is wrong or could be misinterpreted-
If you use an expression in the GROUP BY clause the same exact expression must be used in the...
June 7, 2014 at 1:16 pm
Hi, there is a mistake in the 'Stairway to T-SQL DML Level 6: The Basics of Sorting Data Using the ORDER BY Clause' - I'm sure this is as a...
June 7, 2014 at 12:00 pm
Could be a 3rd-party generic backup app with a SQL plug-in.
June 5, 2014 at 4:52 am
This was a head scratcher. I think that because you used a table variable in your example, you need to use an alias so that sql can make the...
May 30, 2014 at 7:23 am
@ErrorMessage doesn't get populated in the code shown. Can you show how that gets built?
May 29, 2014 at 9:43 am
I know you said 'combine into one query' but don't you really want to combine the results from the 2 separate queries into one result set?
declare @payables decimal(10,2), @ledgerbal...
May 29, 2014 at 3:40 am
I might be wrong but I think you may be trying to run the Windows Server Best Practice Analyser against the database when you really want to run the...
May 28, 2014 at 11:13 am
try sp_refreshview as a start.
I'm assuming when you say 'infinite' you mean a long time. Does it actually return with the data you need or does the query finish...
May 28, 2014 at 4:44 am
We need to see the columns in your trace.
The sp_trace_setfilter applies filters to numbered columns. That's the 10 and 13 part.
Did you create the trace with profiler...
May 27, 2014 at 8:43 am
Without seeing the correct table structures you have, it is impossible to give you a full answer BUT it looks like the UID is a unique surrogate key for...
May 23, 2014 at 9:50 am
what service pack are you on? There were historical issues that were fixed with updates from MSFT.
May 23, 2014 at 7:21 am
Ok, we are getting somewhere now. You have a data warehouse and it is running on data extracted from an OLTP database presumably.
Is your ETL process (extract,transform, load) process...
May 23, 2014 at 5:19 am
Viewing 15 posts - 61 through 75 (of 85 total)