Forum Replies Created

Viewing 15 posts - 4,051 through 4,065 (of 8,731 total)

  • RE: trouble with SP

    The following thread might give you an idea.

    http://www.sqlservercentral.com/Forums/Topic1585850-391-1.aspx

    Your update seems wrong and overcomplicated. Fixing the join, this would work.

    UPDATE e

    SET [contentScore1] = s.contentScore1

    from [PearsonScores].[dbo].ViewScoresView s

    INNER JOIN [HSBCP_DB].[dbo].[ExamInfo] e ON...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Persisted computed column not acting very persisted...

    mister.magoo (10/9/2015)


    Lynn Pettis (10/9/2015)


    I tried posting the hard way to do it but can't from here. So, replace the call to dbo.GetInvoiceIDFromBillID with the following to see what I...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    Eirikur Eiriksson (10/9/2015)


    Ed Wagner (10/9/2015)


    DonlSimpson (10/9/2015)


    anthony.green (10/9/2015)


    Ed Wagner (10/9/2015)


    crookj (10/9/2015)


    Ed Wagner (10/9/2015)


    happygeek (10/9/2015)


    Deadlock victim!

    Cost

    Expense

    Revenue

    Tax

    Tariff

    Price Increase

    Pint

    Pitcher

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Persisted computed column not acting very persisted...

    This might seem weird, but have you tried to recreate the table?

    I kept getting an error which seemed to be replicating your problem saying that the column couldn't be indexed...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Whats the count???

    I couldn't find the explanation on why does the TRY...CATCH would reset the value of @@ROWCOUNT.

    From BOL

    Statements such as USE, SET <option>, DEALLOCATE CURSOR, CLOSE CURSOR, BEGIN TRANSACTION or COMMIT...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Sorting working differently after moving from SQL Server 2008 to 2012

    The ORDER BY clause is not valid in views, inline functions, derived tables, and subqueries, unless either the TOP or OFFSET and FETCH clauses are also specified. It hasn't been...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How to make Soundex functions include the first letter

    I'm not sure if this helps.

    I sure had fun replicating the SOUNDEX function which I then changed it into the DIFFERENCE function, all by keeping it as an inline table-valued...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: calculate number of days

    I guess you could at least post your sample data in a consumable format (CREATE TABLE & INSERT statements) if you want some coded help.

    If not, I can tell you...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Pivoting

    I have no idea on the rules to get to the output. Where does the FormOrder comes from? Are the 2 input tables related? or are they just 2 set...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How to create a view dynamically thru a procedure

    And by the way, the CREATE VIEW must be the first statement in a query batch. The IF and any other things that you might want to include must be...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How to create a view dynamically thru a procedure

    Why are you using a BEGIN with your view? Views are a single statement and they can't include a BEGIN...END block.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How do I populate the int column with a sequence of numbers but has to be sorted by another field.

    You've got basically the same answer twice in different threads. Have you tried it?

    This was the original thread: http://www.sqlservercentral.com/Forums/Topic1726364-2799-1.aspx

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Query question - Joins??

    I just wanted to add, as a suggestion, that you should use table alias in your queries. It will make your queries shorter and easier to identify column names. And...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Dense rank substitute in SQL Server 2000

    You could use the Quirky Update to get the desired result. If you don't want to mess with it, another option would be to use a well written cursor (not...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: ISO 8601 - confusion with rendering the date

    If you're going to work with timezones, you need to use the datetimeoffset data type. This means that you can't rely on GETDATE() because you won't be giving enough information.

    That...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2

Viewing 15 posts - 4,051 through 4,065 (of 8,731 total)