Viewing 15 posts - 76 through 90 (of 219 total)
Toreador (11/24/2010)
November 24, 2010 at 9:07 am
Nice question.
CREATE PROC [dbo].[QOD_TransTable]
What is the purpose of this procedure? 🙂
Insert into dbo.Items(ItemId,Item,column_b)
SELECT 1,'first','New'
GO;
This part stumped me for a while. 🙂 Due to previous questions, I know that a GO...
November 24, 2010 at 2:24 am
Kenneth Wymore (11/23/2010)
November 24, 2010 at 2:03 am
Carlo Romagnano (11/22/2010)
Open session ONE:
create table #a(i int)
select name,id from tempdb.dbo.sysobjects where name like '#a%'
Open session TWO with same or another user:
create table #a(i...
November 22, 2010 at 2:58 am
Carlo Romagnano (11/22/2010)
If you used a query like this, you would see your table:
You will see ALL tables that begins with '#testvm', also, tables belonging to...
November 22, 2010 at 1:42 am
select * from sysobjects where name = '#testvm%'
This query doesn't work and should be replaced with the following:
select * from tempdb.dbo.sysobjects where name like '#testvm%'
November 22, 2010 at 12:48 am
Iulian -207023 (11/18/2010)
...
SET @strQueryDML = 'SELECT ID INTO #tmpID2 FROM tbl1'
...
EXECUTE (@strQueryDML)
...
SELECT ID...
November 18, 2010 at 6:18 am
I found it interesting that the expression "ISNULL(NULL, NULL)" is of type INT.
SELECT ISNULL(NULL, NULL) AS A
INTO QOTD_TABLE;
EXEC sp_help 'QOTD_TABLE';
-- Column_name Type
-- ------------- ------
--...
November 12, 2010 at 2:15 am
"Partitions can be on any column" – this was way too ambiguous... I thought this option was about the column with the same name in both tables (because of the...
November 11, 2010 at 6:04 am
Conversion to CHAR is wrong, because in this case we get a collation name which is truncated to 30 symbols: Chinese_Hong_Kong_Stroke_90_CS instead of Chinese_Hong_Kong_Stroke_90_CS_AS_KS_WS, SQL_Latin1_General_CP1250_CI_A insted of SQL_Latin1_General_CP1250_CI_AS etc.
The type...
November 3, 2010 at 3:03 am
If the author wanted to trick us with the C-like pre-increment operator, this script would be more funny: 🙂
...
select @a = ++@b
select @a A
...
October 29, 2010 at 1:50 am
Hugo Kornelis (10/28/2010)
If you use SET ANSI_NULLS OFF, there is no need to rewrite anyway. The ANSI_NULLS affects all comparisons with NULL, not only those in a [NOT] IN expression.
Setting...
October 28, 2010 at 2:58 am
mtillman-921105 (10/19/2010)
Oracle's even harder to use.
Hmm... Are you saying this as a developer or as a DBA?
October 19, 2010 at 9:27 am
Hugo Kornelis (10/19/2010)
October 19, 2010 at 7:41 am
Hugo Kornelis (10/19/2010)
With this additional information, I'd argue that options 2 and 4 are both correct.
And what do you think about counting uncommitted records, is it such a reliable thing?...
October 19, 2010 at 4:03 am
Viewing 15 posts - 76 through 90 (of 219 total)