Forum Replies Created

Viewing 15 posts - 3,961 through 3,975 (of 8,731 total)

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (10/27/2015)


    Lovely.

    We have the URLDefense ProofPoint software to prevent bad URL links. But when the site goes down, so does our ability to navigate to the sites in the...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (10/27/2015)


    Great Summit so far. I've been able to talk to Gail & Lynn and Rod. Saw Gianluca as I was running between events. Any Threadsters I'm missing, track...

  • RE: Today's Random Word!

    crookj (10/26/2015)


    whereisSQL? (10/26/2015)


    Ed Wagner (10/26/2015)


    DonlSimpson (10/26/2015)


    Ed Wagner (10/26/2015)


    eccentricDBA (10/26/2015)


    Luis Cazares (10/23/2015)


    happygeek (10/23/2015)


    Spices

    Girls

    Pop

    Coke

    Cartel

    Tunnel

    Smuggle

    Snuggle

    Struggle

  • RE: Syntax help on updating a column by default based on a rule..

    Would this produce the correct behavior?

    CREATE TABLE EDI_data_proc_log(

    ID int IDENTITY(1,1),

    comment VARCHAR(3000),

    time_recorded DATETIME DEFAULT GETDATE(),

    run_by varchar(100),

    duration int );

    GO

    CREATE TRIGGER TI_EDI_data_proc_log ON EDI_data_proc_log

    INSTEAD OF INSERT

    AS

    INSERT INTO EDI_data_proc_log(

    ...

  • RE: Better way of finding date?

    Lynn Pettis (10/26/2015)


    Does this work (can't test it, on a flight to Seattle)?

    declare @startdate datetime = "20151126";

    select dateadd(day,5,dateadd ( month,10,dateadd ( year,year(@startdate) - 1900 - 1),0)));

    Corrected version for...

  • RE: Using Dynamic SQL To Order Column Names

    The only columns mentioned have been Price, Rating and Location. If rating is a single value, I'll assume that location would be as well (You won't be looking for hotels...

  • RE: Better way of finding date?

    Here's a different approach with 2 variants:

    DECLARE @StartDate DATE = '01/01/15';

    SELECT DATEADD( YY, DATEDIFF( YY, 0, @StartDate), '18991106'),

    DATEADD( YY, DATEDIFF( YY, 0, @StartDate), -56),

    ...

  • RE: Format Currency in Pie chart

    Or maybe this: =Format(Fields!Total.Value,"C")

  • RE: Format Currency in Pie chart

    I'm not sure about this, but you could give it a try:

    https://msdn.microsoft.com/en-us/library/3352e6f5(v=vs.90).aspx

  • RE: Processes That Update a Certain Column

    Then you need to trust your queries. Try tweaking this to get what you need.

    SELECT OBJECT_NAME( object_id), *

    FROM sys.sql_modules

    WHERE definition LIKE '%ColumnName%'

    AND definition LIKE '%TableName%'

    SELECT OBJECT_NAME( object_id), OBJECT_NAME( referenced_major_id)

    FROM sys.sql_dependencies

  • RE: Using Dynamic SQL To Order Column Names

    Ok, trying to bring this to the original topic.

    This is what I was thinking as an approach.

    Select Top(10) HotelName, Price, CustomerRating

    From dbo.VacationDestinations

    where Price <= @price AND CustomerRating = @CustomerRating

    Order...

  • RE: Processes That Update a Certain Column

    An easy way to do it, is by using SQL Search: https://www.red-gate.com/products/sql-development/sql-search/

    You could also query things on sys.sql_modules.

  • RE: Query to Split the String as rows and columns in SQL

    Jeff Moden (10/24/2015)


    Careful now... Do you know what the maximum length of each parameter will be? Me neither. But I can tell you that the maximum length allowed...

  • RE: Today's Random Word!

    happygeek (10/23/2015)


    Ed Wagner (10/23/2015)


    djj (10/23/2015)


    whereisSQL? (10/23/2015)


    Ed Wagner (10/23/2015)


    DonlSimpson (10/23/2015)


    djj (10/23/2015)


    Ed Wagner (10/23/2015)


    happygeek (10/23/2015)


    whereisSQL? (10/23/2015)


    Ed Wagner (10/23/2015)


    djj (10/23/2015)


    Eirikur Eiriksson (10/23/2015)


    Ed Wagner (10/23/2015)


    anthony.green (10/23/2015)


    Ed Wagner (10/23/2015)


    anthony.green (10/23/2015)


    djj (10/23/2015)


    anthony.green (10/23/2015)


    Ed Wagner (10/22/2015)


    Math

    School

    Study

    Invest

    Risk

    Assessment

    Process

    Inflation

    Tire

    Wear

    Tear

    RIP

    Tombstone

    Limestone

    Marble

    Granite

    Counter-top

    Kitchen

    Cooking

    Spices

    Girls

  • RE: need to help a query in sql server

    I'm not sure if this is what you're looking for:

    SELECT e.id,

    e.NAME,

    e.sdate,

    e.edate,

    CASE WHEN ROW_NUMBER() OVER(...

Viewing 15 posts - 3,961 through 3,975 (of 8,731 total)