Forum Replies Created

Viewing 15 posts - 2,491 through 2,505 (of 3,008 total)

  • RE: How to check if the column is int?

    -- 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...

  • RE: converting float to decimal

    You said you had a float to decimal converion that errors out. Maybe you could start by posting an example of that?

  • RE: converting float to decimal

    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 ...

  • RE: converting float to decimal

    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.

  • RE: To ID, or Not to ID, That is the Question...

    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,...

  • RE: plz help me out.....urgent

    You should ask your teacher for help if you are having trouble with your homework.

  • RE: ROLES Permissions got deleted

    Rob Reid (1/31/2008)


    Cheers for that SQL that will work a treat to output the correct GRANT permissions.

    As for the role being deleted and re-created again, maybe but no-one will own...

  • RE: ROLES Permissions got deleted

    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.

  • RE: Print The Calender

    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...

  • RE: The Mistake

    Wayne West (1/30/2008)


    Michael Valentine Jones (1/30/2008)


    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...

  • RE: The Mistake

    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,...

  • RE: Simple LEFT JOIN gives surprising result - Why?

    It appears that the query is working exactly as described in SQL Server Books Online.

  • RE: Dates Table in a DW

    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...

  • RE: How to divide 40GB database into 10 4GB Datafiles

    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...

  • RE: How to divide 40GB database into 10 4GB Datafiles

    AlexSQLForums (1/30/2008)


    Michael Valentine Jones (1/29/2008)


    Even if your data files are on different arrays, the backup speed will also be limited by the speed that it can write the backup file....

Viewing 15 posts - 2,491 through 2,505 (of 3,008 total)