Viewing 15 posts - 1,246 through 1,260 (of 1,412 total)
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...
March 7, 2003 at 3:00 am
Use a firewall and drop all packets from any source address except those accepted.
--
Chris Hedgate @ Apptus Technologies (http://www.apptus.se)
March 7, 2003 at 2:51 am
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...
March 7, 2003 at 2:16 am
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...
March 7, 2003 at 1:44 am
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...
March 7, 2003 at 1:38 am
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...
March 7, 2003 at 1:21 am
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...
February 13, 2003 at 7:23 am
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
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...
December 22, 2002 at 3:31 pm
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,...
December 22, 2002 at 3:10 am
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)
December 21, 2002 at 4:05 am
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,...
December 20, 2002 at 8:53 am
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...
December 20, 2002 at 2:36 am
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...
December 19, 2002 at 12:26 pm
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...
December 19, 2002 at 10:28 am
Viewing 15 posts - 1,246 through 1,260 (of 1,412 total)