Forum Replies Created

Viewing 15 posts - 271 through 285 (of 373 total)

  • RE: Query text during caching in SQL 2005

    Hugo Kornelis (11/14/2010)


    Good question. I answered wrong; I thought all statements were cached.

    Hardik, do you have any references where I can read more about this?

    Thanks Hugo. Sorry I don't have...

  • RE: Query text during caching in SQL 2005

    Oleg Netchaev (11/15/2010)


    Carlo Romagnano (11/14/2010)


    In sql2005, I get an error:

    "plan_handle" is not a recognized table hints option.

    Carlo,

    Please check compat level of your SQL Server 2005 AdventureWorks database. If the level...

  • RE: Query text during caching in SQL 2005

    Carlo Romagnano (11/14/2010)


    Very bad worded question:

    Query text during caching in SQL 2005

    This is related to SQL Server caching. What should be the output of following T-SQL query:

    USE AdventureWorks2008R2

    GO

    EXEC uspPrintError

    GO

    SELECT st.text...

  • RE: STATS_DATE return NULL

    sumit.agrawal (11/12/2010)


    Try to rebuild one/all indexes on the table and check.... it should come... By the way, Why indexes are required if there are only 6 rows in the table....

    Thanks...

  • RE: STATS_DATE return NULL

    parthi-1705 (11/12/2010)


    Hardy21 (11/12/2010)


    Yes there are 6 rows in the table and index_id = 1 (its primary key). In same table, there are other indexes that has statistic date and their...

  • RE: STATS_DATE return NULL

    GilaMonster (11/12/2010)


    Are there any rows in the table?

    What's the index_id for that item?

    Yes there are 6 rows in the table and index_id = 1 (its primary key). In same table,...

  • RE: STATS_DATE return NULL

    Thanks for response.

    I have executed sp_updatestats stored procedure still same records have NULL for statistic date.

    Shall I need to update the statistic for NULL records manually?

  • RE: Search all columns in every table for a value

    Thanks @adam-2 Gojdas & Author.

    It helps me to solve one issue.

  • RE: COALESCE Vs ISNULL

    As per the BOL:

    If all arguments are NULL, COALESCE returns NULL with Note: At least one of the null values must be a typed NULL.

    Then why "SELECT COALESCE(NULL,NULL) AS [COALESCE]"...

  • RE: COALESCE Vs ISNULL

    Good one point question. Thanks

  • RE: More of computed columns

    Good question. Nice extension - Carlo. Thanks

  • RE: Setting SQL Server Default Locations

    Really Nice information. Thanks for sharing.

  • RE: sum - union

    tn_350z (11/9/2010)


    I am sorry, trying to understand how that would work....could you give me little more detail?

    by the way thank you for quick respond its greatly appreciated

    Please refer:

  • RE: sum - union

    You can use WITH ROLLUP.

    For example:

    USE AdventureWorks2008R2;

    GO

    SELECT SalesQuota, SUM(SalesYTD) 'TotalSalesYTD', GROUPING(SalesQuota) AS 'Grouping'

    FROM Sales.SalesPerson

    GROUP BY SalesQuota WITH ROLLUP;

    GO

  • RE: Database Snapshot

    Nice & Easy question.

Viewing 15 posts - 271 through 285 (of 373 total)