Viewing 15 posts - 1,186 through 1,200 (of 1,923 total)
Look, you are creating a GLOBAL temp table (## = Golabal, # = Session-based).. this has visibility globally.. so there may be some other code in your PROD system that...
September 6, 2010 at 7:27 am
Chris Morris-439714 (9/6/2010)
ColdCoffee (9/6/2010)
Oh Yeah, CM, i got it.. But why would Chunk 1 truncate the result first place ?
It doesn't look right to me either. Check these out:
DECLARE @s1...
September 6, 2010 at 6:35 am
Chris Morris-439714 (9/6/2010)
ColdCoffee (9/6/2010)
Chris Morris-439714 (9/6/2010)
--SQL 3(use 2 variable together,the same results)
SELECT @s1 = '10_45', @s2 = '20_45'
SELECT @s1 = @s1 + NAME--, @s2 = @s2...
September 6, 2010 at 6:20 am
Chris Morris-439714 (9/6/2010)
--SQL 3(use 2 variable together,the same results)
SELECT @s1 = '10_45', @s2 = '20_45'
SELECT @s1 = @s1 + NAME--, @s2 = @s2 + NAME
FROM...
September 6, 2010 at 6:09 am
Bhuvnesh (9/6/2010)
ColdCoffee (9/6/2010)
September 6, 2010 at 5:53 am
Duplicate post. No replies to this thread please. Direct replies to http://www.sqlservercentral.com/Forums/Topic981041-392-1.aspx
September 6, 2010 at 5:42 am
Chris Morris-439714 (9/6/2010)
ColdCoffee (9/6/2010)
Chris Morris-439714 (9/6/2010)
What exactly do you find strange?Chris, even in the first try i dint find anything strange.. Execute them, u will find it strange..
Must be monday...
September 6, 2010 at 5:39 am
IF OBJECT_ID('tempdb..#TempTable') IS NOT NULL
DROP TABLE #TempTable
CREATE TABLE #TempTable
(
A INTEGER,
B VARCHAR(10) ,
C MONEY,
D XML
)
You can run this code many times, without the...
September 6, 2010 at 5:32 am
Chris Morris-439714 (9/6/2010)
What exactly do you find strange?
Chris, even in the first try i dint find anything strange.. Execute them, u will find it strange..
September 6, 2010 at 5:28 am
A small example:
;WITH Tens AS
(
SELECT 1 N UNION ALL
SELECT 1 UNION ALL
SELECT 1 UNION ALL
SELECT 1 UNION ALL
SELECT 1 UNION ALL
SELECT 1 UNION ALL
SELECT...
September 6, 2010 at 3:42 am
ROW_NUMBER Function will do the trick for you..
HEre are some articles on that
ROW_NUMBER(): An Efficient Alternative to Subqueries
September 6, 2010 at 3:40 am
How is this ?
IF OBJECT_ID('A') IS NOT NULL
DROP TABLE A
IF OBJECT_ID('B') IS NOT NULL
DROP TABLE B
IF OBJECT_ID('C') IS NOT NULL
DROP TABLE C
Create table A( ID INT IDENTITY(1,1) , A1...
September 6, 2010 at 3:02 am
Will tables A, B and C have only one row per table all the time?
September 6, 2010 at 1:25 am
Try this:
SELECT * FROM Coloum1 WHERE CHARINDEX( N'?????' , oldarabictext ) > 1
September 6, 2010 at 12:56 am
.value(varchar) handles the special characters like < or > or & etc.. please go thro this for further details:
September 5, 2010 at 12:43 pm
Viewing 15 posts - 1,186 through 1,200 (of 1,923 total)