Viewing 15 posts - 8,236 through 8,250 (of 9,643 total)
It is not a best practice to add index and join hints to queries in SQL Server. With each release the Query Processor has gotten better and usually makes...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 28, 2008 at 6:57 am
I don't think it would be too difficult to do in VB.NET. You could write a CLR procedure that handles this. I really think MS missed the boat...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 27, 2008 at 11:18 am
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...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 26, 2008 at 4:20 pm
Why to you want to use SQL Server's mail system to send the file then? There are ways in .NET and I'm sure Java as well to send email...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 26, 2008 at 3:59 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...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 26, 2008 at 12:17 pm
I think you can do that with an IIF like this:
=Sum(IIF(FilterField=FilterValue, SumField, 0))
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
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.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 26, 2008 at 11:44 am
You can also use Profiler to get a Deadlock Graph.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
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...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 26, 2008 at 11:31 am
Sounds like you may be headed the right direction. Glad I could offer a little help.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
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...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
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...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
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...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 25, 2008 at 2:02 pm
aye_taur (7/25/2008)
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
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...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 25, 2008 at 10:02 am
Viewing 15 posts - 8,236 through 8,250 (of 9,643 total)