Forum Replies Created

Viewing 15 posts - 1,651 through 1,665 (of 2,462 total)

  • RE: Storing Dynamic Query Output in Temp Table

    sarath.tata (4/6/2015)


    I can't use global temp variables as it differs per request.

    He said global temp table (e.g. ##temp). Global temp tables can be referenced inside/outside of a dynamic...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Named pipes Provider error

    The [5] would suggest that it's an authentication issue (access denied). E.g. The account that you are running SSRS on the remote server does not have rights to that server/DB....

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Using APPLY to make your queries DRYer

    Fabulous article. Very good read. 5 stars.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Spam topics

    Eirikur Eiriksson (4/3/2015)


    Alan.B (4/3/2015)


    Koen Verbeeck (4/3/2015)


    Alan.B (4/3/2015)


    I actually came into the "Anything that is NOT about SQL!" forum to ask this question but think it's appropriate here....

    How do you report...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: What you use for service account

    Domain accounts have worked just fine for me for many years.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Spam topics

    Koen Verbeeck (4/3/2015)


    Alan.B (4/3/2015)


    I actually came into the "Anything that is NOT about SQL!" forum to ask this question but think it's appropriate here....

    How do you report spam?

    At the top...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Spam topics

    I actually came into the "Anything that is NOT about SQL!" forum to ask this question but think it's appropriate here....

    How do you report spam?

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Is it worth splitting a stored procedure for performance reasons?

    I wonder if I split the procedure into different procedures depending on the user selected option. This way, the different procedures would have their own saved query plan.

    This is something...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Charindex issue

    It's worth noting SQLNAIVE, that Eirikur's solution will perform about 3X faster.

    I took your solution and put it into a scalar valued function like so:

    CREATE FUNCTION dbo.SVF_LOCATE_PATTERN_IN_STRING

    (

    @Expression VARCHAR(8000),

    @SearchString VARCHAR(10),

    @OccuranceNumber...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: SPROC with XML

    Do you have some DDL and test data so we can re-create and populate your two temp tables?

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: What is wrong with my query, conversion from binary version string.

    Nice!

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Formatting in a datetime parameter

    Understood. That's all I could think of, hopefully someone else chimes in.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Formatting in a datetime parameter

    Why is it doing this

    It has to do with how SSRS explicitly converts values. If the time is 00:00:00 it is assuming you want to treat the values as a...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: Where do I find the Report Path?

    I recently rolled off a project where we needed to extract some information from the report server catalog (e.g. the reportserver db). This function will includes the report path to...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • RE: SQL HTML

    Since nobody else is providing a solution I'll give it a try. I am simplifying the query against sys.columns because I don't really understand what you are doing. That said,...

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

Viewing 15 posts - 1,651 through 1,665 (of 2,462 total)