Viewing 15 posts - 811 through 825 (of 921 total)
You could insert the results into the same temporary table, then use SELECT DISTINCT if you want a true union result set instead of UNION ALL.
--Jonathan
October 1, 2003 at 5:50 am
SELECT Qn_Id, Qn_Set, Qn_No
FROM Questions q
WHERE Qn_Id =
(SELECT TOP 1 Qn_Id
FROM Questions
WHERE Qn_Set = q.Qn_Set
ORDER BY NEWID())
ORDER BY Qn_Set
--Jonathan
October 1, 2003 at 5:35 am
quote:
However, if the stored procedure is being called by an application, it is safe to assume that login identity is being provided....
September 30, 2003 at 1:45 pm
quote:
Here is a script my company uses regularly to clean up large logs. The last statement is to ensure the size...
September 30, 2003 at 1:06 pm
quote:
It is a privilege to see so much confusion.
My thought exactly. OP was...
September 30, 2003 at 11:54 am
quote:
Jonathan, you are right in the need for order when using TOP. The problem is that the full query runs in...
September 30, 2003 at 11:16 am
quote:
If I already have the vendor numbers in a permanent table, why would I need to put them in a temporary table?...
September 30, 2003 at 10:31 am
quote:
GuardData: I am gettingSubquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <=...
September 30, 2003 at 10:23 am
quote:
quote:
...One does not drop a database by deleting it from sysdatabases or an updatable...
September 30, 2003 at 9:10 am
UPDATE Master SET Om_Note =
(SELECT TOP 1 SUBSTRING(Txt_Notes,1,60)
FROM OrderNotes
WHERE OrderID = Master.OrderID AND Type_Cd = 9
ORDER BY NoteID)
--Jonathan
Edited by - jonathan on 09/30/2003 09:02:21 AM
Edited...
September 30, 2003 at 9:02 am
quote:
I checked the lightweight pooling and it's not on.
Then I guessed wrong.
September 30, 2003 at 8:41 am
Triggers on views must be INSTEAD OF, not FOR. But there is no useful purpose for the trigger you are creating. One does not drop a database by deleting it...
September 30, 2003 at 8:38 am
quote:
Question being what should the ratio of these counters be. I've read in places that these counters should come close to each...
September 30, 2003 at 8:01 am
In SQL Server 2000, user process SPIDs start at 51. In SQL Server 7, you'd be better off using SIDs, where 0x01 is the system.
--Jonathan
September 30, 2003 at 7:35 am
Backup your databases and then sp_dropserver, sp_addserver and restore.
See question 5 in:
http://support.microsoft.com/?kbid=260414
--Jonathan
September 30, 2003 at 6:36 am
Viewing 15 posts - 811 through 825 (of 921 total)