Viewing 15 posts - 61 through 75 (of 219 total)
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
August 24, 2011 at 1:49 am
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...
August 24, 2011 at 12:17 am
Nice question.
There is a typo in the answers - "Page Free Spage" should be read as "Page Free Space".
August 17, 2011 at 11:03 pm
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...
April 5, 2011 at 4:06 am
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)
March 31, 2011 at 5:32 am
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...
March 30, 2011 at 12:25 am
I wonder how many records in one's database containing year 1752 😀
December 27, 2010 at 6:50 am
philip.cullingworth (12/20/2010)
But Answer D is7 rows where column d = three
I only have 1 row where column d = three :ermm:
I had read the answers several times before I...
December 20, 2010 at 3:24 am
No rows were inserted into table2? B not C is the correct answer? Terrible, terrible explanation 🙂
December 20, 2010 at 1:32 am
Christian Buettner-167247 (12/16/2010)
December 16, 2010 at 2:16 am
The bad news is that, according to BOL, "this view is applicable only to the tempdb database".
December 14, 2010 at 12:59 am
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...
December 9, 2010 at 1:21 am
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...
December 2, 2010 at 7:48 am
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 viewAre you sure about that? I can't see any comments in that view.
Comments are...
December 1, 2010 at 1:08 am
Viewing 15 posts - 61 through 75 (of 219 total)