Forum Replies Created

Viewing 15 posts - 526 through 540 (of 790 total)

  • RE: QOD 8-4-2003 Disagree with answer...

    I actually liked this question. Not only was it a reminder to test things that BOL is ambiguous or unclear about, but it was a prompt to me to...

  • RE: Inserting records from one table into many tables

    I think you're out of luck trying to INSERT to multiple tables. Even if it were defined as a view it would not be an "updatable" view because of...

  • RE: SQL

    Hi SQLBill,

    Actually, your example would return 1,2,2 in both cases.

    An example that would demonstrate WITH TIES is only slightly different:

     
    
    SELECT TOP 2...
  • RE: Naming Conventions

    Tonight

    Cheers,

    - Mark

  • RE: Naming Conventions

    Vivian,

    I've seen such standards documented at various sites, but not for public consumption. Why not? Beats me.

    But, one SQL organisation here in Oz called SSW has a number...

  • RE: SQL

    Jacobe,

    If you order by SALARY or SALARY ASC you'll get the lowest 5 salaries.

    If you order by SALARY DESC you'll get the highest 5 salaries.

    Cheers,

    - Mark

  • RE: SQL

    I'm not quite sure of the result you want, but you could try, for starters:

     
    
    select * from
    (
    select top 5 with...
  • RE: Distributor per publication

    My guess is NO. Hard to find anything in BOL that states explicitly whether you can or not, but my answer is based on:

    1) you can't run sp_adddistributor twice

    2)...

  • RE: 1st SELECT after INSERT

    I think you might be expecting too much of the SQL engine. YOU know that the 20 various rows just inserted will satisfy the query you subsequently execute, but...

  • RE: Triggers and multiple row updates

    Bobster,

    UPDATE() doesn't need to be tested for each row, because it is true for the entire set. ie. the single- or multi-row update is fired by something like:

  • RE: Installing SQL server 2000 on Windows 2003 Server

    oh well, scratch that theory.

    anything in the setup log/s?

    Cheers,

    - Mark

  • RE: Installing SQL server 2000 on Windows 2003 Server

    You're not trying to install on Win 2003 Beta, or the Web Edition are you? There's issues/restrictions with them.

    Cheers,

    - Mark

  • RE: discarded records BULK INSERT

    I think you're out of luck with BULK INSERT, whereas I believe BCP gives you the option of specifying a "discard" file.

    Cheers,

    - Mark

  • RE: Customizing the output of a System stored proc

    Vivian,

    Rather than capturing SP_WHO output, you could go straight into sysprocesses (like SP_WHO does anyway). The following captures all current connections from "MyPC" into a temporary table #who...

  • RE: Finding the top ranked item with multiple entries

    How about:

     
    
    SELECT DISTINCT ,
    (SELECT TOP 1 [office] FROM UserOfficeCount WHERE = A. ORDER BY [count] DESC) [office]
    FROM UserOfficeCount...

Viewing 15 posts - 526 through 540 (of 790 total)