Forum Replies Created

Viewing 15 posts - 11,626 through 11,640 (of 26,486 total)

  • RE: Figuring out NSF payments

    Once I got your code to run, I do see a slight problem. I have three less values than you. So I am looking into why I missed...

  • RE: Figuring out NSF payments

    Not sure this is correct, couldn't find any expected results based on the sample data provided, so you will have to tell me if it is okay.

    USE Sandbox -- my...

  • RE: Is Empowerment Good?

    TravisDBA (5/30/2012)


    It all depends on who is wirting the code and if they truely understand what it is they are doing.

    Now that is one powerful statement there. It makes all...

  • RE: Question on REPLACE function

    You may want to do some checking of the data. You may have unprintable characters embedded in som of your data. I just ran a test and everything...

  • RE: Is Empowerment Good?

    djackson 22568 (5/30/2012)

    ...

    how bad Cobol programs were?

    ...

    Really? Although I may also agree to an extent (considering a COBOL application I helped support and extend for 11 years), but I...

  • RE: Duplicate entries in view using select distinct

    From your post it is hard to give you an answer. The problem is that we can't sse from here what you see there. Just looking at the...

  • RE: DATEADD and leap years

    I think the following is a bit simpler:

    DECLARE @MyDate DATETIME;

    SET @MyDate = '2/28/2009';

    SELECT DATEADD(mm, DATEDIFF(mm, 0, DATEADD(yy,-1,@MyDate)) + 1, -1);

  • RE: Removing extra rows caused by left joined data

    Based solely on your post, no idea. The problem here is that we can't see from here what you see there. You need to help us understand your...

  • RE: Date range issue

    How does this do?

    CREATE TABLE #ProductRate(

    [ProductID] [int] NOT NULL,

    [FromDate] [datetime] NOT NULL,

    [Rate] [numeric](9,2) NOT NULL)

    GO

    INSERT INTO #ProductRate(ProductID,FromDate,Rate)

    SELECT 1,'2012-05-23',100

    UNION ALL

    SELECT 1,'2012-05-26',150

    UNION ALL

    SELECT 1,'2012-05-28',1000

    UNION ALL

    SELECT 2,'2012-05-20',1500

    UNION ALL

    SELECT 2,'2012-05-25',2000

    UNION ALL

    SELECT 2,'2012-05-28',1000

    GO

    DECLARE @fromdate DATETIME;

    SET...

  • RE: SQL not working as expected - Deleting duplicates from dataset

    Not sure what is wrong, but since you are using SQL Server 2008 (based on the forum you posted in) try this:

    DECLARE @MMOrders TABLE (

    order_no char(8),

    oe_po_no char(25),

    sf_order char(8),

    item_no char(15))

    -- Data...

  • RE: Database downgrade: 64 bits to 32

    tilew-948340 (5/29/2012)


    I need to move a DB from SQL server 2008 R2 on a Window7_64 machine to a WindowXP_32 (not sure that the machine would survive to an update to...

  • RE: Frustration with FOR XML

    May help if you also provide the code you have tried so far. Nothing like seeing what doesn't work to help look for what does work.

  • RE: Column with UNIQUE values but multiple NULL values

    sql server developer (5/29/2012)


    Thanks so much. I'm on SQL Server 2008 and decided to use Filtered Index on that column. However the issue i'm having is that i would like...

  • RE: Suspect Pages causes database backup to fail.

    Has the entire IO Subsystem been checked, not just the disks? Drivers, hardware, etc.

  • RE: Are the posted questions getting worse?

    Jeff Moden (5/29/2012)


    Grant Fritchey (5/29/2012)


    Piling on with Jeff, I'd rather enable the developers to keep them going as fast as possible in the dev environment. I've always had at least...

Viewing 15 posts - 11,626 through 11,640 (of 26,486 total)