Forum Replies Created

Viewing 15 posts - 1 through 15 (of 2,893 total)

  • RE: Advice on best approach?

    jghali (11/4/2015)


    I personally like the Normalized way (no redundant data)

    Have everything organized in separate tables... As for queries, If you have the right structure and indexes, it shouldn't be a...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: UPDATE with OUTPUT CLAUSE

    ChrisM@Work (11/4/2015)


    drew.allen (11/4/2015)


    The OUTPUT clause is very limited. You can either output the data directly to the client application or you can output your data to a table/table variable....

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: UPDATE with OUTPUT CLAUSE

    You cannot use sub-query in OUTPUT, but you can do it with intermediate "always empty" table.

    Here is self-explanatory example:

    create table src (col int)

    go

    insert src select 1

    insert src select 2

    go

    create table...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: CASE Statement

    As some others suggest: your question and setup is not clear at all.

    Could you please provide DDL for your tables and some test data with example of required output. It...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: xml path approach for appending rows horizontally...

    You need to bring your JOINs to the sub-query FOR XML PATH.

    If you provide DDL for your objects and some test data setup I could give you exact and details...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to get multiples rows and columns data into 1 single row - Help please?

    celine.godines (10/28/2015)


    ...

    And would like to get my results in 1 row with the Customer then 2 columns for Products, 6 columns for Name/Value/Charges/NewCharges.

    Could anyone help or am I being...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Trigger and email notification

    Lowell (10/28/2015)


    Sergiy (10/27/2015)


    I would strongly recommend not to run sending emails or any other kind of external operations from a trigger.

    And glitch in the functionality beyond SQL Server control may...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Query Result Snapshots

    What do you by "snapshot results from a query"?

    Do you want to save results?

    You can extract it out by BCP or SSIS or you can save it in another dedicated...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Guidance on best string manipulation technique (image included)

    What OP is asking is next to impossible to achieve.

    Using Jeff Moden splitter may not be the best in this case, as having few more "x" in the strings...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Distinct performance

    Why would you wrap single insert statement in transaction?

    There is no reason to use nolock hint, untill you want some records to be missed or duplicated.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Replication between different sites and domains

    Yes, you can:

    https://support.microsoft.com/en-us/kb/321822

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Parsing large varbinary fields

    What I need is a count of each of the 3 or 4 character OpCodes - they are usually found between position 40 and 73 on a given line. (I...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Remote connection / query

    I hope that following link should help you to understand what is "remote connection"

    https://msdn.microsoft.com/en-US/library/ms191464.aspx

    As for SSMS, go to Tools/Options select "Query Execution" in the left panel.

    You will see that...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to do do data massage for this scenario

    Have you heard about data normalization?

    I would suggest to do exactly that.

    Store data in the database table as supposed to; report/display it as you wish (comma separated list or...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Query help

    ...what I want to do is add course date from a courses table linked to the appointment

    ...

    ... each gp practice is returned multiple times as a row is returned...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 1 through 15 (of 2,893 total)