Forum Replies Created

Viewing 15 posts - 1,546 through 1,560 (of 7,429 total)

  • RE: Calling SP from ASP versus Query Analyzer

    Look for blocking in Profiler and with sp_lock, it may simply be that there selects from the other tables are blocking each other. If so and those tables don't have...

  • RE: Stored Procedure is not working in .net application

    Correct me if I am wrong, but I thought Parameters had to be added in order of SP variables. Thus

                    strQ.Parameters.Add("@DueDate", SqlDbType.SmallDateTime).Value = txtDueDate.Text

                    strQ.Parameters.Add("@CloseDate", SqlDbType.SmallDateTime).Value = txtCompleteDate.Text

                    strQ.Parameters.Add("@Description", SqlDbType.Text).Value...

  • RE: Stored procedure and trigger

    Are you sure it is not blocking itself. It cannot work on the current record if the trigger has locked it. Need to see what the trigger code is and...

  • RE: Joining a self-join

    The problem is you have to be able to set the order of the person and eliminate all but one in the join. If this is for a reporting application...

  • RE: SQL2000 - Very long query using IN does not generate the same query plan.

    Long INs will tend to build a temporary table in memory and perform a join themselves behind the scenes but that threashold of exactly when it will happen can vary...

  • RE: Field Comparison

    Need to know the tables involved DDL and how the data is represented such as hours worked and hours scheduled. Then we can help better.

  • RE: Need some help with something

    Simply something like this.

     

    Update

    T2

    SET

    AccountID = T1.AccountID

    FROM

    Table2 T2

    INNER JOIN

    Table1 T1

    ON

    T2.CompanyName = T1.CompanyName

  • RE: Query Error Message

    What exactly are you running in Query Analyzer. I have done a few things, syntax wise wrong, that have caused this in the past.

  • RE: security issue with NT Authority\System and at command

    Your answer is yes and no.

     

    Yes at got thru NT Authority\System you cannot remove at from that I do believe unless at is now tied to Task Scheduler service (which...

  • RE: SqlInfoMessageEventHandler/RAISERROR caching?

    I assume that you posted to the MS groups as well as I found this response there and it looked like your message as the request.

     

    This is the current behavior...

  • RE: How does SQl UPdate

    As for the part about the whole row changing, the underlying engine knows which were expressly changed via the set, so only those could affect any index changes, the others...

  • RE: How to retrieve intermediate records using SQL or T-SQL?

    As long as you are always are sorting on the key fields then try

     

    select top 100 * from (select top 300 * from tblX order by keys asc) tblI Order...

  • RE: Anyone pre-cache?

    All that said, you are already exploring the indexes. I would also suggest looking at the IO subsystem (hard drives, etc) to see if you can rebalance things to squeeze...

  • RE: Probability of corrupt data

    Majority of any issues were data actually is corrupted is application not SQL, otherwise you should get errors. I however wouldn't use MSDE for anything critical as it is a...

  • RE: Width for Procedure Parameters

    Short and simple, always provide the width with char, varchar and varbinary. And always set the precision and scale for numeric, decimal and so on.

Viewing 15 posts - 1,546 through 1,560 (of 7,429 total)