Forum Replies Created

Viewing 15 posts - 541 through 555 (of 8,731 total)

  • RE: Is there a maximum number of joins allowed in SQL 2016?

    sgmunson - Thursday, May 17, 2018 2:56 PM

    GBimberg - Thursday, May 17, 2018 2:24 PM

    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: Is there a maximum number of joins allowed in SQL 2016?

    Lynn Pettis - Thursday, May 17, 2018 2:27 PM

    That can kill your performance.  If you are joining between them, each must...

    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: Is there a maximum number of joins allowed in SQL 2016?

    GBimberg - Thursday, May 17, 2018 12:41 PM

    I have reports that are between 6 and 100 User DefinedFunctions joined...

    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: Using sp_executesql with nvarchar parameters: incorrect syntax near '='

    ktrammen - Thursday, May 17, 2018 10:42 AM

    Joe, yes, that will of course be another issue when the issue with "

    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: Set default permissions for new stored procedures?

    vnatt - Thursday, May 17, 2018 5:20 AM

    Is there a way to configure it so that any new stored procedures that 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: Does derived value not exist in another column?

    This might be an option if more than one day is mentioned in Notes.

    CREATE TABLE Logs( Date DATETIME, Notes VARCHAR(100))

    INSERT INTO dbo.Logs
    (
     ...

    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: Msg 102, Level 15, State 1, Procedure AuditView, Line 1 Incorrect syntax near 'AS'

    The procedure might be in a trigger for one (or all) of the tables that you're deleting.
    BTW, we're in 2018, use TRY...CATCH blocks instead of that horrible error handling...

    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: Stored procedure running in loop is taking time to load . Is there any alternate way to run in a single execution ?

    ScottPletcher - Tuesday, May 15, 2018 10:52 AM

    For testing a datetime/datetime2 column for the current day, you should do this:

    --good way
    cr.CreatedDate >=...

    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: Stored procedure running in loop is taking time to load . Is there any alternate way to run in a single execution ?

    If most of your code looks like this, I suggest that you hire a consultant that can not only improve the code but that will teach you how to fix...

    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: Return 2 lines of text from a row

    jamesstirling01 - Friday, May 11, 2018 9:01 AM

    My SQL query is: SELECT * FROM [Support_DB].[dbo].['Job info$'] WHERE [Job Completed?]= 0 AND [Attended...

    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: Can I do this in SQL? maybe SSIS or Stored Procedure?

    You can do it with either SSIS or T-SQL (stored procedures).
    First you need to import into a staging table using SSIS data flow or T-SQL bulk insert. For...

    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: Table Variable Parameters, Stored Procedures and Performance

    pef - Friday, May 4, 2018 4:53 PM

    Lynn Pettis - Friday, May 4, 2018 4:05 PM

    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: Friday the 13th

    Luis Cazares - Monday, May 7, 2018 8:28 AM

    ibraheem.alkilanny - Monday, May 7, 2018 12:02 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: Friday the 13th

    ibraheem.alkilanny - Monday, May 7, 2018 12:02 AM

    The value of