Forum Replies Created

Viewing 15 posts - 6,931 through 6,945 (of 8,731 total)

  • RE: Subtotal when vendorcode changed.

    Jeff Moden (2/13/2014)


    Luis Cazares (2/6/2014)


    There's a simple reason of why would I do this on the front end. Formatting totals and subtotals is a lot simpler that way.

    If the front-end...

    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: Why sql does not follow the order of the instructions as I wrote, like in sql2000?

    That's the nature of T-SQL. T-SQL is a declarative language. It won't follow the instructions in the order that you write them, it will generate a plan to get the...

    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 help

    If you're updating all those rows, you should consider changing your scalar function to an inLine table-valued function. It will boost your performance.

    If you need help on how to do...

    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: Dynamic SQL Performance

    With so little information given, you could check this article: http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/

    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: Migrating from 2K to 2K8 - a few questions

    You can still use DTS on 2008 if you want to have more time for migration. You can migrate DTS to SSIS in a phase 2.

    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: Optimising the insert into temp table query

    You're still missing DDL for tables and indexes.

    Things might speed up if you remove the ORDER BY and change your WHERE clause to

    WHERE A.entitlement_function NOT LIKE '@@@%'

    However, more improvements can...

    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: New DBA + Bankruptcy = Career Doom?..

    SQL Guy 1 (2/12/2014)


    It is very strange to hear that a DBA applies for bunkropcy. We are highly paid professionals who receive much more than the average value in...

    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: Insert multiple rows in a table with a single select statement

    CROSS APPLY works similar to an [INNER] JOIN and OUTER APPLY works similar to LEFT [OUTER] JOIN. Maybe that will help you to understand it better.

    This article series by Paul...

    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 reject parallelism in a query ?

    You could use the query hint MAXDOP.

    Check the reference: http://technet.microsoft.com/en-us/library/ms181714.aspx

    Example F.

    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: Insert multiple rows in a table with a single select statement

    You're welcome.

    The question now is, do you understand how does it work? You should do it before implementing it into production.

    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: create a table with two primary keys.

    That's the difference of unique keys and primary keys. Primary keys will idenitfy a row within a table and they're essentially a preferred unique key. Unique keys will enforce uniqueness...

    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: Insert multiple rows in a table with a single select statement

    I'm not sure why would you want that. It seems like a weird requirement.

    As you should know, triggers use 2 pseudo-tables (Inserted & Deleted) from which you need to get...

    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: Top Talent Leaves

    Craig-315134 (2/12/2014)


    ... out in the real world managers are often rewarded for being politically well-connected.

    Sooner or later, the balance sheets catch up with them.

    That's one of the more positive...

    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: Sum a float column in SQL

    Why can't you sum a float column? float is a numeric data type and it can be used in SUM().

    Here's what I used to test.

    DECLARE @Appllication TABLE(

    IDint,

    Datedate,

    Costfloat,

    Fundingfloat

    )

    INSERT INTO @Appllication

    VALUES

    (1,'20140201', 10.52,...

    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: unpivot error conflicts with the type of other columns specified in the UNPIVOT list

    latitiacasta (2/12/2014)


    I Got the solution. i just convert int to decimal and its worked.

    Thanks for your help

    I was about to write that a conversion was all you need as 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

Viewing 15 posts - 6,931 through 6,945 (of 8,731 total)