Forum Replies Created

Viewing 15 posts - 31 through 45 (of 214 total)

  • RE: SSRS Performance Issue

    Hi

    What about the Resource Governor on Prod?

    Imho this feature can limit the amount of CPU and memory consumption if implemented, but

    this is only small advice.

    Br.

    Mike

  • RE: Risks of NOLOCK, part 2

    Very good question Hugo, but I'm still not sure that "Nolock CAN NOT cause the query to not return committed rows" is the wrong answer.

    Could anybody clarify me this point...

  • RE: SSIS packeg running with proxy account fails when proxy user is loged off

    Hi Almighty

    Please change the package protection level to EncryptSensitiveWithPassword.

    Br.

    Mike

  • RE: Combine columns from multiple tables into a single table with sum

    Hi

    A bit different version:

    WITH dates AS (SELECT EntryDte FROM #tmpChgs UNION SELECT

    EntryDte FROM #tmpPmts UNION SELECT

    EntryDte FROM #tmpAdj)

    SELECTd.EntryDte

    ,ISNULL(c.Charges,0)AS Charges

    ,ISNULL(b.Payments,0)AS Payments

    ,ISNULL(a.Adjusts,0)AS Adjusts

    FROM dates AS d LEFT OUTER JOIN...

  • RE: To view or not to view, that is the question.

    Carl, they smell the Friday. 😀

    Stu, very good question.

    Thanks

    Mike

  • RE: Export 3 different data records to a flat file

    I developed simlar project a few years ago. It exports invoices to the flat file in specified order:

    Invoice 1

    Invoice header

    Item lines

    Subtotal netto

    Subtotal by VAT

    Total

    Footer

    ...

    Invoice n

    Invoice header

    Item lines

    Subtotal netto

    Subtotal...

  • RE: SSIS Derived Columns

    Easy one. It seems Steve didn't try to kill us on Friday. 😀

  • RE: The TOP 10 Count

    My first thought - 1 row and why the hell there's no such answer, and then

    slow down, review carefully all available. 😎

    Thanks Eirikur

  • RE: Expression needed for last working day of the month

    Hi David

    Small example for current date:

    =FormatDateTime(IIf(DatePart(DateInterval.Weekday,DateAdd(DateInterval.Day,-(Day(Now())),DateAdd(DateInterval.Month,1,Now()))) = 7,DateAdd(DateInterval.Day,-(Day(Now())+1),DateAdd(DateInterval.Month,1,Now())),DateAdd(DateInterval.Day,-(Day(Now())+1),IIf(DatePart(DateInterval.Weekday,DateAdd(DateInterval.Day,-(Day(Now())),DateAdd(DateInterval.Month,1,Now()))) = 1,DateAdd(DateInterval.Day,-(Day(Now())+1),DateAdd(DateInterval.Month,1,Now())),DateAdd(DateInterval.Day,-(Day(Now())+2),DateAdd(DateInterval.Month,1,Now()))))),DateFormat.ShortDate)

    But it doesn't check Church & Civic Holidays, personally I prefer scalar function to find it.

    Best regards

    Mike

    Ps. Sunday specified as the...

  • RE: Counting the Tally Table

    Nice 😉 Welcome to Cartesian join.

    Thanks

  • RE: Extract number,Month name and year from file name

    Hi

    Forgive me, I'm very busy today and the first impulse that comes to mind:

    //string Month = ls[5];

    string m = ls[5];

    //month name to int

    int NoM = DateTime.Parse("1." + m + "...

  • RE: Finding Azure SQL Database

    Mishra

    You probably didn't remove spaces between myid and mytext in row "2 Azure SQL Database is very useful for some...

  • RE: Finding Azure SQL Database

    Hmm, I'm a little bit surprised the explanation.

  • RE: Extract number,Month name and year from file name

    Hi

    I'm glad to see you find your own workaround of problem, but please think about error handling

    to this task. Sometimes the name of file can be totally screw...

  • RE: Extract number,Month name and year from file name

    Hi

    You can use LastIndexOf() method to find the position of last "_" character in string,

    try in such way:

    //char to find

    String UndSc = "_";

    // (3 + 2) month & year...

Viewing 15 posts - 31 through 45 (of 214 total)