Forum Replies Created

Viewing 15 posts - 1,606 through 1,620 (of 13,878 total)

  • Reply To: Parse data from notes field

    That means you have some data which does not follow the convention. You can avoid the error by filtering out the rows which do not match, like this:


  • Reply To: SSDT creates a clustered index b4 clustered columnstore index, then drops - WHY

    darius.england wrote:

    Hi Phil.

    Many thanks for coming back on this. It drives me crazy...

    It happens at least in VS 2019 and 2020, which I've checked. I have several tables with such...


  • Reply To: Parse data from notes field

    If the data really is as well structured as your examples suggest, the following should work. If not, something more refined will be required.

    DROP TABLE IF EXISTS...

  • Reply To: Parse data from notes field

    Tav29 wrote:

    I need to parse payment data from a notes field. Example of data below.  I tried the Len function but got mixed results, Any help or examples would be...


  • Reply To: show percentage between 2 fileds

    Bruin wrote:

    Is there any easy way just to skip those records rather than return Null?

    THx.

    The column is defined for every row of data in the table, therefore the idea of...


  • Reply To: SSDT creates a clustered index b4 clustered columnstore index, then drops - WHY

    Which version of SSDT?

    Have you got any other tables with clustered columnstore indexes on them? Is there something special about this table, or does it happen for every table like...


  • Reply To: The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered

    I suggest it's worth having both 32- and 64-bit versions installed.

    Take a look here to see how to do that (it's not as straightforward as you might think).


  • Reply To: show percentage between 2 fileds

    pietlinden wrote:

    You'd have to check for zero in the divisor first. There's no DIVIDE() function in T-SQL. IF(divisorColumn = 0, NULL, NumeratorColumn/DivisorColumn)

    There's a more concise way of achieving that:

    NULLIF(Divisor,0)


  • Reply To: show percentage between 2 fileds

    DROP TABLE IF EXISTS #T1;

    CREATE TABLE #T1
    (
    Col1 DECIMAL(19, 6) NOT NULL
    ,Col2 DECIMAL(19, 6) NOT NULL
    ,PCDiff AS CAST((Col1...

  • Reply To: show percentage between 2 fileds

    This is not a question. What is the problem?


  • Reply To: Best way to process a large XML file (2MB) or greater

    sarahloran3211 wrote:

    Can you tell me another way to process xml files of greater than 2mb, I try your way to process it but still found a problem with it. My...


  • Reply To: Issue with Execute SQL Task in Sequence container returning 0 results

    SoDakDave wrote:

    I've considered that, but I'd still have to find the new / modified rows and that's what this query is supposed to be doing in order to avoid having...


  • Reply To: How to handle rolling back changes if there is an error?

    As you're already working in C#, that link looks good.

    But, as always, you should test it to make sure it works the way you want.


  • Reply To: Print Statements

    As SSIS is a server-based technology, outputting messages to a console is largely pointless, as there will usually be no one there to see them. Write your messages to a...


  • Reply To: How to handle rolling back changes if there is an error?

    frank.kress wrote:

    Hi

    First: Use in your SP Begin try and begin catch SQL Satements.

    For eq.

    Begin try

    Update Tabelle

    Set field= 1/0

    Where field2=1

    --here rais an error because Division durch zero

    Ende Try

    Begin catch

    -- here you...


  • Viewing 15 posts - 1,606 through 1,620 (of 13,878 total)