Forum Replies Created

Viewing 15 posts - 916 through 930 (of 8,731 total)

  • RE: Order of Indexed columns - does it matter

    My advice is not to trust what others tell you. Just do a simple test and review the behavior using the execution plans.
    First, let's create some sample data:

    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?

    Ed Wagner - Wednesday, October 11, 2017 5:13 AM

    Thom A - Wednesday, October 11, 2017 1:42 AM

    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?

    Thom A - Tuesday, October 10, 2017 11:45 AM

    Jeff Moden - Tuesday, October 10, 2017 11:14 AM

    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: Options to run BCP in SQL Server

    If BULK INSERT is not an option, you could try using SSIS or some othere ETL tool that your company is already using. I would still try to push to...

    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: Comparing 2 functions for any differences in the result set.

    ffarouqi - Monday, October 9, 2017 12:38 PM

    Luis - Can you provide me the same for a month to month...

    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: Comparing 2 functions for any differences in the result set.

    TheCTEGuy - Friday, October 6, 2017 4:53 AM

    Hey Luis - Please review the code below - will this perform better from...

    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: from today to last one month data

    adisql - Thursday, October 5, 2017 11:56 AM

    Steve,

    I am looking for ... from exactly 1 month ago through right now.
    can 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: from today to last one month data

    sgmunson - Thursday, October 5, 2017 11:33 AM

    adisql - Thursday, October 5, 2017 11:27 AM

    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: Find out the number of records in all those tables where a given field appears

    You got the first paragraph right.
    About the approximate number of rows, I'd say that the number is pretty accurate. The reason for this warning is that some tables have...

    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: from today to last one month data

    adisql - Thursday, October 5, 2017 11:12 AM

    Hi,

    Need to select last one month( from today to last 30 days ).

    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: Comparing 2 functions for any differences in the result set.

    This migh also work.

    DECLARE @Start datetime = DATEADD(YY, DATEDIFF(YY, 0, GETDATE()) - 20, 0);

    WITH
    E(n) AS(
      SELECT n FROM (VALUES(0),(0),(0),(0),(0),(0),(0),(0),(0),(0))E(n)
    ),
    E2(n)...

    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: Comparing 2 functions for any differences in the result set.

    This would generate a test script for all dates from 20 years ago till today. It uses a YTD range.

    DECLARE @Start datetime = DATEADD(YY, DATEDIFF(YY, 0,...

    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: Comparing 2 functions for any differences in the result set.

    ffarouqi - Thursday, October 5, 2017 8:47 AM

    Recently, we've done some optimizations to the functions and now the BI Manager has tasked...

    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: Getting the same value in last 3 or digits when using Datetime2 data type in SQL Server 2012

    Avi1 - Thursday, October 5, 2017 8:02 AM

    Luis Cazares - Thursday, October 5, 2017 7:15 AM

    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: Convert the string value to multiple rows in sql server

    kbhanu15 - Thursday, October 5, 2017 7:28 AM

    Thank you so much.

    Do you understand the solution proposed?

    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 - 916 through 930 (of 8,731 total)