Viewing 15 posts - 8,236 through 8,250 (of 9,641 total)
Do you need the data passed out as columns or rows?
I would do something like this:
[font="Courier New"]SELECT
projectname,
COUNT(*) AS open_issues_for_180,
SUM(CASE
WHEN datesubmitted >= DATEADD(DAY, -90, GETDATE()) THEN 1
ELSE 0
END) AS open_issues_for_90,
SUM(CASE
WHEN datesubmitted...
July 26, 2008 at 4:20 pm
IN the script you can change the location of the file to a valid location on the server. To stop a trace you use sp_trace_setstatus @trace_id = n, @status...
July 26, 2008 at 12:17 pm
I think you can do that with an IIF like this:
=Sum(IIF(FilterField=FilterValue, SumField, 0))
July 26, 2008 at 11:52 am
The issue could be with the empty values. You may want to check for empty string in the Derived Column conversion and set that to Null.
July 26, 2008 at 11:44 am
You can also use Profiler to get a Deadlock Graph.
July 26, 2008 at 11:39 am
In order to schedule a trace you would need to setup a server-side trace and put it in a SQL Server Agent job. You can setup the trace in...
July 26, 2008 at 11:31 am
Sounds like you may be headed the right direction. Glad I could offer a little help.
July 25, 2008 at 2:52 pm
It sounds like there is a replacement string in the xml like > (>) that is not terminated correctly. You can put a data viewer on the stream from...
July 25, 2008 at 2:44 pm
Do you have a date column in the table?
What is the structure of the table?
What have you tried so far?
You want the Count() function in the select and in the...
July 25, 2008 at 2:06 pm
Your biggest problem is that you are using Functions against columns in the where of the subquery which will cause a table scan. You should first look at how...
July 25, 2008 at 2:02 pm
aye_taur (7/25/2008)
July 25, 2008 at 10:16 am
As much as I hate it you can use the Client Access (iSeriesAccess) ODBC or OLEDB provider within SSIS for your connection. At my current position I no longer...
July 25, 2008 at 10:02 am
You cannot do a Select From storedprocedure. You can convert the stored procedure to a table valued function and then you can join on the table valued function. ...
July 25, 2008 at 9:59 am
IN 2005 you use sp_send_dbmail as xp_sendmail is how SQL Mail worked which, as the error says, is not supported on 64-bit. Check out sp_send_dbmail in BOL.
July 25, 2008 at 9:55 am
Viewing 15 posts - 8,236 through 8,250 (of 9,641 total)