Viewing 15 posts - 601 through 615 (of 902 total)
Gut feel is that this is a case of parameter sniffing, and if the user can enter anywhere between 1-10 parameters its most likely that the engine isnt chosing an...
November 2, 2012 at 2:23 am
Like Dwain enjoying the discussion, so following it with interest.
In regards to the ACID I frequently get asked what it means in interviews and I always go blank on what...
November 2, 2012 at 2:08 am
Its a good solution by BriPan,
although you can get away without doing the lookup of the max ItemCategoryId, as long as you can be sure that the Identity column...
November 2, 2012 at 1:39 am
To My knowledge the only way to do it is using xp_sendmail, the only other way would be to run an xp_cmdshell to call an external SMTP program, or write...
November 1, 2012 at 6:48 am
You might want to check the retention period (Retention Period Units) to and see what its set to, se this as a guide http://msdn.microsoft.com/en-us/library/bb895205.aspx
November 1, 2012 at 5:52 am
Definately looks like a job for a recursive CTE in order to build the Path then a simple update after, this is a simple test rig for a select, but...
November 1, 2012 at 5:13 am
This looks like you're trying to build a hierachy list using a while loop.
Can you provide some sample data for #HirNodes, as I think you're using a sledgehammer to crack...
November 1, 2012 at 4:40 am
You could set the MaxErrorCount property on the For...Each Loop to be a large number, this would then carry on until it reached error limit.
Though you also probably want to...
November 1, 2012 at 4:10 am
Using the Floor/Ceiling with an accounting fudge (*100)/100.00 get it to work.
(
Policy char(1)
,Claim Int
,Job Char(1)
,Excess Decimal (19,2)
)
INSERT into #PolClaim
Values ('A',1,'E',50.00)
,('A',1,'F',50.00)
,('A',2,'X',50.00)
,('A',2,'Y',50.00)
,('A',2,'Z',50.00)
;
With PolicyClaimLines
AS
(
Select Policy,Claim,count(*) LineCount
From #PolClaim
Group by Policy,Claim
)
Select
Pol.Policy
,Pol.Claim
,Job
,Excess
,Excess/LineCount
,Row_Number() OVER (Partition...
November 1, 2012 at 3:46 am
ChrisM@Work (10/31/2012)
October 31, 2012 at 9:29 am
What does SELECT PatientKey = P.PatientKey, AgeKey = PM.AgeKey ... mean - in a SELECT query that is? are the assignments just ignored?
Its practiacally the same as doing : Select...
October 31, 2012 at 9:27 am
True, UK postal codes are a nightmare to handle, thats why most people will try and push it up into the UI layer and rely on specialised Reg-ex validation procedure...
October 31, 2012 at 9:00 am
Mark Dalley (10/31/2012)
October 31, 2012 at 7:54 am
GilaMonster (10/31/2012)
CELKO (10/31/2012)
or better:zip_code CHAR(5) NOT NULL
CHECK (zip_code LIKE '[0-9][0-9][0-9][0-9][0-9]')
As long as whatever that is is intended for US only, now and always. I...
October 31, 2012 at 7:53 am
Want a cool sig (10/31/2012)
Must be an addin my SSMS 2008/2012 let's me type ok.
same here I'm using SSMS Tools in 2008 and SSMSBoost on the SSMS 2012 both allow...
October 31, 2012 at 7:35 am
Viewing 15 posts - 601 through 615 (of 902 total)