Viewing 15 posts - 1,261 through 1,275 (of 2,171 total)
Cross post
See here also http://www.sqlservercentral.com/Forums/Topic406155-338-1.aspx
October 3, 2007 at 7:14 am
Let me rephrase that...
How do you know the count is 1 for both records?
October 3, 2007 at 7:09 am
DECLARE @Target TABLE (RowID INT, Data VARCHAR(12))
INSERT @Target
SELECT 1, 'Peso' UNION ALL
SELECT 2, 'rm' UNION ALL
SELECT 3, 'Nosepicker'
DECLARE @Source TABLE (Data VARCHAR(12))
INSERT @Source
SELECT...
October 3, 2007 at 4:54 am
October 3, 2007 at 4:51 am
It's called SCOPE.
After ALTERING a table, an insert can't take place directly.
However, there is a workaround
CREATE PROCtest_proc1
AS
BEGIN
CREATE TABLE test_table1 (col1 int not null, col2 varchar(50) null)
INSERT INTO test_table1 (col1, col2)...
October 3, 2007 at 4:45 am
You can also specify which columns to check for UPDATE on.
Then there will be no nested triggers at all!
CREATE TRIGGER trRestorder ON eStore_CatalogProducts
FOR UPDATE
AS
IF UPDATE(CanBeOrdered) OR UPDATE(StockValue)
UPDATEcp
SETcp.AvailableFrom = '20400101'
FROMeStore_CatalogProducts AS...
October 3, 2007 at 2:55 am
October 3, 2007 at 2:11 am
1) SELECT * FROM INFORMATION_SCHEMA.ROUTINES
2) SELECT OBJECT_ID('...')
3) SELECT * FROM sysobjects where...
October 3, 2007 at 2:04 am
The SQL Server does not know which columns to insert!!!
CREATE PROC test_proc1
AS
BEGIN
CREATE TABLE test_table1 (col1 int not null, col2 varchar(50) null)
INSERT INTO test_table1 VALUES (101, 'Temp Data1')
INSERT INTO test_table1 VALUES...
October 3, 2007 at 1:56 am
Jimbo Bantog (5/9/2007)
I need this column to be numeric (9,2). I tried this but it's showing 1234 instead of 1234.15. What am I doing wrong here? Please help.
It's hard to...
October 3, 2007 at 12:23 am
Thank you.
I thought a 90 times faster speed improvement was worth posting.
The real performance killer in the original query is the "uid2 NOT IN" operation.
October 3, 2007 at 12:18 am
SELECT COUNT(Col1),
COUNT(Col2),
COUNT(Col3),
COUNT(*)
FROM Table1
October 2, 2007 at 5:12 am
See second version of fnParseList function here
October 2, 2007 at 4:46 am
Viewing 15 posts - 1,261 through 1,275 (of 2,171 total)