Viewing 15 posts - 1,966 through 1,980 (of 3,669 total)
sp_who2 should give you details as to who is accessing your SQL Server.
I've found that SELECT * FROM sysprocesses WHERE Blocked<>0 is also quite revealing. Blocked is the SPID...
July 5, 2010 at 4:03 pm
If you've got dupes in your source then you need to include dupe handling routines in your SELECT query.
If you have a table which has ID values 1,2,3,4 in it...
July 5, 2010 at 4:01 pm
Tony++ (6/29/2010)
June 29, 2010 at 11:34 am
There seems to be an assumption that there is a single field acting as the PK. This isn't necessarily true.
As to calling things ID because its easier for developers...
June 10, 2010 at 2:36 pm
Non-database aware developers have a different perspective to DB aware developers on a particular problem.
I would not advocate having "ManagerEmployeeID", ManagerID is clearly more appropriate. I used to use...
June 8, 2010 at 10:50 am
sanjays-735734 (6/7/2010)
I would like to add something in Your "simple example"...
IF EXISTS(SELECT 1 FROM ... WHERE...)
Instead of this Use following...
IF EXISTS(SELECT TOP(1) 1...
June 7, 2010 at 11:40 am
So here I was in 2006, still using SQL 2000 hearing about the cool features other people were working
Imagine how you'd feel if it was June 2010 and you were...
May 31, 2010 at 2:06 pm
I think data is going to come into ascendancy if it hasn't already. In the old days you needed a DBA simply to keep the lights on, now...
May 30, 2010 at 4:19 pm
My thanks to Paul for his help in resolving the SQL2005 conundrum.
It was my bad. SQL2005 does reclaim space when the clustered index is rebuilt.
SQL2000 doesn't and this I...
May 27, 2010 at 10:12 am
lastory2006 (5/26/2010)
BTW - in the half-page/full-page example - just use varchar and be done with it, while at the same time taking up minimal storage space.
The point of the...
May 26, 2010 at 11:45 am
When you use an ORM tool it effectively hides the schema so you can get away with calling the fields almost anything.
When you are reading down a large block of...
May 26, 2010 at 9:25 am
Paul White NZ (5/26/2010)
This is not so.Rebuilding the clustered index does indeed reclaim the space.
What am I doing wrong Paul? I don't seem to get any space...
May 26, 2010 at 6:59 am
I want to make it totally impossible to use a SQL reserved word or T-SQL extension as an object name.
Being able to wrap up a reserved word in square brackets...
May 17, 2010 at 3:36 pm
I noticed the extended property when I worked through management studio and the script is for when I don't want to use management studio.
for real deployments everything has to be...
April 30, 2010 at 4:22 pm
A thank-you would be nice.
A personal training budget would be fantastic especially if I actually got to use what I learnt on the course.
I've just attended SQLBits 6 in London...
April 17, 2010 at 10:22 am
Viewing 15 posts - 1,966 through 1,980 (of 3,669 total)