Viewing 15 posts - 2,221 through 2,235 (of 3,543 total)
![]() | So why does SQL Server 2000 gives 'Aug 2 200' back when I do a left 10 from... |
August 2, 2005 at 7:16 am
use group by instead, eg
select arrangements.description,arrangements.number_sql as arrno,[col1],col[2],[coln]
from events inner join arrangements on events.arrangement_number = arrangements.number_sql
where events.room_number in (61,59, 50)
and events.performance = -1
group by arrangements.description,arrangements.number_sql as arrno,[col1],col[2],[coln]
order by
case lower(@@Orderby)
when...
August 2, 2005 at 7:06 am
No it is not a typo (the highlight and underline is the forum's doing)
Look up syntax in BOL
sp_executesql [@stmt =] stmt
[
{, [@params =] N'@parameter_name data_type [,...n]' }...
August 1, 2005 at 8:02 am
CREATE PROCEDURE [dbo].[linked_Server_Test]
@ORDERID bigint, @errorcode char(2) OUTPUT
DECLARE @Accref varchar(50), @sql nvarchar(4000)
SET @sql ='SELECT @Accref = CustomerID
FROM OPENQUERY(LINKEDSERVERNAME,
''
SELECT CustomerID
FROM dbo.SS_ORDER
WHERE O.OrderID = ' +...
August 1, 2005 at 7:15 am
![]() | I am surprised that I am falling that much behind |
Not as much as I
July 28, 2005 at 9:51 am
Have you defined the parameters as output?
When you execute this in QA do you get any results?
July 28, 2005 at 2:44 am
No. Just make sure they are the same size as the source columns in the Bets table.
July 27, 2005 at 11:08 am
In that case change the code to
DELETE FROM TABLE MatchingBets
INSERT INTO INTO MatchingBets
(BetID,USERID,BETTYPE,Matches,Mystery)
SELECT BetID,USERID,BETTYPE,0,0
FROM Bets
and make sure the table structure contains the following columns in the correct order BetID,USERID,BETTYPE,Matches,Mystery
July 27, 2005 at 10:55 am
Are you using a permanent or temp table?
If you are using a temp table you will get this error in QA if you do not drop the temp table when...
July 27, 2005 at 9:07 am
Yes a built in function would be nice, I bet it would use the equivalent of CHARINDEX & SUBSTRING as PARSENAME probably does
Performance...
July 27, 2005 at 8:59 am
![]() | And even though it may not be useful to the original problem, I think the following is an... |
July 27, 2005 at 7:27 am
SELECT BetID,USERID,BETTYPE,0 as Matches,0 as Mystery
INTO #MatchingBets
FROM #Bets
UPDATE #MatchingBets
SET Matches =
(CASE WHEN NUM1 IN (@Win1,@Win2,@Win3,@Win4,@Win5) THEN 1 ELSE 0 END)
+ (CASE WHEN NUM2 IN (@Win1,@Win2,@Win3,@Win4,@Win5) THEN 1 ELSE 0 END)
+...
July 27, 2005 at 6:56 am
Viewing 15 posts - 2,221 through 2,235 (of 3,543 total)