Viewing 15 posts - 8,311 through 8,325 (of 9,643 total)
2 changes:
Count(c.ID)/14 as 'Count' to IsNull(Count(c.ID), 0)/14 will give you 0's
Move sea.ID = 148 to the where clause as euc.SeasonID = 148
Here is the code with 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 22, 2008 at 9:31 am
It sounds like moving the files made it so SQL Server cannot verify them before appending the new differential backup.
My advice would be to do new full backups then do...
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 22, 2008 at 9:08 am
Are all the procs in the same schema? The easiest way to fix this is to set GRANT Execute On SCHEMA :: [schema_name] to [principal_name].
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 22, 2008 at 9:01 am
The way I am reading the procedure you are only processing zip codes for TX, FL, and LA. Is this what you want? If so there are a...
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 22, 2008 at 8:52 am
Login to the server. Access to the database with Select only on those 4 tables.
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 22, 2008 at 8:17 am
Jeff Moden (7/21/2008)
Jack Corbett (7/21/2008)
I think this may do what you want (I created some dummy data):
Jack... after you get done building it, change all the Addresses to 0 for...
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 22, 2008 at 7:42 am
The toolman has that right. You could even compile that into a DLL, in which you would have other commonly used custom functions in SSRS, and reference the DLL...
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 22, 2008 at 7:38 am
kenksoftware (7/22/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 22, 2008 at 7:36 am
Duh! That's what I get for ASSuming that the variable name and column names are consistent.
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 21, 2008 at 7:15 pm
No you do not because of the FULL OUTER JOIN between the inserted and deleted tables. Notice he is using the CASE statement to determine if it is an...
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 21, 2008 at 1:21 pm
I actually just re-read an article today that recommends using JOINS instead of subqueries. Here is the link, http://www.builderau.com.au/program/sqlserver/soa/Optimise-SQL-Server-queries-with-these-advanced-tuning-techniques/0,339028455,339283995,00.htm
You can actually eliminate the reference to the tblUsers table altogether...
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 21, 2008 at 1:17 pm
Are you using a select nvarchar(max) in SSMS to try to debug/check the dynamic sql string? Perhaps the UI Is truncating it.
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 21, 2008 at 1:08 pm
Yeah it definitely would be hard to maintain when you make schema changes.
I need to evaluate the logging I was planning, although I and my co-worker were going...
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 21, 2008 at 1:01 pm
Have you checked for blocking while the long query is running? I know you said that your interactive queries are the only things running, but I can't think of...
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 21, 2008 at 12:51 pm
The code you have posted looks like it should work to avoid the divide by 0 error. Are you sure you are always getting a value in the divisor...
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 21, 2008 at 12:48 pm
Viewing 15 posts - 8,311 through 8,325 (of 9,643 total)