Viewing 15 posts - 4,231 through 4,245 (of 5,393 total)
Oksana March (5/26/2010)
Gianluca Sartori (5/25/2010)
-- Gianluca Sartori
May 26, 2010 at 2:36 am
I suppose that the rank is based on the fact that the sequence on column "Data" continues without changes.
If this is correct, it can be done this way:
DECLARE @RankTest TABLE...
-- Gianluca Sartori
May 25, 2010 at 10:39 am
You can set up a filter on object_name or object_id. That should be enough.
You could start from the "tuning" template and script it out as server-side trace.
Hope this helps
-- Gianluca Sartori
May 25, 2010 at 10:07 am
Disappointment is somehow commensurated to expectations.
His signature sets a quite high expectiation.
I would change signature into "Absolute noob", so that every time he gets it right turns into a nice...
-- Gianluca Sartori
May 25, 2010 at 10:02 am
Steve Jones - Editor (5/25/2010)
Gianluca Sartori (5/25/2010)
I can't understand why limiting posts here is so important.Am I missing something?
Grant's just trying to get real work done.
Ah, that's ok. I thought...
-- Gianluca Sartori
May 25, 2010 at 9:43 am
I can't understand why limiting posts here is so important.
Am I missing something?
-- Gianluca Sartori
May 25, 2010 at 9:19 am
Grant Fritchey (5/25/2010)
-- Gianluca Sartori
May 25, 2010 at 9:12 am
SELECT *
FROM INFORMATION_SCHEMA.TABLES AS T
WHERE TABLE_TYPE = 'BASE TABLE'
AND EXISTS (
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS AS C
WHERE C.TABLE_CATALOG = T.TABLE_CATALOG
AND C.TABLE_SCHEMA = T.TABLE_SCHEMA
AND C.TABLE_NAME = T.TABLE_NAME
AND COLUMNPROPERTY(
OBJECT_ID(QUOTENAME(C.TABLE_CATALOG) + '.' + QUOTENAME(C.TABLE_SCHEMA) +...
-- Gianluca Sartori
May 25, 2010 at 6:41 am
karthikeyan-444867 (5/25/2010)
I have more than 250 tables in my database. i just want to prepare the list where as the table has primary key only on IDENTITY column.how?
COLUMNPROPERTY(table_id, column_name, 'IsIdentity')
-- Gianluca Sartori
May 25, 2010 at 6:27 am
Brain dumps are not allowed and violate the NDA. Don't look for the exact questions, try instead to take the chance of this exam to learn as much as you...
-- Gianluca Sartori
May 25, 2010 at 2:12 am
Probably PRINT introduces less overhead.
If inside a loop, consider that SSMS can handle a limited number of resultsets.
I don't know if this is what you were asking, I hope this...
-- Gianluca Sartori
May 25, 2010 at 2:08 am
This should do the trick for you:
DECLARE @test-2 TABLE (
VK int,
PK int,
FK int,
Amt int
)
INSERT INTO @test-2
SELECT 3, 130, 129, 100 UNION ALL
SELECT 3, 130, 130, 100 UNION ALL
SELECT 3, 130,...
-- Gianluca Sartori
May 25, 2010 at 1:59 am
Nobody can give a sensible answer to this question, but you.
I could say "all the Euros you saved * 0.77", but I'm sure it won't help. 🙂
You have to...
-- Gianluca Sartori
May 25, 2010 at 1:42 am
This problem has been covered so many times that I'm surprised that Google doesn't give you a clue. Does it?
-- Gianluca Sartori
May 24, 2010 at 7:53 am
I'm sorry, but I can't understand why UNION ALL doesnt' fit your needs.
Can you post the desired output of your "merged" query please?
-- Gianluca Sartori
May 24, 2010 at 7:24 am
Viewing 15 posts - 4,231 through 4,245 (of 5,393 total)