Forum Replies Created

Viewing 15 posts - 481 through 495 (of 602 total)

  • RE: Distinct one column

    That didn't work, here's the entire statment:

    SET ANSI_NULLS OFF

    GO

    SET QUOTED_IDENTIFIER OFF

    GO

    select distinct l.loanid, l.branchoffice, l.AcquiredFrom,

    l.previouslnnum, b.lastname, b.firstmiddlename,

    p.addressline1, p.addressline2, p.city,

    p.state, p.zip, l.originalamt,

    s.primstat, p.appraisalvalue, l.glplan

    --FROM loan L, property P, borrower B,...

  • RE: How do I

    Thanks man

  • RE: 4 table join - easy one for you guys

    Thanks Bro!!

  • RE: Set field length

    Thanks Lowell!

  • RE: Odd Audit Request

    Awesome

    THANKS GUYS

    GOOD KARMA TO YOU ALL!!

  • RE: Query out parameter

    I didn't see that...thank you..

    but when I remove the rem I get

    I get zero byte files!!!

    Can't understand why they are zero byte!

    here's the output:

    NULL

    Starting copy...

    NULL

    0 rows copied.

    Network packet size (bytes):...

  • RE: Query out parameter

    here's the whole proc -

    USE [MASTER]

    GO

    DECLARE@DBNVARCHAR(10)

    DECLARE@sqlNVARCHAR(4000)

    DECLARE@COMPNVARCHAR(75)

    DECLARE@YRSMALLINT

    DECLARE@MONTHTINYINT

    SELECT@YR=2009

    DECLARE DBS CURSOR FAST_FORWARD FOR

    SELECT LTRIM(RTRIM([NAME]))

    FROM SYS.[DATABASES]

    WHERE NAME NOT IN ('MASTER','MODEL','MSDB','TEMPDB','DYNAMICS','DYNAMICSGP_UTILITIES','LPB_GREATPLAINSUTILS','SETUP')

    ORDER BY NAME

    OPEN DBS

    FETCH NEXT FROM DBS INTO @DB

    WHILE @@FETCH_STATUS = 0

    BEGIN

    SELECT@COMP=SUBSTRING(LTRIM([CMPNYNAM]),1,2) + '_'...

  • RE: Max date from multiple accounts

    You rock

    Thank you sooo much

    Good karma to you and have a nice weekend.

  • RE: Max date from multiple accounts

    Thanks Mark..

    where do i put in the account numbers?

  • RE: encryption

    Very Interesting...and informative

    Thanks guys....good karma to you all.

  • RE: encryption

    Unless you are passing the decrypting key when selecting - it should be encrypted when viewed from Enterprise Manager / Management Studio.

    So there is no other form of SQL...

  • RE: encryption

    This is customer sensitive data, SSN#, etc....

    I was told my predecessor had configured encryption, but all the data I have seen in all the databases..none of that is encrypted..

    Wouldn't I...

  • RE: Missed the end of the month

    I love this method only because I can leave it in place and it will always get the previous month.

    but

    when I use

    WHERE ld.delq_dt >= DATEADD(month, DATEDIFF(month, 0, CURRENT_TIMESTAMP) -...

  • RE: Missed the end of the month

    I didn't mean to upset anyone.

    I was just trying to understand why it didn't work, now I do understand.

    I really appreciate you guys taking the time to help.

    Good karma to...

  • RE: Missed the end of the month

    is this wrong?

    original way:

    WHERE

    isnull(datediff(dd,ld.delq_dt,getdate()),0) < 30

    this:

    WHERE

    isnull(datediff(dd,ld.delq_dt,'2009-09-30'),0) < 30

Viewing 15 posts - 481 through 495 (of 602 total)