Forum Replies Created

Viewing 15 posts - 16 through 30 (of 79 total)

  • RE: The SQL Server Postal Service

    Hi Yelena,

    There is nothing that you have missed something or you need to do something. I hope the following explanation is good enough for you question.

    Current Senario:

    When you fisrt send...


    Regards,
    Sachin Dedhia

  • RE: The SQL Server Postal Service

    Hi Yelena,

    The ALTER DATABASE did work on the Northwind database which I restored from SQL Server 2000. My SQL Server 2005 is update with SP1.

    Can you provide inputs on the...


    Regards,
    Sachin Dedhia

  • RE: dynamic sql vs. clustered index scan

    True. But for now

     


    Regards,
    Sachin Dedhia

  • RE: dynamic sql vs. clustered index scan

    Chris, Tinker thanks for valuable inputs, I would have done the same you mentioned, but I'm a sql developer

    Btw, I'll also add that there...


    Regards,
    Sachin Dedhia

  • RE: dynamic sql vs. clustered index scan

    Chris, you are right in you assumption, what I have is a master lookup with approx 175 keys and approx 3000 records. The Id, which is an identity field, is being referenced...


    Regards,
    Sachin Dedhia

  • RE: Advice needed on treating null criteria

    In such a case, I always use the 1st approach. You can also use COALESCE(...) which returns the first non-null expression instead of IsNull(...)

    It is definitely better than using the...


    Regards,
    Sachin Dedhia

  • RE: How do I see the data in a varchar field greater than 800 characters in length?

    convert the datatype to text of the column in the select statement.

    might be not the best of the solutions

    hth...

     

     

     

     


    Regards,
    Sachin Dedhia

  • RE: Select latest 2 records - Select top?

    Makes a lot of sense


    Regards,
    Sachin Dedhia

  • RE: Select latest 2 records - Select top?

    I would suggest UNION ALL instead of just UNION


    Regards,
    Sachin Dedhia

  • RE: How many hours job is executing?

    You can also try this one...

    DateDiff(Day, cast(cast(NEXT_RUN_DATE as varchar(8)) as datetime), getdate()) as Days

    and

    DateDiff(hour,getdate(), cast(cast(NEXT_RUN_DATE as varchar(8)) as datetime) + cast(reverse(stuff(stuff(reverse(cast(NEXT_RUN_TIME as varchar(6))), 3, 0, ':'), 6, 0, ':'))...


    Regards,
    Sachin Dedhia

  • RE: UPDATE Query Question

    Check the defragmentation of the table using of DBCC SHOWCONTIG.

    In Scan Density [Best Count:Actual Count], Best Count and Actual count should be almost equal...

    HTH...

     


    Regards,
    Sachin Dedhia

  • RE: Optimal Pivot Query

     

    SELECT 

      b.database_name As DBName,

      MAX(CASE b.type WHEN 'D' THEN b.backup_finish_date ELSE NULL END)  D_Backup ,

      MAX(CASE b.type WHEN 'I' THEN b.backup_finish_date ELSE NULL END) I_Backup ,

      MAX(CASE b.type WHEN...


    Regards,
    Sachin Dedhia

  • RE: How are usernames checked?

    ok...was thinking of a solution to this on my way back to home yesterday...

    how abut this...

    have 2 fields that will store the total of ASCII values of small alphabetes and...


    Regards,
    Sachin Dedhia

  • RE: Question About DEFAULT

    ALTER TABLE Xtable ADD Xcolumn int NOT NULL DEFAULT (0) WITH VALUES

    HTH

    Sachin

     

     


    Regards,
    Sachin Dedhia

  • RE: How are usernames checked?

    Hi Frank,

    I feel usernames should not be case-sensitive...

    Not a solution, just my opinion

    Sachin


    Regards,
    Sachin Dedhia

Viewing 15 posts - 16 through 30 (of 79 total)