Forum Replies Created

Viewing 15 posts - 10,426 through 10,440 (of 15,374 total)

  • RE: How to change date format to yyyymmdd in sql

    Krasavita (10/9/2012)


    int

    Reason #91029037403884 you should ALWAYS use the proper datatypes. Datetime should ALWAYS be stored in a datetime column. Otherwise you end up pulling out your hair over something as...

  • RE: How to change date format to yyyymmdd in sql

    Krasavita (10/9/2012)


    If I run WHERE (field1 > DATEADD(d, - 7, GETDATE()))

    get error:arithmetic overflow

    What datatype is field1?

  • RE: How to change date format to yyyymmdd in sql

    Krasavita (10/9/2012)


    No,but I need

    this where field1 > DATEADD(d, -7, 'getdate()') and field1 <= 'getdate()

    So you are all set then?

  • RE: select records between a date range

    maryjane9110024 (10/9/2012)


    Hi! I am trying to select records between July 1st 2011 and August 14, 2011. I am not returning any rows at all. I have searched and tried a...

  • RE: How to do this?

    raghavender.2369 (10/9/2012)


    how to get the previous year value to do the calculation.

    =FormatPercent((Fields!2002.Value) / (Fields!2001.Value), 2)

    We don't know what the names of your columns are in your query and we can't...

  • RE: How to do this?

    raghavender.2369 (10/9/2012)


    yes.... by using expression we can do that... but i dont have idea to write expression to get that result... plz help me

    You posted the formula and the example...

  • RE: How to change date format to yyyymmdd in sql

    Krasavita (10/9/2012)


    Hello,

    I have a format for field1 example:20110228, I need to get all data from field1 that are within range 7 days from getdate and can't figour out how to...

  • RE: How to do this?

    raghavender.2369 (10/9/2012)


    I have a matrix in SSRS (SQL server 2008 R2)

    Country 2001 2002 2003

    ABC ...

  • RE: Recursive function - sql2008

    sqlSer12 (10/9/2012)


    Thanks, I am going through your link.

    But we can pass the parameter for the function.

    I put together an example of this using the quirky update method. Since you...

  • RE: how to get most queried db in the ms sql db server

    Tripz (10/9/2012)


    That is out of my scope, I just need to give the information what they were looking for.

    I think they were doing some network analysis..

    For network analysis the number...

  • RE: how to get most queried db in the ms sql db server

    Tripz (10/9/2012)


    Hello All..

    My boss asked me to give the list of top 5 most queried database in our db server(Ms Sql Server 2005).

    How can I achieve this? Any ideas, suggestions...

  • RE: Troubling SQL Query

    waqqas.zia (10/9/2012)


    Thanks for the reply Sean,

    Unfortunately due to data protection issues im unable to post any of my data or even samples of...

    i have however found a work around,

    Thanks...

  • RE: is it Okey to use.... ORDER BY while creating View???

    No it doesn't depend. It may appear to be ordered correctly right now but there is no guarantee it will always be in the correct order. If you want ordered...

  • RE: Troubling SQL Query

    Can you post ddl (create table scritps), sample data (insert statements) and desired output based on your sample data? I think once we can see the problem and have something...

  • RE: Is it the same (nolock) and with(nolock)

    jocast (10/9/2012)


    In a query is it the same

    select * from customers (nolock)

    and

    select * from customers with(nolock)

    is the word "width" necessary?

    Better yet, remove it entirely. It is not a magic...

Viewing 15 posts - 10,426 through 10,440 (of 15,374 total)