Forum Replies Created

Viewing 15 posts - 5,221 through 5,235 (of 8,731 total)

  • RE: Query Help : Recursive Running Total OR Lead/Lag Function for N number of PartitionValue

    Basically, you want to divide the proportion by the running total of proportion.

    Quick question. How do you define the order? I think I know the answer but want to be...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Trimming Additional , at the end in csv

    You don't need to remove the comma, you need to remove the column. This is done in the flat file source editor, assuming that you have an additional column that...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Add allowance to employee table is wrong or true

    Use a separate table as those are different entities.

    You should have an entity allowance with attributes type and amount. You might need to have dates to define time periods but...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Msg 8134: Divide by zero error encountered

    Hi, welcome to the forums.

    You posted almost 300 lines of code (after formatting) which is considered rude for a simple problem. You should identify where the error is and without...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Pivoting

    Take a look at Cross tabs which will make the pivoting of multiple columns a lot easier and faster using Copy-Paste-Edit.

    References in here:

    Part 1[/url]

    Part 2[/url]

    Example

    SELECT instanceid

    ...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Empty TABLE

    Raghavendra Mudugal (2/13/2015)


    Thank you for the post, very interesting one.

    (so, 63 people thought that they can create a table with no cols; if this becomes real, I am not sure...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How to default start / end date parameters to first / last day of current month?

    Use the Available Values tab to set the same values as the default.

    It won't be disabled but the value can't be changed.

    Another option is to define them as hidden and...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How to default start / end date parameters to first / last day of current month?

    Disregard my previous post.

    On the Default Values tab, set Specify Values and use the function button (fx).

    For start of Month:

    =DateAdd("M", DateDiff("M", CDate("1900-01-01"), Now()), CDate("1900-01-01"))

    For end of Month:

    =DateAdd("M", DateDiff("M", CDate("1900-01-01"), Now()),...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How to default start / end date parameters to first / last day of current month?

    I'm not sure if it's the correct way to do it, but I used a new dataset for parameter values.

    See next post.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: stroed proc vs adhoc query

    It might be bad parameter sniffing. You can read about it on many articles.

    For more information specific to your problem, check the following article: http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: ?? on Finding only fields that dont match in two different tables

    I would change the join conditions.

    SELECT people.id,

    people.[First Name] AS EFirst,

    people.[Last Name] AS ELast,

    people_Identifiers.[Number/Code] AS ENumber,...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Distnict serial no & Latest time

    Remove TIME from GROUP BY.

    Try not to use reserved keywords for names.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: How do I dynamically create the table with the current date at the end ?

    Please don't. Use a single table with an additional column to define the date of the data. Otherwise, you'll end with way too many tables for no reason.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Are the posted questions getting worse?

    djj (2/12/2015)


    Ed Wagner (2/12/2015)


    Sioban Krzywicki (2/12/2015)


    Eirikur Eiriksson (2/12/2015)


    Brandie Tarvin (2/12/2015)


    jasona.work (2/12/2015)


    Brandie Tarvin (2/12/2015)


    jasona.work (2/12/2015)


    Is it me, or is it at least once a week minimum someone posts a "How do...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Super long running queries (bad users)

    Could you create a group/role to revoke access to the dbs before the maintenance tasks occur and grant the access again after all the night processes end?

    Would that create problems?

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2

Viewing 15 posts - 5,221 through 5,235 (of 8,731 total)