Forum Replies Created

Viewing 15 posts - 391 through 405 (of 790 total)

  • RE: Try Catch in a SP

    this thread should be closed couz we have same one here

    Closed for discussing!

    :hehe:

  • RE: Decrypt a stored procedure

    Also you have many little applications that you can decrypt easily store procedures!

    SQL Decryptor is one of them ...try in Google

    Have a nice decrypting!

    Dugi

  • RE: How generate Dates on the fly

    Yea, great simple code Jeff...very nice combination DATEDIFF and DATEADD functions to generate the results ...once again great simple-little code here!

    :hehe::hehe::hehe:

  • RE: SQL DBA Metrials

    v-makath (3/5/2009)


    Hi ALl,

    I am newbie to SQL DBA. Please provide me some useful

    e books/artciles/mateirlas/links to learn it in efficient manner.

    Thanks in Advance.

    Do some search inside this forum and you...

  • RE: I need this Values

    GilaMonster (3/4/2009)


    Same as any complex code. Deconstruct (or build it) piece by piece.

    Broken down for explanation only:

    DECLARE @dt datetime

    SET@dt = '2009/03/04'

    DECLARE @TwoMonthsFromNow DATETIME

    DECLARE @StartOfMonthAfterNext DATETIME

    DECLARE @EndOfNextMonth DATETIME

    SET @TwoMonthsFromNow = DATEADD(mm,2,@dt)

    SET...

  • RE: I need this Values

    GilaMonster (3/4/2009)


    If the request is indeed for the last day of the following month, rather use this. Manipulating datetime using Dateadd and datediff is notably faster than converting pieces to...

  • RE: I need this Values

    nitinpatel31 (3/4/2009)


    Dugi (3/4/2009)


    Sorry man, now is correct little mistake during the test of your script! So sorry! But ok the declaration is not correct for this forum ( SQL Server...

  • RE: Answered Posts

    Mangal Pardeshi (3/4/2009)


    Yup, ban me 🙂

    Never it happened here ... all users are free but must follow some rules ..simple don't do double post! 😛

  • RE: T_SQL join tables

    nazaninahmady_sh (3/4/2009)


    hello;

    i have a query: Query1

    SELECT top 3 Error_ID,count(Error_ID),Kind

    FROM Table_1

    GROUP BY Error_ID,Kind

    i have another table wich...

  • RE: DateTime

    The_SQL_DBA (3/4/2009)


    I have a table with a field called 'CallEntry' as Datetime.

    I need to generate a report everyday during fixed time from 7 am to 2 pm. How do I...

  • RE: Search "substirng" in each columns of table

    Please add more explanation about your problem or read the article, link of this article is in my signature!

    :w00t:

  • RE: I need this Values

    nitinpatel31 (3/4/2009)


    Dugi (3/4/2009)[hr

    Declaration of your variable here is wrong we are not in SQL Server 2008, please check the forum we are SQL Server 2000! So your code here will...

  • RE: Answered Posts

    Again starting from beginning ...no it is not allowed (double posts)!

  • RE: Query for "as of Date"

    Grant Fritchey (3/4/2009)


    I always forget they're there when I post. Makes me crazy.

    :D:P;):w00t::cool::hehe:

    haahhahaahahah yea the code looks very nice with them ...hahahaa great job Grant! Little joke here :hehe::hehe::hehe:

  • RE: I need this Values

    nitinpatel31 (3/4/2009)


    Try this

    DECLARE @DT DATE

    SET @DT = '2008-03-04'

    SELECT DATEADD(D, -1, (CAST(YEAR(DATEADD(M,2,@DT)) AS VARCHAR)+'-'+ CAST(MONTH(DATEADD(M,2,@DT)) AS VARCHAR) + '-01'))

    This will return the last date of next month.

    Declaration of your variable...

Viewing 15 posts - 391 through 405 (of 790 total)