Forum Replies Created

Viewing 15 posts - 24,826 through 24,840 (of 26,486 total)

  • RE: Warning Message....

    And, what perchance, is this warning message?

    😎

  • RE: Multiple Table Calculation

    Do the following:

    round((s.ScoreAdjTotal - c.CourseRating) * 113 / c.CourseSlope,1,1) -- The additional 1 at the end will truncate instead of round (read BOL)

    😎

  • RE: Multiple Table Calculation

    I put in my own referential integrity. You will need to adjust my code below for the fourth table you added. Also, mathematically, the result of your equation...

  • RE: Multiple Table Calculation

    gtan018 (5/6/2008)


    I have three tables that I wish to perform a simple query calculation. What would be the best option for my situation? I would need to calculation:

    (ScoreAdjTotal) - (CourseRating)...

  • RE: Derived Column Expressions

    This is done in T-SQL, but the principle is the same:

    declare @phonenum varchar(25)

    set @phonenum = '(555) 555-1212'

    select replace(replace(replace(replace(@phonenum, '(', ''), ')',''), ' ',''),'-','')

    😎

  • RE: CPU 100%...

    I found a way to connect to the Windows Internal Database (SQL Server 2005 Embedded Edition (SSEE)) with thanks to Wikipedia!

    It has to be done local to server, and you...

  • RE: Poor Performance 64-Bit vs. 32-Bit, or 1 CPU vs. 2 CPU

    Dumb question, but why are you using a cursor to move data from one table to another instead of a set-based query?

    😎

  • RE: Disallowed constructs while creating Index on a view.

    Not sure if this is totally correct, but this is the view I'd start with.

    create view Vw_name

    as

    select

    cust.customerID

    from

    dbo.customer cust

    inner...

  • RE: [SQL-DMO]You must use SQL Server 2005 management tools to connect to this server.

    Looks like you are trying to connect to SQL Server 1005 using SQL Server 2000's Enterprise Manager or Query Analyzer. Just like the messge says, you need to use...

  • RE: Conversion failed when converting the varchar value 'XX' to data type int.

    Could we see the DDL for the table?

    😎

  • RE: Disallowed constructs while creating Index on a view.

    John Mitchell (5/6/2008)


    Try turning the subquery into a derived table and joining to it.

    John

    Derived tables are not allowed in indexed views either.

    😎

  • RE: Dynamic Column Mapping

    I have been reviewing the code you provided, and was wondering how you then execute and delete the resultant package you have created? I am thinking that this may...

  • RE: Boost TSQL query code

    Also, i have a question :

    when i write ml.year=2008, itΒ΄s because "2008" is a variable that iΓ‘m introduced before running the script.

    Do i must write the extended date like...

  • RE: Boost TSQL query code

    Jeff Moden (4/30/2008)


    luissantos (4/30/2008)


    an also, i' am not understand very well the result of :

    ml.data >= dateadd(yyyy,datediff(yyyy,0,'20080101'),0) and ml.data< dateadd(yyyy,datediff(yyyy,0,'20080131') + 1,0)

    Lynn... I'm thinking that one is all yours πŸ˜€

    Geez,...

  • RE: Boost TSQL query code

    luissantos (4/28/2008)


    Hello Lynn

    thanks for your reply.

    I test my tsql code with some index that you mencioned, but the maximum performance for this TSQL is about 6,30 minutes. Is too much

    Also,...

Viewing 15 posts - 24,826 through 24,840 (of 26,486 total)