Viewing 15 posts - 46,906 through 46,920 (of 49,552 total)
SQL Noob (4/14/2008)
don't think the data in a clustered index has to be unique
It doesn't have to be unique, but it it's not, SQL will make it unique behind 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
April 15, 2008 at 12:20 am
Selects by themselves cannot cause deadlocks at the default isolation level. A deadlock requires that two connections are holding and wanting locks on resources such that each connection wants a...
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
April 14, 2008 at 7:52 am
Not using helptext, but it you don't mind using a query rather, this will work.
Select name, definition
FROM TheOtherDB.sys.sql_modules sm inner join TheOtherDB.sys.objects o on sm.object_id = o.object_id
where name...
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
April 14, 2008 at 6:50 am
The WHERE should be an ON
CREATE TRIGGER On_Delete
ON tblActivityArchive
AFTER DELETE
AS
BEGIN
...
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
April 14, 2008 at 6:43 am
And if you do decide to go ahead, make sure you exclude any logins used by the SQL engine and SQL agent, and also the cluster service (if it's a...
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
April 14, 2008 at 6:36 am
Jeff Moden (4/14/2008)
The country "Code" has to match the first 1 to 3 digits of either the ANI or the Dial_Digits. You wouldn't know that unless you've worked with...
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
April 14, 2008 at 6:18 am
jitendrapatil2006 (4/14/2008)
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
April 14, 2008 at 6:05 am
How are the two tables related to each other? How do you tell which starting date goes with which country?
Can you give a few rows of sample data and what...
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
April 14, 2008 at 3:46 am
How are the two tables related to each other? How do you tell which starting date goes with which country?
Please take a look at the following article for suggestions on...
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
April 14, 2008 at 1:24 am
I'm very much hoping to attend. Though, since I'll be 4 months into a new job at the time, it may be a little tricky.
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
April 14, 2008 at 1:20 am
Are there any strange messages in the SQL error log from about the time that the database goes unavailable?
What errors do you get if you try and access the DB?
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
April 14, 2008 at 1:19 am
Are you using SQL 2005? If so, can you post the execution plan please (save as a .sqlplan file, zip and attach please)
My initial thoughts - 90 000 out of...
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
April 14, 2008 at 1:17 am
It's best to do a reindex first and never to shrink.
Databases need to have some free space within them to work. If you shrink one down to the minimum size,...
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
April 11, 2008 at 8:09 am
Interesting. Ok, will take that back. There's nothing wrong with having begin tran and commit in different batches though. This does work without error
BEGIN TRAN
GO
WAITFOR delay '00:00:10'
GO
COMMIT TRAN
Looks like SQL...
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
April 11, 2008 at 7:57 am
I wasn't speaking about the occations when yuo need a cross join. If you need a full cartesian product, then just list the tables. Dunno about you though, but I...
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
April 11, 2008 at 7:21 am
Viewing 15 posts - 46,906 through 46,920 (of 49,552 total)