Forum Replies Created

Viewing 15 posts - 2,206 through 2,220 (of 5,504 total)

  • RE: Need to Distinct t Particular column result

    First we'd need to know what you define as being "distinct"...

    The sample data and your expected output is not clear enough on that.

    My guess would be that this is a...

  • RE: sql for branch Wise report

    Josh,

    based on your other thread you already have a DynamicCrossTab on almost the same data.

    Just change how the temp tables are populated and adjust the column names in your dynamic...

  • RE: Violation of PRIMARY KEY constraint 'OHEM_PRIMARY'. Cannot insert duplicate key in object

    What would also help if you simply could post the full error message. It usually tells the table and primary key that's violated.

    And I don't think it's an issue with...

  • RE: Pivot Query Modifications

    joshtheflame (1/4/2011)


    🙂 Lutz I want 'Holiday' to appear in the column value along with the header 'Sunday' actually in place of '0' 🙂

    Oh, I finally got it...

    In that case you'd...

  • RE: String Manipulation

    AndrewSQLDBA (1/4/2011)


    Thanks Lutz

    That was it, worked perfectly. I did have to modify the length from 11 to 10.

    Andrew SQLDBA

    *Ouch* Can't even count such a small string manually anymore. Is that...

  • RE: SQL to find duplicates

    Use a subquery to count the occurrence of Address fields and link that back to your original table for Address values with count > 1.

  • RE: String Manipulation

    Assuming you can ensure the data structure you could use omething like LEFT(StringValue,LEN(StringValue)-11)

    Both, 'large.jpg' and 'small.jpg' are 10 char long +1 char for the minus sign.

  • RE: CLR to do a HTTPS Push to SMS Gateway

    Jonathan Kehayias (1/4/2011)


    I wouldn't use SQLCLR for this, I would use Service Broker and External Activation to solve this problem. You can find out more about the External Activator...

  • RE: csv files

    If there are values within a column containing commas, how do you know what values belong to one column and what values belong to the next/previous one?

    Is there any chance...

  • RE: Are the posted questions getting worse?

    GSquared (1/4/2011)


    ...

    He basically asserted that there appears to be a geographic concentration on the subject of eggregious copyright infringement in the world of coding. He merely said that a...

  • RE: parsing email id from string

    Jeff Moden (1/4/2011)


    ...

    As a bit of a side bar, I'm constantly amazed at how some folks apparently just don't give a rat's patooti as to how their code looks and...

  • RE: Goals

    Steve Jones - SSC Editor (1/4/2011)


    For those of you setting weight goals, I'd discourage that. I think you ought to work on your health, and trying to get to the...

  • RE: Pivot Query Modifications

    joshtheflame (1/4/2011)


    Lutz,

    Thank you for appreciating the way I've posted my data. Actually I've observed that ppl do not bother to provide scripts which is ethically wrong. Its the place where...

  • RE: Goals

    Here's mine:

    Goals for 2010:

    Professional

    * Certification: has not been on my list, since recruiting over here does not pay that much attention to it. And if one does, I usually answer...

  • RE: Loading XML Data into SQL Server (SQL Spackle)

    Anil Maharjan (1/4/2011)


    hello all,

    Well i am just wondering do this similar type of script works for the complex type node too for xml file.

    which we can find the XML...

Viewing 15 posts - 2,206 through 2,220 (of 5,504 total)