Viewing 15 posts - 736 through 750 (of 1,409 total)
You have changed some datetime values compared to your initial post/sample. If you alter the filters to include the (startdate and) enddate, both solutions will give the correct results
--Answer 1
SELECT...
August 27, 2013 at 5:15 am
When you install a SQL instance on a cluster and as a clustered instance, you first need to create a cluster group for each instance. Because this cluster group acts...
August 27, 2013 at 4:48 am
A more efficient way to get the opposite result is an OUTER JOIN and selecting the non-matching rows (WHERE ... IS NULL).
SELECT SUM(Boiler1)
from @Energy_Centre_Availability ECA
LEFT OUTER join @Energy_Centre_Boiler_Maintenance_Schedule ECBMS
on ECA.t_stamp...
August 27, 2013 at 4:35 am
Would this do?
select *
from @Energy_Centre_Availability ECA
inner join @Energy_Centre_Boiler_Maintenance_Schedule ECBMS
on ECA.t_stamp >= ECBMS.StartDate
and ECA.t_stamp < ECBMS.EndDate
August 27, 2013 at 3:57 am
Using the code Koen Verbeek provided and applying this to your table definitions, will result in this code:
;WITH CTE_PhoneStartsWith6 AS
(
SELECT contact_link.cs_seqno, system.cs_no, contact.last_name, contact.first_name, phone_number
FROM contact_link
INNER JOIN site
ON contact_link.site_no =...
August 27, 2013 at 2:49 am
I can't reproduce your error on my system. I'm able to created the function with your code (changing the ALTER to CREATE). I'm also able to alter this function with...
August 27, 2013 at 2:24 am
This is hard to tell because your description is too vague.
You could build both solutions, set the statistics on (set statistics time on; set statistics io on;
) and execute both...
August 27, 2013 at 12:17 am
Benki Chendu (8/26/2013)
repair_rebuild didn't fix any errors.what must be the next step?
This thread is from a few years ago.
Please start a new thread and post your error messages encountered by...
August 26, 2013 at 1:28 am
Here you have the code where each column is a part of the calculation used to get the desired display in the final column. In your own code you only...
August 23, 2013 at 8:40 am
evdb68 (8/23/2013)
Where can I find the command or setup which will backup all databases and log...
August 23, 2013 at 7:28 am
Did you setup the linked server using the main administrator credentials? Can you test is the linked server is working at this moment?
August 23, 2013 at 7:22 am
Hi Gail,
I think "anoop.mig29" means (correct me if I'm wrong):
Restore f1 as a logshipping target and then restore t1 and t2 with the logshipping process. Then manually restore f2 on...
August 23, 2013 at 6:52 am
anoop.mig29 (8/23/2013)
Now in loshiping it allows to restore t3 even if i had restored f2 first(with standby,replace)
why the difference
I don't know about the built-in logshipping feature because we use...
August 23, 2013 at 6:14 am
ChrisM@Work (8/23/2013)
I wouldn't want to bet on that "cannot", HanShi. Perhaps "cannot easily" 😀
You are absolutely right, but I wanted to prevent a possible "Aah, so it can be done!...
August 23, 2013 at 6:05 am
Viewing 15 posts - 736 through 750 (of 1,409 total)