Forum Replies Created

Viewing 15 posts - 2,176 through 2,190 (of 3,221 total)

  • RE: get date range for each week of the year

    Amongst a list of T_SQL for date manipulation, I am sure you will find one that meets your objective in this blog posting by Lynn Pettis

    https://www.sqlservercentral.com/blogs/lynnpettis/archive/2009/03/25/some-common-date-routines.aspx

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Objects are without statistics!!!

    In additiion to GilaMonster's comments, and the database is configured as decribed.

    Do the two tables in question have any indexes? If so statistics will be automatically created for them....

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Trigger to see what is inserting rows into a table.

    MIght I suggest that you examine using the OUTPUT clause, which is much easier to code for multiple rows being insterted/updated/deleted than a trigger.

    Use Books On Line it has a...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Best Overall Certification Right Now

    Right now with the employment market as it is ..what is most important is EXPERIENCE, EXPERIENCE, EXPERIENCE. Many firms I am aware of, treat MS certification as oh well,...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Error converting datetime from character string HELP

    A slight modification of your code from:

    DECLARE @P_FECHADIAYER datetime

    select dateadd(dd, datediff(dd, 0, Getdate()) - 01, 0)

    To:

    SET @P_FECHADIAYER = dateadd(dd, datediff(dd, 0, Getdate()) - 01, 0)

    --

    --following just to display result...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Setting up AutoInsert

    removed by submiitter

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Eliminating invalidly formatted decimal text strings

    Do not know if this will help you, but have you examined CHARINDEX function? For example:

    DECLARE @dcv1_FieldValue VARCHAR(10)

    DECLARE @N INT

    DECLARE @Next INT

    SELECT @dcv1_FieldValue = '620..00'

    SET @N = CHARINDEX('.',@dcv1_FieldValue,1)

    SELECT @N

    SET...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Dynamic padding.. help plz

    Fields!ABC.Value

    How can I set the width of the column dynamically so that the spacing is not fixed and is consistent

    Fields!ABC.Value - appears to be ACCESS coding ... you sure...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Update Trigger to change fields in four tables

    If you can not modify the tables then you might consider creating a parameterized stored procedure , true you would have to pass the values to the procedure, but that...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: does anyone else encounter forum down problem?

    Have not had any problems, such as forum is down ... not in the last 6 months

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: I need to be able to look at data for a rolling 4 Quarter Period

    skailey

    If those worked for you visit Lynn Pettis blog on SSC and learn a great deal more on some neat datetime handling T-SQL

    https://www.sqlservercentral.com/blogs/lynnpettis/archive/2009/03/25/some-common-date-routines.aspx

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Error converting datetime from character string HELP

    Since both are datetime in a equality statement (=) you will want to compare them without considering time ... that is using just the date.

    Have you attempted that, and did...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Error converting datetime from character string HELP

    If I understand you correctly these 2 fields are both datetime

    ON a.COD_DIM_CALENDARIO_FEC_TASACION = b.COD_DIM_CALENDARIO

    is that correct?

    If so you, are making a comparision up to and including milliseconds ...

    have you...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: I need to be able to look at data for a rolling 4 Quarter Period

    Prehaps these will get you started (Copied from blog posting by Lynn Pettis)

    select dateadd(qq, datediff(qq, 0, @ThisDate), 0) -- Beginning of this quarter (Calendar)

    select dateadd(qq,...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: SQL Server 2008 Policy-Based Management

    ChiragNS learnt some thing. but how does it work?

    These 2 blog poast might help you to learn how it works on 2005 & 2000

    http://blogs.msdn.com/sqlpbm/archive/2008/07/04/using-pbm-against-sql2k-and-sql2k5.aspx

    http://blogs.msdn.com/sqlpbm/archive/2008/07/04/using-pbm-against-sql2k-and-sql2k5.aspx

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

Viewing 15 posts - 2,176 through 2,190 (of 3,221 total)