Forum Replies Created

Viewing 15 posts - 7,621 through 7,635 (of 15,381 total)

  • RE: Distinct Keyword

    todd.ayers (7/10/2013)


    Well.... I have four fields called Stack ID, Location, Move Date, and Move Time.

    The Stack ID refers to a bundle of wood and in that column we have multiple...

  • RE: Dynamic WHERE statement if stored procedure parameter is null

    phoenix_ (7/10/2013)


    To be honest with you I don't like dynamic sql because of quotation marks '' which are making whole code harder to read 🙂

    So Instead of this I developed...

  • RE: Dynamic WHERE statement if stored procedure parameter is null

    Oh be careful here Laurie. You suggested using dynamic sql which is a good choice here. However you committed a cardinal sin. You allowed for the parameters to be executed....

  • RE: script

    This will get you the first 3.

    select name, backup_finish_date, backup_size from msdb.dbo.backupset

    To get free space you will have to loop through all the databases and look at dbo.sysfiles.

    --EDIT--

    I should mention...

  • RE: Deleted items still appears in output

    dwain.c (7/9/2013)


    Sean Lange (7/9/2013)


    I ran your query through a formatter to make it easier to read.

    You've got a SQL formatter? I'd like to hear about that!

    Here is a free...

  • RE: Help with Joins.....

    In order to help we will need a few things:

    1. Sample DDL in the form of CREATE TABLE statements

    2. Sample data in the form of INSERT INTO statements

    3. Expected results...

  • RE: How do you manage your code snippets/documentation?

    erikd (7/9/2013)


    The .sql file that I started using to store interesting bits of code, things I wanted to play with, general interest, etc., is growing rather large and unwieldy. I'm...

  • RE: Access Query ported to SQL

    LOL sounds like you are making good headway on this. Good thing...I am swamped at my actual job and don't have any time to dig back through this. 🙂

    The good...

  • RE: Stop users from expanding the Tables nodes in Object Explorer

    Just curious...you have users that have SSMS installed but you don't want them to be able to see the tables? What are you trying to accomplish here?

  • RE: reading XML in a loop.

    Is there a question here or are you simply explaining how you solved this?

  • RE: Query help

    DBA12345 (7/9/2013)


    Thank you folks..I appreicate your help.

    That query absolutely worked for me.

    You are welcome. Glad you got it sorted out.

  • RE: Query help

    Pretty sparse on solid details but I think I get the gist.

    select *

    from tableb b

    LEFT join tablea a on a.Server = b.Server and a.AppName = b.AppName

    where a.AppName IS NULL

  • RE: Sorting based on user input..

    deepkt (7/9/2013)


    one of other scenario is failing.. plz help..

    What is failing? Are you getting an error message? Or is it a logic error? I am still confused as to what...

  • RE: Sorting based on user input..

    deepkt (7/9/2013)


    Hi,

    I have one requirement and need help.

    I have a table:

    CREATE TABLE MiscItems(ID INT, Description VARCHAR(50), DisplayOrder SMALLINT)

    INSERT INTO MiscItems(ID,Description,DisplayOrder)

    SELECT 100, 'A1',1

    UNION ALL

    SELECT 101,'A2',2

    UNION ALL

    SELECT 102,'A3',3

    UNION ALL

    SELECT 104,'A4',4

    UNION ALL

    SELECT...

  • RE: Help me guys. CARRIER CONFUSION!! MS SQL or ORACLE

    I have no idea if Oracle or SQL pays more. I have never worked with Oracle much. You should focus on the areas of SQL server that you enjoy/are good...

Viewing 15 posts - 7,621 through 7,635 (of 15,381 total)