Forum Replies Created

Viewing 15 posts - 2,356 through 2,370 (of 2,452 total)

  • RE: Are the posted questions getting worse?

    Lynn Pettis (8/20/2009)


    Jeff Moden (8/20/2009)


    "You can lead a horse to the water..."

    http://www.sqlservercentral.com/Forums/Topic774023-149-1.aspx

    Persistant was she to get you to write bad code, hmm.

    persistant...most defintely :w00t:

    see here:

    http://www.sqlservercentral.com/Forums/Topic774787-149-1.aspx

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Many to Many Check

    dunno...why dont you tell us:-D

    does it give you the results you require?

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Many to Many Check

    And another option if this is the case:

    select

    cust.CustomerPK,

    loc.LocationPK

    from

    dbo.Customer cust cross join dbo.Location loc

    except

    select

    custloc.CustomerPK,

    ...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Many to Many Check

    if you are saying that all customer / locations combinations should be in table CustomerLocation and you want to find the combinations that are "missing" then please try this

    SELECT ...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: How to get the root node in a table

    Apologies for the link:

    pls try this

    Forum Etiquette: How to post data/code on a forum to get the best help

    by Jeff Moden

    http://www.sqlservercentral.com/articles/Best+Practices/61537

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: How to get the root node in a table

    Forum Etiquette: How to post data/code on a forum to get the best help

    by Jeff Moden

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    hope this helps

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Upsizing Access DB to SQL Server DB error

    Have you tried the Microsoft SQL Server Migration Assistant for Access...free download.

    http://www.microsoft.com/downloads/details.aspx?FamilyId=D842F8B4-C914-4AC7-B2F3-D25FFF4E24FB&displaylang=en

    addendum:

    I see there is a specific version for SQL 2008

    SQL Server Migration Assistant 2008 for Access V4.0

    http://www.microsoft.com/downloads/details.aspx?FamilyID=133B59C2-C89C-4641-BEBB-6D04476EC1BA&displaylang=en

    Overview

    Microsoft SQL Server...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: How to Flatten Table Resultset

    ....

    The goal is to have the report formated as follows:

    cusid name product1 product2 ...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: EAV Design Questions

    [º Considered how hard it would be to explain to the people actually using it.

    Seth, this comment maybe sums it up....no matter how clever you are in designing a system...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Selecting columns from big table

    santosh.shrestha (8/17/2009)


    I don't want to use SSMS. I want a query because I want to use it not only in MSSQL 2005, but may be in My SQL and Oracle...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: How to Flatten Table Resultset

    another method that concatenates row values

    SELECT p1.CusId,

    ( SELECT replace(type, ' ', '') + ','

    ...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Selecting columns from big table

    you can also use Query Designer in SSMS (Ctrl+Shift+Q)

    Add your table

    select the first column by clicking on its name (not the check box)

    hold down shift key

    go to last column and...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Get products ordered by category order

    How “deep” does your hierarchy go?...you have given just two levels.

    If you have many more nested levels, such as this for example:

    Shirts

    ..........Sports

    ....................Tennis

    ..............................Men

    ..............................Women

    .....................Golf

    ..............................Men

    ..............................Women

    ...........Casual

    Then I think it gets a little bit more...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Date Range

    bpowers (8/15/2009)


    How would I get this to work?

    SELECT EMP_ID, DATEDIFF(MONTH, START_DATE, END_DATE) AS HISTORY

    FROM EMP_HISTORY

    WHERE EMP_ID = '253'

    DATEDIFF(m, start_date, end_date)

    Suggest you look at BOL for DATEDIFF..and test out various date...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: SQL DUPLICATE COLUMNS NEED HELP

    you're welcome

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

Viewing 15 posts - 2,356 through 2,370 (of 2,452 total)