Viewing 15 posts - 1 through 15 (of 17 total)
Very good suggestion, thank you 🙂
January 8, 2011 at 2:49 am
You can add source and destination table's schema as parameter of SP and use there in code.
January 7, 2011 at 5:13 am
I have tried it for 2005, I think it will work for 2008 also.
January 6, 2011 at 6:36 pm
It is always easy to just run the query rather than do it from SSMS Maintenance Plan Wizard.
January 6, 2011 at 6:35 pm
Try this query:
Select
Produit,
Count(Compte),
Count(CASE Date WHEN '01/01/2010'...
December 27, 2010 at 3:08 am
I think this query will help you
select PatientID,first_treatment_id,TreatmentStartDate,TreatmentEndDate,STUFF((SELECT ',' AS "text()",
TreatmentID AS "text()"
FROM patient P
where P.PatientID =B.PatientID and P.TreatmentID <> B.first_treatment_id
FOR XML PATH('')),1,1,'') as Other_treatment_Ids from (select PatientID,Patient.TreatmentID as...
December 27, 2010 at 1:01 am
i get error 'RETURN statements in scalar valued functions must include an argument.'
when try to create to that function.
December 15, 2010 at 12:21 am
if shorttime in hh:mm format then just used:
select CAST((cast((datediff(minute,[EmpSIN],[EmpSOut])-datediff(minute,[FirstIn],[FirstOut]))/60 as varchar(10))+ ':' + cast((datediff(minute,[EmpSIN],[EmpSOut])-datediff(minute,[FirstIn],[FirstOut]))% 60 as varchar(10))) AS TIME),
December 11, 2010 at 6:42 am
This setting may help you
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'transform noise words', 1
RECONFIGURE
GO
December 11, 2010 at 12:41 am
This setting may help you
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'transform noise words', 1
RECONFIGURE
GO
December 11, 2010 at 12:17 am
You can use where exist i think that will be faster
select * from Table a where exists(select 1 from V_LOAD_COMBINATION where V_LOAD_COMBINATION.Date = a.Date and V_LOAD_COMBINATION.Country = a.Country )...
December 10, 2010 at 1:59 am
I think you can also use cross apply for it.
SELECT dbo.invend.fpartno, A.FirstEmail,B.SecondEmail,C.ThirdEmail
FROM dbo.invend INNER JOIN
CROSS APPLY(SELECT top 1 dbo.apvend.fcemail as FirstEmail from dbo.apvend.fcemail AF...
December 8, 2010 at 10:30 am
Yes, right that will return 31 with that input.
December 8, 2010 at 9:35 am
Viewing 15 posts - 1 through 15 (of 17 total)