Forum Replies Created

Viewing 15 posts - 3,136 through 3,150 (of 7,636 total)

  • RE: Help with SUM

    Lynn Pettis (3/30/2009)


    RBarryYoung (3/30/2009)


    Hey, Lynn got to use HAVING! Wohoo! 😛

    I think that we ought to award a prize anytime someone gets to use HAVING legitimately. 😀

    You know,...

  • RE: Training Management System

    Why don't you tell us what features you already have. And also tell us what your architecture and design is. Then I am sure that we can answer...

  • RE: Extracting XML File that is stored as a text data type

    Nice example, JohnG. Mind if I quote it in my Blog sometime?

  • RE: Joining issues

    swmsan (3/31/2009)


    Now in my report i need to find total blood tests done by the doctors

    Select Doctor_ID, Patient_ID, Count(*) as [Count]

    From Table1 as t1

    Inner Join Table2 as t2...

  • RE: Joining issues

    Like this:

    Select Doctor_ID, Patient_ID, Count(*) as [Count]

    From Table1 as t1

    Inner Join Table2 as t2 ON t1.Doctor_ID = t2.Doctor_ID

    And t1.Patient_ID = t2.Patient_ID

    Where t2.Diabetes = 'No'

    ...

  • RE: Do DBAs Still Read Techincal Books?

    Tony Davis (3/30/2009)


    ...the bleeding from one of Tony's editing sessions only lasts for three or four days, so don't worry.

    Don't worry, Jeff. I'll offer you as much help as...

  • RE: Help with SUM

    Hey, Lynn got to use HAVING! Wohoo! 😛

    I think that we ought to award a prize anytime someone gets to use HAVING legitimately. 😀

  • RE: Excel Bulk Insert

    I think that you just need to install Jet. Check Microsoft, there should be a free download & install.

  • RE: FTP from Sql Server stored procedure

    I can't see the procedure from here. Could you please show it to us?

  • RE: group by but not group by

    justanewone (3/30/2009)


    Hi All,

    I have been asked to generate some code which will produce a list of employee activity by day and create a rota from it... Please bear in mind...

  • RE: Setting up Service Broker on a Mirrored Database

    OK, this is straight from Remus Rusanu himself:

    You must enable broker before the mirroring session is enabled. You should

    first check if the broker is enabled in the first place

    (sys.databases.is_broker_enabled). If...

  • RE: insert XML data to SQL server two tables

    Lutz: XML datatype is SQL Server 2005. You'll need to use OPENXML instead.

  • RE: Execute a table of statements

    dlongnecker (3/30/2009)


    edit: in light of this, I'd definately go with the XML string concat method I originally proposed

    Agreed. I am in the process of switching over to it myself...

  • RE: Double Insert?

    longobardia (3/30/2009)


    To prevent dupes also you could wrap your insert in "if not exists" t-sql statement with Begin/End.

    ie:

    if not exists ( select * from xxxx where stageid = @stageID and...

  • RE: Code Formatting

    Here's what I have so far that works:

    [ code ] for SQL,

    [ code="csharp" ] for C#

    [ code="vb" ] for VB.net

    [ code="xml" ] for XML

    bit i still have to use "&...

Viewing 15 posts - 3,136 through 3,150 (of 7,636 total)