Viewing 15 posts - 1,711 through 1,725 (of 1,995 total)
not sure about the performance drop, but i might be able help you on the convert problem
the issue is convert(decimal(18,0),a.itemnumber - your where clause filters out alphas, but it...
January 18, 2006 at 5:46 am
can you post both queries? these may give you different results (sometimes)
you can see the difference in the exec plan by pasting in to sql query anlyser and choosing the...
January 18, 2006 at 5:06 am
UDT's are present and supported in SQL server 2005
however defaults and rules are deprecated (they still work, but you can't edit them or create new ones
January 18, 2006 at 4:59 am
if it's the connection then that problemw ould apply to all commands issued, not just xp_cmdshell
have you tried a simple xp_cmdshell 'Dir c:\' command to check other xp_cmdshell actions
or try...
January 18, 2006 at 4:48 am
SELECT MediaNewsId, MediaNewsHeadline, MediaNewsReleaseDate, MediaNewsBody
FROM CC_MediaNews
WHERE (PublishOnIntra = 1 OR @READONLY=1) AND StoryStatus = 4 AND MediaNewsReleaseDate <= GetDate() AND Project = @ProjectID
ORDER BY MediaNewsHeadline
i think is what Preethiviraj...
January 18, 2006 at 4:42 am
eek - it sounds like you have a few problems !!
A couple of suggestions here
- ensure your database transaction logs are backed up or databases are in simple mode....
January 18, 2006 at 4:26 am
can you post examples of a query where this happens?
January 18, 2006 at 4:18 am
take the database offline ASAP- take a copy of the files to a new array or remote location and check the disk out
problems with the disk could lead to corruption...
January 18, 2006 at 4:17 am
i'd also advise the following changes
if update (Inaktiv)
begin
if (select Inaktiv from inserted)(select Inaktiv from deleted)
begin
INSERT INTO ....
end
end
that way your trigegr doesn't fire when you update a row but set it's...
January 18, 2006 at 4:12 am
CREATE PROCEDURE spGetNews
@ProjectID Int,
@ReadOnly bit
AS
set nocount on
if @readonly=1
begin
SELECT MediaNewsId, MediaNewsHeadline, MediaNewsReleaseDate, MediaNewsBody
FROM CC_MediaNews
WHERE StoryStatus = 4 AND MediaNewsReleaseDate <= GetDate() AND Project = @ProjectID
ORDER BY MediaNewsHeadline
end
if @readonly=0
begin
SELECT MediaNewsId, MediaNewsHeadline,...
January 18, 2006 at 4:06 am
this sounds a little like the SQL service account may not have the relevant permissions for command executed by xp_cmdshell
although it's just a wild stab in the dark
January 18, 2006 at 4:02 am
i'd also suggest the following change
CREATE TRIGGER InsteadUPDATERegistrationTrigger on Registration
INSTEAD OF UPDATE
AS
if update(username)
begin
if (select inserted.username...
January 17, 2006 at 8:58 am
jeff,
i'm not sure why you're using triggers for this - can't you just put a unique constraint on the username field?
that would be a lot simpler
January 17, 2006 at 8:24 am
my advice from recent experience with asp(.net) is to use Stored procedures to retreive data and update data
your stored procedure to update the tables could easily perform multiple update statments...
January 17, 2006 at 8:13 am
Viewing 15 posts - 1,711 through 1,725 (of 1,995 total)