Viewing 15 posts - 34,771 through 34,785 (of 49,552 total)
What did you try to run that cause that error?
Alter Index Rebuild?
Alter Index Reorganise?
Drop index?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 13, 2010 at 12:15 am
Ok, so the 'first' row is the one with the lowest Area?
If so, try this.
SELECT
Area
,StateName
,CityName
,ACCOUNT_NO
,CUSTOMER_NAME
,CounterNo
,ROUTE_No
,Address
,TeleNumber
FROM
(SELECT
Area
,StateName
,CityName
,ACCOUNT_NO
,CUSTOMER_NAME
,CounterNo
,ROUTE_No
,Address
,TeleNumber
, Row_Number() OVER (PARTITION BY ACCOUNT_NO...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 13, 2010 at 12:14 am
Fortunately the damage here is all in a nonclustered index and hence completely repairable.
Drop the index IDX_MYTABLE1_2 on MYTABLE1 and recreate it. Do not rebuild it, that may fail due...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 13, 2010 at 12:08 am
bbryce (1/12/2010)
Are the only logistial issues that I might try to drop a table that doesn't exist after SQL is (re-)started... ?
No the issue is, if it's a permanent table...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 13, 2010 at 12:01 am
ifila (1/12/2010)
Use
CREATE PARTITION FUNCTION
or
CREATE PARTITION SCHEMA
.....but as you all know i suck at SQL, so i really dont know exactly how to use this...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 11:59 pm
J-F Bergeron (1/12/2010)
GilaMonster (1/12/2010)
Yes, we have electricity and internet (most of the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 11:22 am
Can you uncheck the checkbox under publication properties?
If not (or if it doesn't change the output of DBCC opentran), please try this.
Create a transactional replication publication.
Add a single table as...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 11:12 am
Depends. Permanent table in TempDB or #table?
Do note that creating permanent tables in TempDB is a bad idea and has a number of logistical problems since TempDB is recreated from...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 11:09 am
Those are views in the INFORMATION_SCHEMA schema. However, afaik they are not in master at all, but are in the hidden system database (which you cannot edit).
Try
REVOKE SELECT ON INFORMATION_SCHEMA.CHECK_CONSTRAINTS...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 11:08 am
John Rowan (1/12/2010)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 11:06 am
GSquared (1/12/2010)
(This completely ignores that rideable elephants are Asian, and the African ones aren't really domesticated that way. )
They aren't?
There should be a 'usually' there. I have ridden an...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 11:04 am
Johannesburg, South Africa. For anyone who's geography a little weak, that's at the southern end of the African continent.
Yes, we have electricity and internet (most of the time), we don't...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 9:24 am
How about posting the objects and permissions that you can't drop. Then we can advise appropriately.
I know you don't want a lecture, but I wasn't joking when I said that...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 9:21 am
Can you just go through all of the publications, make sure none of them are transactional, because if there is one, the advice I'm going to give will break it?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 9:16 am
Can you check and confirm that there is absolutely no transactional replication in that database?
What does DBCC OPENTRAN return?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 12, 2010 at 7:59 am
Viewing 15 posts - 34,771 through 34,785 (of 49,552 total)