Forum Replies Created

Viewing 15 posts - 1,246 through 1,260 (of 1,412 total)

  • RE: Auditing

    Use triggers and store the log in a second table.

    
    
    CREATE TRIGGER xyz
    ON updatetable
    FOR UPDATE
    AS
    INSERT INTO logtable
    SELECT * FROM inserted

    inserted is a special virtual table that contains...

  • RE: Access Restrictation with IP address

    Use a firewall and drop all packets from any source address except those accepted.

    --

    Chris Hedgate @ Apptus Technologies (http://www.apptus.se)

    http://www.sql.nu

  • RE: clustered constraint vs clustered index

    In my opinion, this is not really a question of performance. Yes, performance does differ, but the real difference is that a constraint is a logical construction, whilst an index...

  • RE: Declare Cursor using a Select w/ Variable

    You would either need to set the entire declare cursor and the entire code that then uses the cursor inside the query-variable and execute it, or you would have to...

  • RE: TCP/IP

    Add the following to your connection string:

    Network Library=DBNETLIB;Network Address=192.168.0.100,1433;

    Change the example IP-address and port to whatever your SQL Server is using. If your using SQL Server 7 change DBNETLIB to...

  • RE: sp_xml_preparedocument - Return Value

    Andy, why should it record an error? If all goes well, as it should, the code would just go past the if-statement. If the xml-string is not valid then parsing...

  • RE: AWE memory

    quote:


    I use the perfmon counter sqlserver:memory manager/total memory(kb) to get a accurate feel of how much SQL is using the available memory...

  • RE: AWE memory

    quote:


    Did anyone ever figure out why Task Manager incorrectly reflects the memory utilization for SQL when AWE is enabled?


    February 13, 2003 at 1:03 am

    #448837

  • RE: Quickie....

    Imho, best way to count number of occurences of a character in a string is this:

    SELECT LEN('abc@abc@def.com') - LEN(REPLACE('abc@abc@def.com', '@', ''))

    This will tell you that there are two @-signs in...

  • RE: UNIQUE constraint with multiple NULLs

    It is just a unique constraint. SQL Server is correct in handling PKs, just as the standard says PKs must not allow NULLs.

    I also thought about (and tried) ANSI_NULLS ON|OFF,...

  • RE: UNIQUE constraint with multiple NULLs

    Haha, finally someone that find this as interesting as I do.

    Your theory with the hash comparisons sounds reasonable.

    --

    Chris Hedgate @ Apptus Technologies (http://www.apptus.se)

  • RE: UNIQUE constraint with multiple NULLs

    Aha! The definition in SQL-99 is this:

    "A unique constraint is satisfied if and only if no two rows in a table

    have the same non-null values in the unique columns"

    So,...

  • RE: UNIQUE constraint with multiple NULLs

    First of all, the "NULL duplicates NULL" (but "NULL never equals NULL") statement was my own words, and maybe badly written. A better way to write it would be (yes...

  • RE: UNIQUE constraint with multiple NULLs

    But it is SQL Server, not Oracle, that is incorrect in the way it handles UNIQUE constraints. SQL-99 states that they should allow multiple NULLs. A NULL is never equal...

  • RE: UNIQUE constraint with multiple NULLs

    Paul, you are absolutely correct, I am just seeking the discussion. And a trigger is the solution I would recommend as well. Now, I may have been unclear, because I...

Viewing 15 posts - 1,246 through 1,260 (of 1,412 total)