Viewing 15 posts - 676 through 690 (of 700 total)
Why bother with the GROUP BY and HAVING? A simple WHERE meets your needs here.
SELECT @RetVal = MAX(RevNo) + 1 FROM dbo.tblRevision WHERE DocumentID = @DocumentID
February 22, 2006 at 11:07 am
'Joins' in diagrams are actual relations - a.k.a. Foreign Key Constraints. What you are trying is not an option in database diagrams.
Outer joins are for queries. If you need to...
February 20, 2006 at 12:03 pm
Well, this one often falls into the same religious-war category as allowing NULLs in columns; many people don't like to change their ways. This thread should get rather heated. Let's see...
February 17, 2006 at 9:43 am
Because you aren't performing any aggregate functions (sum(), count(), min(), ...), you don't need to use GROUP BY. The DISTINCT will take care of it.
Otherwise, you will need to add all...
February 16, 2006 at 12:39 pm
CALs - either per-seat or per-user - do not count connections. If a user has a per-user CAL, that user may simultaneously open multiple connections to several per-server-licensed SQL Server services...
February 15, 2006 at 4:39 pm
I got my paper score reports and vouchers for 71-431, 71-441, and 71-444 over the last two weeks.
I took mine at a Thomson-Prometric center. People who took them with...
February 13, 2006 at 1:03 pm
Option #2: T-SQL. "It's greyed out when I try" sounds like you're trying this in Enterprise Manager. Fire up Query Analyzer and:
1. Ensure all the tables you're referencing were created...
February 10, 2006 at 1:25 pm
For per-processor licensing, you license only the processors you use, not the number of processors in the box. You can choose to license some or all of the processors in...
October 26, 2005 at 1:13 pm
There is no raw performance gain from having multiple filegroups on the same physical array.
However, you can manage backups on different schedules to shrink backup times by placing tables that...
October 26, 2005 at 12:59 pm
To log in to SQL Server as another NT-authenticated user:
1. Find EM, Query Analyzer, etc. shortcut icon.
2. Shift+right-click the icon
3. Select 'Run as...'
4. Provide user/pass/domain info
The...
October 26, 2005 at 12:53 pm
sp_OAStop will stop the COM execution layer, which should release all open references to your library - and every other active in-proc COM call as well. See BOL for...
October 26, 2005 at 12:10 pm
October 19, 2005 at 10:11 am
It's not something built in to the current Reporting Services. It's still possible, though. In order to use a multivalued parameter, you have to do some extra work, and it's...
October 5, 2005 at 1:10 pm
Instead of a 'report control', Reporting Services reports may be opened using the application designed for the report type - a web browser (or web browser control) for HTML reports,...
September 30, 2005 at 6:11 am
Ask the developer to look up "ADO.NET" on MSDN.
Normally, when a solution involves xp_cmdshell, it's time to look at the solution. There's often...
January 25, 2005 at 7:20 am
Viewing 15 posts - 676 through 690 (of 700 total)