Viewing 15 posts - 2,491 through 2,505 (of 3,008 total)
-- Convert to int if a valid integer
select
TestData,
Output_INT =
case
when TestData like '-%[^0-9]%'then null
when TestData not like '-%' and
TestData like '%[^0-9]%' then null
whenTestData not like '-%' and
datalength(TestData) > 10then...
February 1, 2008 at 3:39 pm
You said you had a float to decimal converion that errors out. Maybe you could start by posting an example of that?
February 1, 2008 at 3:11 pm
This works Ok for me in SQL Server 2000 and 2005:
declare @var float
set @var = 132456789.12552346
select [Decimal] =cast(@var as decimal(11,2)), [Float] =@var
Results:
Decimal Float ...
February 1, 2008 at 2:58 pm
simsql (2/1/2008)
thanks for the reply...unfortunately it still errors out with the arithmetic overflow error.
this is really frustrating.
Don't be shy about posting the code that you want help with.
February 1, 2008 at 1:55 pm
It is better to go with the ID approach. If one of the codes changes, you only have to update a single row in one table. For example,...
February 1, 2008 at 12:52 pm
You should ask your teacher for help if you are having trouble with your homework.
February 1, 2008 at 9:41 am
Rob Reid (1/31/2008)
As for the role being deleted and re-created again, maybe but no-one will own...
January 31, 2008 at 4:17 pm
Maybe the error was caused by someone deleting the role and then creating it again.
Seems more likely than someone accidentally revoking permission on all tables to just that role.
January 31, 2008 at 8:33 am
The link below has a number of different examples. My own is, of course, the very best.:P
Creating a Formatted Calendar
There are several methods is this link that will return...
January 30, 2008 at 3:47 pm
Wayne West (1/30/2008)
Michael Valentine Jones (1/30/2008)
Not every vendor does that:
http://h71000.www7.hp.com/openvms/openvms_supportchart.html
OpenVMS VAX version 5.5-2 released in Nov 1991
Ending date for Prior Version...
January 30, 2008 at 2:15 pm
Microsoft is pretty quick to drop support on prior versions.
Not every vendor does that:
http://h71000.www7.hp.com/openvms/openvms_supportchart.html
OpenVMS VAX version 5.5-2 released in Nov 1991
Ending date for Prior Version Support-Sustaining Engineering:
At least through 2012,...
January 30, 2008 at 1:41 pm
It appears that the query is working exactly as described in SQL Server Books Online.
January 30, 2008 at 12:45 pm
JonJon (1/30/2008)
Weeks in a month for me mean...Number of weeks in a month.
Example: Week 1, Week 2, Week 3, Week 4
New Month:
Week 1 to Week 4
That tells absolutely nothing about...
January 30, 2008 at 12:25 pm
John Mitchell (1/30/2008)
But you can't divide into four filegroups anyway, since one of your tables is 39GB... unless you partition the table.John
He didn't say he was dividing into 4 filegroups.
He...
January 30, 2008 at 12:16 pm
AlexSQLForums (1/30/2008)
Michael Valentine Jones (1/29/2008)
January 30, 2008 at 12:12 pm
Viewing 15 posts - 2,491 through 2,505 (of 3,008 total)