Forum Replies Created

Viewing 15 posts - 2,551 through 2,565 (of 49,571 total)

  • RE: SELECT permission denied

    inevercheckthis2002 (8/24/2016)


    GilaMonster (8/23/2016)


    If they're getting denied access to just one table, then there's a object-level permission set on that table. Check the DMVs for the details, you can then use...

  • RE: Buffer pool memory questions

    Tac11 (8/24/2016)


    or this is not even a issue?

    Yup. It's normal, expected, desired behaviour. You really don't want SQL fetching data from disk every time it needs to read a row...

  • RE: Using coalesce in a single table

    So put the GROUP BY inside the subquery, not replacing the DISTINCT in the outer query? It's not clear from the post.

  • RE: Using coalesce in a single table

    Luis Cazares (8/24/2016)


    Also, using DISTINCT is expensive. In this case, you should try using GROUP BY.

    Which will behave exactly the same as the DISTINCT. Since he wants distinct values, DISTINCT...

  • RE: LOB data types

    navtec (8/24/2016)


    I do think maybe the max_lengths are large for those columns which may be prompting SQL Server to treat them as LOB objects.

    The only time that a varchar/nvarchar column...

  • RE: SQL 2014 performance is slow when migrated from sql 2008

    Best thing to do is identify the queries which are slower under the new CE and tweak them and/or indexes to improve the performance.

    The legacy cardinality estimator option is the...

  • RE: LOB data types

    navtec (8/24/2016)


    I have checked the index in question and the only column data types it has are

    Clustered index, or nonclustered?

    What's the complete table definition (post the CREATE TABLE) and index...

  • RE: LOB data types

    navtec (8/24/2016)


    Maybe there was a large amount of data in that nvarchar column which caused sql server to treat it as a LOB during online index rebuilding?

    NVARCHAR(MAX) is a LOB....

  • RE: Do Not Return Matching Rows

    shirolkar.anand (8/24/2016)


    you can use the following code to get the desired O/P-

    SELECT CityName,StateName FROM @Cities where CityName NOT IN (SELECT distinct CityName from @Cities WHERE StateNAme = 'ALL')

    Which, other than...

  • RE: LOB data types

    navtec (8/24/2016)


    Still very strange why SQL Server would pick up on nvarchar data type as a LOB data type though.

    NVARCHAR(MAX) is a LOB. Any other NVARCHAR is not LOB.

  • RE: What happens to the deadlock victim?

    If there's no explicit transaction, then any changes that have been made and commited are persistent, any uncommitted are rolled back when the deadlock victim is killed.

  • RE: SQL database files

    prettsons (8/23/2016)


    Microsoft offers DBCC CHECKDB with three options to fix database corruption issues: repair_rebuilt, repair_fast & repair_allow_data_loss. All these are able to fix database issues.

    https://msdn.microsoft.com/en-us/library/ms176064.aspx

    REPAIR_FAST

    Maintains syntax for backward compatibility only....

  • RE: sort_in_tempdb

    Depends whether you want the index creation to use TempDB for sorting or not.

    That option isn't persisted anywhere, it's effective only for the create/alter that it's specified on and no...

  • RE: What happens to the deadlock victim?

    Rolled back to the beginning of the transaction. Hence if you have a procedure that does multiple data modifications without an explicit transaction, what had completed and committed is permanent...

  • RE: LOB data types

    Filestream isn't a datatype. It's an attribute of a varbinary data type column. Bigint is definitely not considered as large object, it's a grand total of 16 8-bytes in size.

    Your...

Viewing 15 posts - 2,551 through 2,565 (of 49,571 total)