Forum Replies Created

Viewing 15 posts - 6,286 through 6,300 (of 7,164 total)

  • RE: memory pressure err messages..

    -- credit to Bob Beauchemin: http://social.msdn.microsoft.com/Forums/en-US/sqlnetfx/thread/bbc1c753-c5df-4d52-a567-c982cf506051

    SELECT SUM(pages_allocated_count) / 128.0 AS CLR_memory_MBs

    FROM sys.dm_os_memory_objects

    WHERE type LIKE '%CLR%' ;

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: INSERT IF NOT EXISTS

    Make sure you understand this code before deploying it.

    IF EXISTS ( SELECT *

    FROM sys.objects

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: HTML Report using SQL

    This seems like a lot more work than it should be...is SSRS available in your environment or can it be made available? SSRS is the recommended solution for this type...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Blank String to NULL/DateTime???

    Happy to assist 🙂

    As an aside, LTRIM and TRIM and RTRIM run against a string with all spaces will yield the same result...and TRIM may have additional overhead since...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Blank String to NULL/DateTime???

    It depends on the type of incoming string but here is what it will look like for DT_STR 100 with 1252 encoding:

    LTRIM(ColumnName) == "" ? (DT_STR,100,1252)NULL(DT_STR,100,1252) : ColumnName

    Reference:

    SSIS NULL function:...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Problem With Recursive CTE

    Jeff Moden (5/30/2011)


    Are you suggesting that you want only leaf-level information no matter which part you ask for? 🙂

    That's what I got out of it this time around but I...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Problem With Recursive CTE

    Yikes! ...the "bill of materials" comment should have tipped me off. Good catch Jeff!

    With this set of test data it is much clearer what is required.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Problem With Recursive CTE

    Excellent, happy to assist 🙂 Thanks for posting back!

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Encryption and indexes

    I do not know of the top of my head but it's an interesting question so thanks for asking it here 🙂

    Do you have a test system where you can...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Blank String to NULL/DateTime???

    Here's where I would start:

    1) Import it as a string from the text file.

    2) Use the Derived Column transformation to change columns with blanks to NULL.

    3) Use the Data Type...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: join operator "=*"

    Uripedes Pants (5/27/2011)


    opc.three - yeah, I realise this is a 2008 forum, but I had to make a decision. I knew it was old syntax, but I'm working in 2008r2,...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: join operator "=*"

    The Dixie Flatline (5/27/2011)


    That is deprecated syntax for doing a join.

    It has been deprecated since SQL 2005 and support will be officially dropped from the next version of SQL Server...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: join operator "=*"

    The =* JOIN-syntax is only valid when a 2008 database (the forum you posted in) is in 80 compatibility mode.

    If you think you may run into this a lot...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: 'Conversion from xml to int is not supported on the connected database server'

    XML is a binary data type so it has to de-serialized into a string before it can be cast to a numeric type.

    Works because SQL Server XML data types...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: trying to import a excel file to the database table ( the following error occurs )

    ACE works with Access too. Here is the redist pkg you want to install:

    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c06b8369-60dd-4b64-a44b-84b371ede16d&displaylang=en

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 6,286 through 6,300 (of 7,164 total)