Forum Replies Created

Viewing 15 posts - 361 through 375 (of 663 total)

  • RE: Query Analyzer

    How many records/columns in customers

  • RE: how to count and return zero

    As J.O.S. was suggesting

    SELECT Sn.[id],COUNT(*) AS coun_id

    FROM Sn RIGHT JOIN SilokE ON sn.[id]=SilokE.[id]

    Where sn.[id] IS NULL

    GROUP BY SilokE.[id]

    For all remove the where clause.

  • RE: Case-sensitive issue

    Have a look at : Making the most of SQL Server 2000 collations at http://www.itworld.com/AppDev/136/ITW3856/pfindex.html

  • RE: Security Methodology Using Roles

    Quit interesting the subjective part of the discussion.

    Remind me of an article, think it was a Barbara Kitchen, why do a lot of projects fail : Visibility and Communications. Chuck...

  • RE: date format

    SQL Internal Datetime:

    datetime

    Date and time data from January 1, 1753 through December 31, 9999, to an accuracy of one three-hundredth of a second (equivalent to 3.33 milliseconds or 0.00333 seconds)....

  • RE: Triggers vs. Foreign-keys?

    I basic need/purpose is to perform some integrity checks, whether through triggers, foreign keys, stored procedures, etc.

    I think one should look at the seq in which the server apply foreign...

  • RE: Trigger to Update two fields in table

    What about the nested firing of triggers are on?

  • RE: unique values

    Oops, should have added the following:

    Open Query Analyser.

    Change database to your database.

    Copy and paste code from previous post.

  • RE: unique values

    Is this what you want?

    CREATE TABLE [dbo].[Test] (

    [ColA] [int] NOT NULL ,

    [ColB] [varchar] (5) NOT NULL ,

    [ColC] [money] NOT NULL)

    GO

    ALTER TABLE [dbo].[Test] WITH NOCHECK ADD

    CONSTRAINT [PK_Test] PRIMARY KEY ...

  • RE: better locking model

    Thanks for replying.

    Just read the thread again.

    You have said it already, "No hints, no special tricks, just good development practives, proper testing and keeping transaction ops short and batchs down/overnight."...

  • RE: better locking model

    CKempste will you supply a bit more info. on your environment, standards, etc.

  • RE: After Insert Trigger

    To leave the database in a consistent state.

    If the trigger detect an error a rollback / undo of the 'insert' is automatically performed.

    Read about Codd and his 10 relational commandments.

  • RE: using "IN" in my query ... suggestions?

    I think there was a discussion on this site about the 'limit' in 2000, bit low on fuel to search for it.

    Other potential problem with IN is NULLS and NOT...

  • RE: A Simple Question

    Stop SQL server. Copy mdf / ldf to another SQL Server and try to attach the database.

  • RE: Stored Procedure

    What is better to use the on clause exclusive for the links between tables or to add everything into the on clauses, thus making the where clause fairly small

Viewing 15 posts - 361 through 375 (of 663 total)