Viewing 15 posts - 38,326 through 38,340 (of 49,571 total)
SELECT BENCAT,
SUM(CASE Gender WHEN 'M' THEN 1 ELSE 0 END) AS NumMales,
SUM(CASE Gender WHEN 'F' THEN 1 ELSE 0 END) AS NumFemales
FROM [dbo].[masterenroll]
WHERE DMIS = '0005'
GROUP BY BENCAT
The distinct's...
June 19, 2009 at 1:49 pm
No. In fact, only the moderator can lock a topic and there's no mechanism to close a topic.
June 19, 2009 at 1:28 pm
YSLGuru (6/19/2009)
June 19, 2009 at 12:14 pm
YSLGuru (6/19/2009)
June 19, 2009 at 11:59 am
Table definitions?
Is the first worksheet the sample data? What's in the second worksheet?
Can you perhaps explain, in detail, exactly what the trigger is supposed to do.
June 19, 2009 at 9:26 am
MothInTheMachine (6/19/2009)
It is still at 0kb. I ran through the pages of the site a few times so it should show something for a size.
Sometimes the size doesn't update immediatly,...
June 19, 2009 at 9:15 am
If you look at that article is covers a way to post sample data. If you can't get that to work, zip and attach an excel spreadsheet with sample data....
June 19, 2009 at 9:08 am
Adam Bean (6/19/2009)
Indeed. Sorry, I hate people who don't post in the right forums, but I hang out primarily in the 2005 forums and it gets alot more traffic.
The...
June 19, 2009 at 9:03 am
Hang on.... sysobjects? This is a SQL 2000 server?
I've requested Steve to move this to a SQL 2000 forum.
Generally, with CheckDB if there's a repair level specified then the error...
June 19, 2009 at 8:57 am
Is that the full and complete output of checkDB? If not, please run the following ad post all of the output.
DBCC CHECKDB (< Database Name > ) WITH NO_INFOMSGS, ALL_ERRORMSGS
June 19, 2009 at 8:34 am
MothInTheMachine (6/19/2009)
1. IS the trace file I've edited saved with a trc or sql extension?
If it's the SQL commands that you're talking about, it's a sql script, hence .sql
2. I...
June 19, 2009 at 8:31 am
One I asked once (in an interview for senior position) was how to repair a torn page without losing any data. Anyone want to guess the answer I got?
June 19, 2009 at 6:50 am
You wanna maybe tell me why you want to remove an entry from an error log? The main use I could see for that is to hide evidence of something...
June 19, 2009 at 6:49 am
Eswin (6/19/2009)
Can you please help me with how to about optimizing stored procedures containing cursors.
Without seeing the procedure all I can suggest is to try and replace the cursor with...
June 19, 2009 at 3:34 am
Server-side trace. Far less impact than profiler and you can schedule it with SQL Agent.
There's a section on creating a server side trace here - http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/
June 19, 2009 at 3:24 am
Viewing 15 posts - 38,326 through 38,340 (of 49,571 total)