Viewing 15 posts - 181 through 195 (of 327 total)
This issue has come up several times recently and to the best of my knowledge, under sql server 2000, you cannot read the prior value of a row once the update...
May 13, 2005 at 11:00 am
Michael,
I'm not sure why UPDLOCK seems to help in this situation but so be it.
One potential problem now is that between the time you Insert into @SelectedId and the...
May 12, 2005 at 9:31 pm
Michael,
It looks like you are setting the isolation level to Repeatable Read, selecting rows and then returnng to the client. I'm not sure but this may be leaving shared or...
May 12, 2005 at 7:35 pm
Repeatable Read looks to be the correct isolation level for the situation you described.
The use of HOLDLOCK will only make the situation worse as this would raise he isolation...
May 12, 2005 at 6:42 pm
Ron - at some point if someone decides to place the clustered index on another column then that's the one that will be "ordered by" IF THERE ARE NO OTHER...
May 12, 2005 at 2:19 pm
You cannot depend on any index to return the data in any specified order for at least these two reason:
1) Your are depending on the current retrieval implementation method of...
May 12, 2005 at 12:22 pm
Also from this site:
ALTER procedure sp_FindText @SearchText varchar(100)
AS
/*
Acknowledgement: Okie_Greg
Source: http://www.sqlservercentral.com/forums
Location: http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=102649&p=2
Date: 21-Apr-04
*/
SELECT sysobjects.name AS 'Stored Procedure'
FROM sysobjects,syscomments
WHERE sysobjects.id = syscomments.id
AND
sysobjects.type = 'P'
AND
sysobjects.category=0
AND
charindex(@SearchText,syscomments.text)>0
RETURN
May 12, 2005 at 9:02 am
And just to add my $.02. From Book Online:
ORDER BY order_list [ ASC | DESC ]
The ORDER BY clause defines the order in which the rows in the result...
May 12, 2005 at 8:41 am
I don't know if this matters but I did this install just the other day I remember using
SAPWD=myPassword
That is without the qoutes around the password.
May 11, 2005 at 2:55 pm
This thread may help.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=181044
May 11, 2005 at 11:13 am
Another example from the Frank Kalis article. How to strip the time from the date (replace Getdate() with any datetime value):
SELECT
DATEADD(d,DATEDIFF(d,0,GETDATE()),0)
------------------------------------------------------
2005-03-23 00:00:00.000
For full explanation read the article found...
May 11, 2005 at 11:02 am
Here's an example from the Frank Kalis article mentioned aboved. For a full discussion on working with sql server dates please read the article.
SELECT
CustomerID
, OrderDate
FROM
Orders
WHERE
OrderDate >= '19960704'
AND
OrderDate < '19960705'
May 11, 2005 at 10:43 am
The between operator is inclusive so you do not want to use it in this case. You would need to do something like:
where... col_date >= @date and < @date...
May 11, 2005 at 10:11 am
Is there anything that currently makes these rows unique?
May 9, 2005 at 12:25 pm
I haven't tested this but you can give it try.
Update YourTable
set MemberSeqNbr =
(Select ISNULL(max(MemberSeqNbr),0) + 1
From YourTable yt
Where yt.MemberNumber = YourTable.MemberNumber)
Where MemberSeqNbr IS NULL
Edit: added isnull to...
May 9, 2005 at 10:59 am
Viewing 15 posts - 181 through 195 (of 327 total)