Forum Replies Created

Viewing 15 posts - 766 through 780 (of 859 total)

  • RE: sql query group by weekend

    dweil (3/29/2012)


    Here is the scenario.

    I want to write a query to find out which employees have preformed a service on the weekend over a quarter period. They get one...

  • RE: SOL Job Login Failure

    chandrika.r 91171 (3/27/2012)


    It does not return any error when i ran in SSIS. The package is stored in the file system.

    i would import it into msdb and try the job...

  • RE: nested / join

    naravetlasri (3/29/2012)


    Hi,

    I am new to this SQL,and I am practicing some online examples where I got stuck with one of the excercise .

    here is the Question

    In which years was...

  • RE: Comparing two tables to find matching column names or missing columns and datatype

    Leon Orlov-255445 (3/28/2012)


    RedGate's SQL Compare does the wonders 😉

    The tool well worth every penny/shilling.

    ~Leon

    at my shop we had to track DB changes from one version of a product we use...

  • RE: Need Help with getting max date

    SQLRNNR (3/28/2012)


    Change your query

    you almost never want the aggregate your creating in your group by. it basically gets rid of any aggregation.

  • RE: Best practices on how to gather similar data from multiple temp tables

    shnex (3/28/2012)


    I just needed an idea on how should I approach differently the query, more optimized. I will try it with your suggestion.

    Thank you

    no problem. self joins can get...

  • RE: IMPORT DATA INTO A TABLE FROM A FLAT FILE

    you might try "/n" for your row terminator. that seems to be what the first error is complaining about. after that the additional errors may be generated because...

  • RE: Snapshot Replication

    i got this from the following link.

    Snapshot replication distributes data exactly as it appears at a specific moment in time and does not monitor for updates to the data. When...

  • RE: Aggregate Data Query

    Triality (3/27/2012)


    Hello -

    I have a table with a bunch of sales orders from different channels (Example: Retail stores, online orders, other). I want to the output of my query...

  • RE: Having Trouble Deleting a DB

    djustice 20821 (3/27/2012)


    This is the code that I used:

    ALTER DATABASE DB

    SET SINGLE_USER

    WITH ROLLBACK IMMEDIATE

    GO

    DROP DATABASE db

    GO

    and the error that I got:

    Msg 5064, Level 16, State 1, Line 1

    Changes to...

  • RE: Having Trouble Deleting a DB

    SQLKnowItAll (3/27/2012)


    Just guessing... but did you put the database into single user using the query window, then try to delete the database by right-clicking on it and selecting delete? (2...

  • RE: Best practices on how to gather similar data from multiple temp tables

    with out DDL and sample data from the UserID table your populating your temp tables from it would be a little tough. This may work though:

    SELECT u1.userID FROM Users...

  • RE: How to convert this XML into columns

    njdevils39 (3/26/2012)


    capn.hector (3/26/2012)


    im amazed at your patience sean. im sitting here laughing. ill save you at least one time.

    We need the DDL and sample data. im supprised...

  • RE: How to convert this XML into columns

    im amazed at your patience sean. im sitting here laughing. ill save you at least one time.

    We need the DDL and sample data. im supprised you are...

  • RE: Text file as script input

    since no one has posted yet and im not seeing any other way than a loop (i am new at this) you can try this: load the file using...

Viewing 15 posts - 766 through 780 (of 859 total)