Forum Replies Created

Viewing 15 posts - 361 through 375 (of 489 total)

  • RE: Some Questions for you to answer.

    I'm making enough to comfortably support a family of six and am confident I'll get a raise in May. And I've only been working with databases for about 3...

  • RE: Capturing Deadlock Info

    Well that was an excersice in futility. I can make the process work, but without a trigger on sysprocesses, the performance hit is very high. I just experimented...

  • RE: Capturing Deadlock Info

    I've discovered that. However, I think I could have made the trigger only fire when blocking occured.

    Robert Marda

  • RE: Capturing Deadlock Info

    I'm already able to capture the spids (only the ones involved in the deadlock). I'm trying to figure out the best way to continuously scan for deadlocks. I...

  • RE: Capturing Deadlock Info

    Thanks for the links. I have read the article on blocking for SQL Server 7.0 and it doesn't appear to allow specific checking for deadlocks. It looks like...

  • RE: Server Role to Execute SP's?

    As far as I know, no.

    However, what we do is create a role in each database and give that role execute permissions to all stored procedures. Then we place...

  • RE: Capturing Deadlock Info

    My focus of concern is as continuous a check as possible and without using profiler.

    These blocking scripts. Where can I find them? and do they capture all blocking...

  • RE: Changes in the Articles

    If you are using SQL Server 2000 you should be able to use sp_repladdcloumn or sp_repldropcloumn if the table changes where for adding and/or removing columns. There might be...

  • RE: Eval equation, which is a string in a table

    Good question. I have begun to wonder this myself. When I started at bigdough.com almost all stored procedures used dynamic SQL. Gradually, I have been converting them...

  • RE: MULTIPLE ORDER BY in a stored procedure.

    I copied the CASE statements and put a SELECT in front of them and removed the DESC and ASC at the end.

    Without reading up on the subject, I'd have to...

  • RE: ADO/T-SQL - Using the IN operator in a DELETE

    You can avoid dynamic SQL by using code like this:

    DECLARE @ClientList varchar(100), @len int, @CurPos int, @PrevPos int

    CREATE TABLE #ClientList (names varchar(35))

    SET NOCOUNT ON

    SET @ClientList = '0,1,2'

    SET @len = LEN(@ClientList)...

  • RE: MULTIPLE ORDER BY in a stored procedure.

    Here is an example using the pubs database that can handle ASC and DESC in one query:

    DECLARE @OrderBy varchar(10), @Sequence varchar(4)

    SET @OrderBy = 'au_lname'

    SET @Sequence = 'DESC'

    SELECT *

    FROM authors

    ORDER BY...

  • RE: default standard login question

    If you know the password you could change the password. That way if someone screams, you can easily put everything back.

    Another option would be to script everything related to...

  • RE: xp_sendmail and variables in @query

    I think you can fix this by using a temp table. Put all the e-mails in a temp table and then use the temp table in place of:

    (select productid...

  • RE: Eval equation, which is a string in a table

    Try something like this:

    CREATE TABLE #temp(equation varchar(20))

    INSERT INTO #temp(equation)

    exec("select equation from control where idnr=" + idnr)

    Or use a permanent table to insert into.

    Robert Marda

Viewing 15 posts - 361 through 375 (of 489 total)