Forum Replies Created

Viewing 15 posts - 1,756 through 1,770 (of 2,452 total)

  • RE: Looping through a data set and combining values

    oscarooko (10/2/2012)


    Eugene Elutin (10/2/2012)


    Use XML FOR PATH method (it most likely will give you the best performance for T-SQL implementation):

    declare @Table1 table (EmailAddress varchar(20), Msg varchar(20))

    insert @Table1

    ...

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

  • RE: Using Access to put data into SQL Server

    in response to rf44 mammoth post..... what an effort. :w00t: ..I do hope that the OP will appreciate the effort that you must have put into...

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

  • RE: Using Access to put data into SQL Server

    Welsh Corgi (10/1/2012)


    It is quite common in the Access world but I do not see any benefit in doing this.

    I hear a lot of laughs when professional come across tables...

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

  • RE: Using Access to put data into SQL Server

    Welsh Corgi (10/1/2012)


    Maybe I'm alone on this but I cringe when I see table names prefixed with 'tbl'.

    IMHO, not a good practice.

    Hi Welsh...out of curiosity ....why "not a good practice"?

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

  • RE: search levels

    Hi Mike

    take a look at this article by Jeff Moden...may give you a few ideas

    http://www.sqlservercentral.com/articles/T-SQL/72503/

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

  • RE: search levels

    would you care to provide some set up scripts (create table / sample data) this will help us to clarify your question.

    thanks

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

  • RE: Creating a view from 2 joined tables - inserting multiple lines

    something along these lines......??

    --=== this relies on a "numbers" or "tally" table

    --=== http://www.sqlservercentral.com/articles/T-SQL/62867/ by Jeff Moden

    ; WITH CTE as

    (

    SELECT dbo.WIPMaster.WorksOrder ,

    dbo.WIPMaster.Parent ,...

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

  • RE: Running EOM Reports after fiscal period changes

    Chris Schmidt (9/27/2012)


    I am working on a project to automate our end of month (EOM) reporting. There are multiple SQL's that get manually run and the results are manually...

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

  • RE: How to filter condition by column?

    yingchai (9/22/2012)


    Hi SQL Gurus,

    I have a below table with column names ACCOUNT, QTR1, QTR2, QTR3, QTR4

    ACCOUNT QTR1 QTR2 QTR3 QTR4

    -------------------------------

    Opex 20 0 0 0

    Sales 30 0 0 0

    Costs 55 0...

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

  • RE: How Do You Keep The "Pieces" Of A Complex Statement "Organized"

    If you are talking about formatting your code into a more readily readable layout then there are several "tools/addins" that will allow you to do this...along with allowing you to...

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

  • RE: cannot connect help asap

    article here may help you:

    http://blog.sqlauthority.com/2008/11/04/sql-server-fix-error-4064-cannot-open-user-default-database-login-failed-login-failed-for-user/

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

  • RE: Combine two tables as one query

    can you please provide some sample data...it would be helpful in understanding your problem

    thanks

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

  • RE: select query

    Hi

    as a start, suggest you read the article below...it seems to be very clsoe to what you are asking and will explain the method far better than I can.

    http://www.sqlservercentral.com/articles/T-SQL/88244/

    if you...

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

  • RE: Duplicate Records

    really not sure if this is what you are after...but try it as a start and then we maybe improve

    ;with CTE as

    (

    SELECT OURID

    FROM XTR

    WHERE FACILITY IN(...

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

  • RE: SQL View into Excel 2010 - enter criteria within Excel?

    maybe this will give you some ideas

    hope it helps

    http://www.csharpest.net/?p=117

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

Viewing 15 posts - 1,756 through 1,770 (of 2,452 total)