Forum Replies Created

Viewing 15 posts - 1,276 through 1,290 (of 2,064 total)

  • RE: Possible Performance Problem?

    It could be a different execution plan between the stored procedure and the extracted sql code due parameter sniffing. The query plan could help here.

    To capture the sql-statements you can...

  • RE: Deleting a larg amount of data

    You could divide the delete in a set of smaller batches.

    pseudocode

    SELECT  1

    WHILE @@ROWCOUNT>0

    BEGIN

    DELETE FROM test where id in (SELECT TOP 100 from test where deletecondition=true)

    WAITFORDELAY ...

    END

  • RE: Corrupted Database File

    You might search the web on sp_attach_single_file_db. Make sure you have it backed up first.

  • RE: to restore master and model database

    There must be a more elaborate page than this one

    http://www.mssqlcity.com/FAQ/BackRest/ResMaster.htm

  • RE: Waitresource - Find Exact Key

    Hello,

    There is a page about locking in sql server 7,2000 where the key is described.

    See http://support.microsoft.com/kb/224453/

  • RE: SQL SERVER AND EVENT VIEWER ERROR

    Is there anything mentioned in the error logs of sql server?

    Has sql server recently been moved/renamed?

    Looks like a permission issue. Normal admin functions run fine?

  • RE: DSN for remote sql server 2000

    Have a look at

    http://support.microsoft.com/kb/328306/en-us

    Is the remote server Windows Authentication only?

  • RE: HELP with error ''''80020009''''

    you still have the line

    Set rsLogin = conn2.Execute(SQLQuery2) ?

  • RE: HELP with error ''''80020009''''

    Do you have experience with asp?

    Step 1: create connection

    Step 2: execute query

    Step 3: check if there are any results .eof

    Step 4: process results

    Step 5: close recordset

    The function IsNull transforms any...

  • RE: HELP with error ''''80020009''''

    Have you included the function tnull before you call tnull?

    You could also change null to IsNull.(Haven't got any empty values yet)

    To be really sure you should test if sp_getLogin returns...

  • RE: Data import...??

    El,

    The ... was "and so on". The left join causes MATBIT.ITEMCODE to be null if NoSpaces.ITEMCODE isn't found in MATBIT. Actual syntax can differ bases on Access version and how...

  • RE: left join causing results to be multiplied.

    Hello,

    I divided up in 2 and left out worktask,workrequest (not used?)

    select Mileage.users.Uname

    , Mileage.UnameFirst

    , Mileage.UnameLast

    , Mileage.totMileage

    , expenses.totExpenses

    FROM --calculate total mileage per user,per workcompleted

    (

    SELECT users.Uname, users.UnameFirst, users.UnameLast

    ,round(sum(workcompleted.WCmileage), 2) as totMileage

    FROM users /*all...

  • RE: Data import...??

    /*updating existing values*/

    UPDATE MATBIT INNER JOIN [NewPrice List] ON MATBIT.ITEMCODE=[NewPrice List].ITEMCODE SET MATBIT.PRICE = [NewPrice List]!MATBITPRICE, MATBIT.DESC_Col = [NewPrice List]!MATBITDESC_COL;

    /*inserting new values*/

    INSERT INTO MATBIT

    (PRICE,DESC_Col,ITEMCODE )

    SELECT NoSpaces.MATBITPRICE,...

    FROM [NewPrice List] NoSpaces

    WHERE...

  • RE: How to find User Connections

    finding bottleneck:

    Look at the performance counter (cpu, I/O)?

    sp_who2 gives some information about connections, if they are blocked and the amount op cpu,io since the connection started

    sql profiler can start a...

  • RE: sproc output while running

    I havent't used this one, but there is an option-clause for the select statement

    USE pubs

    SELECT a.au_fname, a.au_lname, SUBSTRING(t.title, 1, 15)

    FROM authors a INNER JOIN titleauthor ta

    ON...

Viewing 15 posts - 1,276 through 1,290 (of 2,064 total)