Forum Replies Created

Viewing 15 posts - 376 through 390 (of 790 total)

  • RE: INNER JOINS

    Ok, why don't you see how many rows participate in original query. Change it to:

     
    
    select count(*)
    FROM transaction_new
    INNER JOIN departments on transaction_new.rec_dept = departments.rec_dept
    INNER...
  • RE: Triggers across servers.

    Triggers will work. But maybe replication will do it for you too? Anyhow, here's some sample trigger code...

     
    
    SET XACT_ABORT ON
    GO
    CREATE TRIGGER EMP_Update
    ON test.dbo.EMP
    FOR...
  • RE: Storing files in SQL Server

    quote:


    Would I be able to use full text search on the column containing the file contents?


  • RE: How to run Profiler Trace from another Server

    There's no reason why a server/workstation can't run OSQL to run the same SQL script on multiple SQL Servers, initiating an identical Profiler session on each.

    The script will...

  • RE: Backups looked after by shift operators

    You might try adding opsTeam as a db_backupoperator for all existing databases (including model). Change backup jobs so they're owned by opsTeam. To manipulate and rerun backup jobs...

  • RE: Rollback in Sql query window

    yep!

    Sometimes, I will even cover my rear further by doing something before the transaction, such as:

    select * into tempdb..orders from orders

    Sometime I'll take a prior full backup of the database.

    It...

  • RE: Rollback in Sql query window

    Not that I've ever made a mistake myself , but in QA I tend to precede statements/batches that affect live data with a BEGIN TRANSACTION. It's...

  • RE: QOD 8/20/03

    Are you running SQL 2000 or SQL 7?

    Cheers,

    - Mark

  • RE: Time in a conditional

    you can prefix your code with:

    set showplan_text on

    go

    BTW: in the 2nd INSERT did you mean to have different source and destination tables than in the first one?

    Cheers,

    - Mark

  • RE: BCP: how to determine success or failure

    Is the controlling script a T-SQL script (running xp_cmdshell), a windows batch script, or something else?

    You can check for the "n rows copied." output from bcp.

    Cheers,

    - Mark

  • RE: Time Conversion

    I wish I could claim it as my own idea. Just something I once pocketed from someone else's code.

    Cheers,

    - Mark

  • RE: updates on new tables

    ...and the value of @@rowcount after the update should be 100.

    is it?

    What is the value of @@trancount?

    From (another) QA window, can you:

    select count(*) from genderpercentage where percentagefemale = 1

    or:

    select count(*)...

  • RE: updates on new tables

    How many rows are in the table?

    Cheers,

    - Mark

  • RE: updates on new tables

    What's the error message you're getting?

    Cheers,

    - Mark

  • RE: Backup with SQL Srv 2000 on Windows Server 2003

    That 'C:\Intec'looks strange. Mine contains the default SQL backup location.

    Cheers,

    - Mark

Viewing 15 posts - 376 through 390 (of 790 total)