Forum Replies Created

Viewing 15 posts - 3,976 through 3,990 (of 8,731 total)

  • RE: Do I have the update that would include this patch/fix?

    Considering that this fix is included since version 10.50.1797.0, you should have it.

    Reference: https://support.microsoft.com/en-us/kb/2534352

    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: Use of Ceiling

    Degradable (10/23/2015)


    Alan

    The select on the table using my formula above is simple enough and returns the following.

    PPRC_NumberPPRC_CurrencyPPRC_WholesaleWholesalePPRC_WOverride

    1340055GBP76.8776.99000

    1360025GBP137.98137.99000

    What I am looking to do, is take the cost PPRC_Wholesale and do 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: Syntax on a join

    drew.allen (10/23/2015)


    You're trying to call a UDF DATEPART defined under the tblCall schema. Unless you've defined your own DATEPART function under this schema, I suspect what you want is...

    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: help with running total script

    Read this article: http://www.sqlservercentral.com/articles/T-SQL/68467/

    It explains the problem that you're facing and gives different alternatives. It's missing the 2012+ solutions, but based on the forum that you posted, you shouldn't care...

    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: Syntax on a join

    This:

    tblCall.DATEPART(yyyy,Call_Date)

    Should be this:

    DATEPART(yyyy,tblCall.Call_Date)

    You qualify the column, not the function.

    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: Need help with a query that returns only rows that meet specific condition

    rourrourlogan (10/22/2015)


    Thank you Everyone!

    Luis! I was trying to add more codes to this section would the syntax look something like this?

    SELECT *

    FROM #SampleData

    WHERE UniqID NOT IN (SELECT UniqID

    ...

    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: Need help with a query that returns only rows that meet specific condition

    ranjitdaljitmand (10/23/2015)


    Hmm, I am slightly confused here because as per my understanding this wiil be a simple or rather a basic query to fetch those code...

    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: Import file characters into a various tables

    Try this: https://www.simple-talk.com/sql/ssis/ssis-basics-using-the-conditional-split/

    Do you need more guidance?

    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: Are the posted questions getting worse?

    Andrew P (10/22/2015)


    RE: the answers in this thread

    You guys are joking, right? right guys? :blink:

    Now I'm not sure if I read the question correctly 😀

    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: Need help with a query that returns only rows that meet specific condition

    So many ways to do this, that I can't decide the best option.:-D

    Here are 2 ways.

    CREATE TABLE #SampleData (

    UniqID int,

    Code varchar(10)

    );

    INSERT...

    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 we find columns that have default constraints

    Use the sys.default_constraints system view.

    SELECT d.name, OBJECT_NAME( d.parent_object_id) , COL_NAME(d.parent_object_id, d.parent_column_id)

    FROM sys.default_constraints d

    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: What's wrong with this query ? Why am I not getting the correct output

    Lynn Pettis (10/22/2015)


    mw112009 (10/22/2015)


    FOUND THE MISTAKE.. ALL Set ....

    Select object_name(SI.object_id) as tab_name,

    ( Select c.name from sys.columns c where object_id = SI.object_id AND c.column_id = SIC.column_id ) as [index_col_name]

    from

    sys.indexes...

    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: Group by doesnt work

    You need to either include it in the GROUP BY or use it in an aggregate function. Otherwise, there's no logic to which value should be shown.

    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 Pivot, Passing Temp Table Variables to Dynamic SQL

    farfel (10/22/2015)


    Yes it does, thank you. Regardless though, we have found it best practice to make those variables nvarchar(max). Lazy, but effective.:-)

    I wouldn't call it lazy if...

    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: Import file characters into a various tables

    I'd probably go with a Conditional split transformation which will have subsequent derived column transformations and destinations for each table.

    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 - 3,976 through 3,990 (of 8,731 total)