Forum Replies Created

Viewing 15 posts - 13,756 through 13,770 (of 13,792 total)

  • RE: SQL server 2000 : strange bugs...

    Can you post the exact error message that you are getting and the circumstances under which it is displayed?

  • RE: Divide By Zero Error in WHERE Clause

    Kenneth, if field1 is anything other than zero, your solution won't produce the required result: instead it will produce (field1 + (other calculations)), in the case where field2 is zero.

    However,...

  • RE: Divide By Zero Error in WHERE Clause

    I think the Case statement is the way to go.  Something like this:

    SELECT Field1, Field2, etc...

    FROM tbl_Purchase

    WHERE ((case field2

    when 0 then 0

    else field1/field2

    end)

    + (other calculations)) > 0

    Regards.

  • RE: TRigger Problem

    So, on insert to table2, need to set t2.refno to

    select refno from table1 t1

    where t1.email1 = t2.email2?

    (where t2 is aliased to table2)

    Is table1.email1 unique?  If not, obviously an issue here...

  • RE: TRigger Problem

    This is a bit confusing and needs a bit more info.  Are you saying that every time you create a record in table1, you need to create an associated record...

  • RE: Append query - best architecture

    Nice thinking and thanks for the response - you've approached it from an angle I hadn't considered. 

    But had to get on with it and have already written a wedge...

  • RE: Data file

    This is from BOL – SQL Server 2000 and gives you lots of useful capacity info.
     

    Send...</a></td><p></tr><p></tbody><p></table><p></div><p></div> </div> <div class=

    June 17, 2004 at 9:34 pm

    #510948

  • RE: programmatically switching off (x row(s) affected) in query analyser results pane

    Use 'set nocount', eg

    set nocount on

    select etc

    ...

    set nocount off

    Regards

    Phil

  • RE: Running stored procedure in QA - ODBC Error

    Excuse my lack of knowledge, but how do you control the method by which QA connects to a particular SQL Server instance?

    Cheers.

  • RE: Running stored procedure in QA - ODBC Error

    Windows 2000.  SQL Server 2000 SP3.

    Cheers

    Phil

  • RE: Select latest 2 records - Select top?

    Think you can do it with a UNION query – something like:

    select name, max(last_seen)

    from test

    group by name

    union

    select t1.name, max(t1.last_seen)

    from test t1

    inner join test t2

    on t1.name = t2.name

    where t1.last_seen < t2.last_seen

    group by...

  • RE: Dumb SQL question....

    The sysuser_sysusergroup and sysuser tables do not even exist on my SQL Server 2000 installation – are they standard?  I'm sure that I could help out if I understood the...

  • RE: Alert conditions - what is best

    Eh?

    Bit more detail required here.

  • RE: date ( check constraints what ever)Problem in SQL-SERVER 2000

    Two ways spring to mind.

    1) When the application sets the deleted flag to 'Y', why doesn't it set the deleted date as well as part of the same transaction?  This...

  • RE: TSql Script

    Try this:

    select top 10 * from information_schema.routines

    where routine_type = 'procedure'

    and then refine to get the fields/data you want.

  • Viewing 15 posts - 13,756 through 13,770 (of 13,792 total)