Viewing 15 posts - 2,371 through 2,385 (of 3,711 total)
You have to tell SQL2005 that it can use the CLR using the surface area configuration tool
August 4, 2006 at 6:04 am
CAST(YourField AS TINYINT)
or
CONVERT(TINYINT,YourField)
Byte can hold values from 0 to 255 so the SQL Server equivalent is TINYINT
SMALLINT is a signed 16 bit integer -32768 to 32767
INT is a signed 32...
August 4, 2006 at 6:03 am
SELECT SUM( CAST(weight * points AS DECIMAL(10,2)) / CAST(100.00 AS DECIMAL(10,2)) )
August 3, 2006 at 10:24 am
In other words it allows you to use worst practices
August 3, 2006 at 7:25 am
I think you are running into the ISNUMERIC issue where it returns 1 even when the number is not strictly numeric.
ISNUMERIC allows certain non-numeric characters to be identified as numbers.
E...
August 3, 2006 at 6:26 am
So basically your management are asking you to run a marathon but have chopped off your legs?
August 3, 2006 at 2:14 am
If all your view does is a select of all columns with no WHERE clause then the only reason I can think of for doing so is to provide a...
August 3, 2006 at 2:11 am
Are you talking about UK counties?
There are only 86 counties in the UK so it is probably quicker and cheaper to derive the data yourself. http://www.abcounties.co.uk/counties/map.htm
August 2, 2006 at 10:08 am
Are you talking about UK counties?
There are only 86 counties in the UK so it is probably quicker and cheaper to derive the data yourself. http://www.abcounties.co.uk/counties/map.htm
August 2, 2006 at 10:08 am
You need to allow for
CHAR(9) = TAB
CHAR(10) = LF (Line Feed)
CHAR(12) = FF (Form Feed)
CHAR(13) = CR
DECLARE @ControlCode VARCHAR(1) , @WhereClause VARCHAR(3) SET...
August 2, 2006 at 7:59 am
Years ago I started off prefixing tables with tbl, views with vw etc but moved away from doing that when I found I needed to replace a view with a...
July 31, 2006 at 12:45 pm
July 31, 2006 at 9:59 am
If you look in sysaltfiles within the master database check the size * 8/1024 for the size in MB.
It certainly works for TEMPDB however, if your database was built without...
July 31, 2006 at 9:33 am
SELECT * FROM syscolumns where id=object_id('dbo.yourtable')
July 31, 2006 at 9:11 am
Viewing 15 posts - 2,371 through 2,385 (of 3,711 total)