Forum Replies Created

Viewing 15 posts - 9,166 through 9,180 (of 15,381 total)

  • RE: query performance

    kk1173 (3/5/2013)


    Yes, there is a stored procedure that build dynamic sql. This query above is just a PRINT of the sql that gets executed.

    If you look at the query, there...

  • RE: Creating an SQL Temp Table?

    meadow0 (3/5/2013)


    Hi Sean,

    The query itself works fine, I'm having an issue converting this into a temp table. I'm not even quite sure how temp tables work in theory, but I'm...

  • RE: query performance

    I assume these queries must be being generated "on the fly".

    In addition the scalar function you have year(adm_dt) which is also going to render that nonSARGable.

    It is impossible to offer...

  • RE: Creating an SQL Temp Table?

    What is the issue you are having? The query you posted looks like it should work fine, assuming the base table exists.

  • RE: Performing calculations on subtotals

    Hi and welcome to the forums. The best chance you have of people helping is if you first post ddl and sample data in a consumable format. Most people won't...

  • RE: T-Sql Logical Query

    This is commonly referred to as "Gaps and Islands". Do a site search on SSC and you will find lots of information about how to go about this type of...

  • RE: The Beer Cooler Thread

    call.copse (2/28/2013)


    American beer is not all bad these days so I hear, I enjoy a Brooklyn occasionally.

    That's funny. I am on the West side of the pond and I avoid...

  • RE: query performance

    kk1173 (3/5/2013)


    I have the following questions

    1. What does SARGable mean?

    SARGable means Search Argument-able. http://en.wikipedia.org/wiki/Sargable

    2. Wouldn't normalization decrease performance, since it would involve joining of multiple tables?

    That is why he said...

  • RE: Displaying Data From 3 SQL Tables On A Form

    gary.p.heath (3/5/2013)


    I have a program of my own, for my own use, written in Excel VBA that I want to rewrite in VB2010 Express using SQLCE.

    It currently displays a Form...

  • RE: Execution completed with errors

    From what you are describing the best approach would be to get rid of the cursor entirely. There are nowhere near enough details in your post to offer much detailed...

  • RE: Alter User Defined Data Type

    ajnubee (3/5/2013)


    I'm trying to alter a column in a table that corresponds to UDDT, this column has a primary key and it reference to foriegn key in other tables. What...

  • RE: Copying from SQLSMS grid, pasting in Excel, the word "NULL" is pasted!

    iglinka (3/5/2013)


    Dear geniuses at Microsoft: A NULL value does not equal the string "NULL" !!!!

    Those are two completely different things. Making users to a find/replace post-paste is ridiculous. ...

  • RE: Conditional join update

    Looks like Chris beat me this time. 😀

    It was hard to see that the tables were different because the formatting was non-existent and the tables all have crazy long names...

  • RE: Conditional join update

    You could do this in a single update statement instead of 3.

    UPDATE dbo.DatasiteConfigBMPANConfiguration

    SET EnergisationStatus = case when c.DataSiteConfigATableName = 'DataSiteConfigAEnergisationStatus' then b.EnergisationStatus else DatasiteConfigBMPANConfiguration.EnergisationStatus end

    , MeasurementClassRef = case when c.DataSiteConfigATableName...

  • RE: update a server by another server

    You might want to take a look at this series of articles about SSIS.

    http://www.sqlservercentral.com/stairway/72494/%5B/url%5D

Viewing 15 posts - 9,166 through 9,180 (of 15,381 total)