Viewing 15 posts - 3,346 through 3,360 (of 4,087 total)
SJTerrill (1/23/2012)
January 23, 2012 at 12:09 pm
It's simple. Check out the following webpage on Precision, Scale, and Length.
Specifically it says that datatypes other than decimal have a fixed precision and scale. The scale for...
January 23, 2012 at 10:04 am
aitchkcandoo (1/20/2012)
January 23, 2012 at 7:57 am
CELKO (1/20/2012)
January 23, 2012 at 6:59 am
kevmck (1/20/2012)
January 20, 2012 at 1:25 pm
Fahey's logic above is what I used in coding my response, since that is how ages are typically calculated and age was specifically mentioned.
Drew
January 20, 2012 at 1:13 pm
aitchkcandoo (1/20/2012)
select fname
,lname
...
January 20, 2012 at 1:08 pm
I think that part of the problem is your database design. It sounds like your problem should be implemented using the geometry data type which has methods specifically to...
January 20, 2012 at 11:17 am
You just use a CROSS APPLY and replace the variable name with the column name.
SELECT *
FROM YourTable
CROSS APPLY (
SELECT c.value('b[1]', 'varchar(10)'), c.value('c[1]',...
January 20, 2012 at 8:48 am
I think the actual problem is the PRINT command. PRINT will only show a certain number of characters (I forget the number) and it sounds like you may have...
January 20, 2012 at 8:29 am
This should work.
select fname
,lname
,ssn
from ( select fname
...
January 20, 2012 at 7:50 am
Your XML is mal-formed. XQuery requires a single root element, which yours doesn't have and the end tag for your <C> element doesn't match. I've corrected the XML.
DECLARE...
January 19, 2012 at 1:46 pm
Lowell (1/17/2012)
--elapsed time/datediff
select [Years] = datediff(year,0,ET-ST)-1,
...
January 19, 2012 at 7:52 am
I think this will give you what you are looking for. It depends on the fact that the variables are set in left to right order. You can...
January 19, 2012 at 7:41 am
Sean Lange (1/18/2012)
January 18, 2012 at 1:55 pm
Viewing 15 posts - 3,346 through 3,360 (of 4,087 total)