Forum Replies Created

Viewing 15 posts - 1 through 15 (of 28 total)

  • RE: Duplicates

    varunkum (1/19/2011)


    Hi. I want to find address duplicates. ACCOUNT and ADDRESS are columns(all the addresses are formatted perfectly, don't worry about that). Take some fictitious table name(table_name). Now i want...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: Data file not shrinking

    Give this a try

    DBCC SHRINKFILE (N'Test001' , 1000)

    the 1000 is the size MB can not be smaller then used space

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: compate two table

    But sir, I am not so expert to use all this, will you please help me.

    Just compare four columns of table PendingClaims to OldAr table. if any change in columns...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: compate two table

    Reo (11/18/2010)


    Hi,

    You can compare with CHECKSUM(Chartnumber, Dataofservices,CPT,Amount) and also you can compare your compete table or every row with CHECKSUM(*)

    I would not use this method you will get false/positives with...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: Does the size of the model database increase automatically?

    The only time I have seen the model database change is when someone added objects to it by accident or when source control software added objects to the model

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: Is there a tsql command to refresh database objects in object explorer?

    I agree hit refresh or F5

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: SQL Server 2008 INSERT SELECT suspected bugs

    Hi

    I have seen some issue like this, but have been able to find and fix the issue, most of the time it something wrong with the data.

    Is there...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: Search part of string within part of string

    I deal with this very often with data from my clients, If you take large vendor master you may have 25 different vendor numbers for same vendors. There is so...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: Error in dynamic SQL statement

    EXEC(@sql)

    A Simple way to test what you are building in your @SQL is to

    PRINT(@SQL) --I use this to debug the statement

    --EXEC(@sql)

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: sp_executesql dynamic columns in select statement

    Did you try the Ex I posted I have not had time to test

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: selecting duplicate rows including PK, but ignoring PK field for determining duplicate row

    petervdkerk (11/19/2010)


    Ah, I didnt see all the code, my bad.

    Anyway, your code seems to do [almost] what I need.

    Currently your code shows: #duplicate records - 1, meaning that if I...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: selecting duplicate rows including PK, but ignoring PK field for determining duplicate row

    See if this works for you

    INSERT INTO @prosp(Id,companyname,cnt)

    SELECT

    P.Id,

    P.companyname,

    P.cnt

    FROM

    prospects P

    INNER JOIN

    ...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: SQL Update committed after 10000 transactions

    Paul White NZ (11/19/2010)


    QQ-485619 (11/18/2010)


    How can I do to make the transcation commit every 10000 row.

    There is a complete explanation and script in the following SSC article by Lynn Pettis:

    http://qa.sqlservercentral.com/articles/67898/

    The...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: sp_executesql dynamic columns in select statement

    @cmd = N'select @col1 from dbo.testtable'

    I am not sure if this correct and would need to test but if you give it a try I would think something like this...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

  • RE: SQL Update committed after 10000 transactions

    hard to say with out sample data and no table structure

    a very simple way is

    top 10000 control with a WHERE effdat <> enrolldat

    If you give me some more info...

    Scott
    I am a Senior Data Analyst/DBA
    I work with MS SQL, Oracle & several ETL Tools

    @thewolf66[/url]

Viewing 15 posts - 1 through 15 (of 28 total)