Forum Replies Created

Viewing 15 posts - 61 through 75 (of 219 total)

  • RE: system stored procecures

    Hafiz Muhammad Suleman (8/24/2011)


    no use and still it executes our db sp when execute sp_one

    Database context should be changed to 'master' before executing the sp_ms_marksystemobject procedure:

    USE master

    GO

    EXEC sys.sp_ms_marksystemobject 'sp_one'

    GO

    USE test2

    GO

  • RE: system stored procecures

    michael.kaufmann (8/23/2011)


    Hafiz Muhammad Suleman (8/23/2011)


    one question : how can we create a system procedure in master by ourselves ?

    I may be wrong, but as far as I know, you cannot...

  • RE: Auto Page Recovery with DB Mirroring

    Nice question.

    There is a typo in the answers - "Page Free Spage" should be read as "Page Free Space".

  • RE: Foreign Keys

    Hugo Kornelis (4/5/2011)


    The index created for a UNIQUE constraint will be clustered if there is no clustered index yet on the table, nonclustered otherwise.

    Not true. See the 'CREATE TABLE' topics...

  • RE: Creating an Indexed View

    tilew-948340 (3/30/2011)


    what would be the query to see the name of indexes on a view?

    Try this one:

    SELECT i.*

    FROM sys.indexes i

    WHERE i.object_id = OBJECT_ID('the_name_of_your_view')

    ORDER BY i.name

    tilew-948340 (3/30/2011)


    A unique clustered index is...

  • RE: Creating an Indexed View

    Good question with wrong answer. Actually, nonclustered, unique clustered, and unique nonclustered indexes can be created on indexed views. Another matter that a unique clustered index must be the first...

  • RE: Fun(?) with DATETIME2

    I wonder how many records in one's database containing year 1752 😀

  • RE: NULL Values and Joins

    philip.cullingworth (12/20/2010)


    But Answer D is

    7 rows where column d = three

    I only have 1 row where column d = three :ermm:

    I had read the answers several times before I...

  • RE: NULL Values and Joins

    No rows were inserted into table2? B not C is the correct answer? Terrible, terrible explanation 🙂

  • RE: Nested Temporary Tables

    Christian Buettner-167247 (12/16/2010)


    This error is raised all the time, and also when you switch the table to which you add this extra column. To me this is a strong indication...

  • RE: mixed_extent_page_count

    The bad news is that, according to BOL, "this view is applicable only to the tempdb database".

  • RE: Build date table

    Very interesting technique.

    But inserting extra data and then deleting them is not the best solution, because delete operations are expensive. It's better to add a condition in order to insert...

  • RE: Nulls

    Good question.

    But this is not an explanation at all:

    Explanation: If a subquery returns any null value the main query will not return any rows

    I suggest the following explanation.

    The SELECT query...

  • RE: Unique constraint on a nullable column

    In SQL Server when you create a unique constraint on a nullable column, NULL would count as a value and you would only be able to use NULL once.

    It came...

  • RE: sys.syscomments

    Christian Buettner-167247 (12/1/2010)


    Nils Gustav Stråbø (12/1/2010)


    Both the definition and the comments can be retrieved from sys.syscomments view

    Are you sure about that? I can't see any comments in that view.

    Comments are...

Viewing 15 posts - 61 through 75 (of 219 total)