Viewing 15 posts - 4,351 through 4,365 (of 5,393 total)
Maybe I'm wrong, but I see an Update.
Can't it be the cause of the duplicate key error?
-- Gianluca Sartori
April 28, 2010 at 3:15 am
ColdCoffee (4/27/2010)
-- Gianluca Sartori
April 27, 2010 at 5:36 am
jasonshaw (4/27/2010)Why do we have the "For XML path ''" and the 1,1, space[0] ?
It's a "trick" to generate on the fly a string with concatenation of all the values...
-- Gianluca Sartori
April 27, 2010 at 4:48 am
ColdCoffee (4/27/2010)
Gianluca Sartori (4/27/2010)
ColdCoffee (4/27/2010)
Alessandro, Sei il benvenuto!
Aaah! You fell victim of the "google translator" bug!
I think you wanted to translate "You're welcome", that's "Prego" in Italian.
"Sei il benvenuto"...
-- Gianluca Sartori
April 27, 2010 at 3:49 am
Here's your query, Jason.
Hope you find it helpful.
--CREATE TABLE
IF OBJECT_ID('Tempdb..#meterReading') IS NOT NULL DROP TABLE #meterReading
CREATE TABLE #meterReading(
[mReadingCallReference] [int] NULL,
...
-- Gianluca Sartori
April 27, 2010 at 3:36 am
ColdCoffee (4/27/2010)
Alessandro, Sei il benvenuto!
Aaah! You fell victim of the "google translator" bug!
I think you wanted to translate "You're welcome", that's "Prego" in Italian.
"Sei il benvenuto" means literally "you...
-- Gianluca Sartori
April 27, 2010 at 3:19 am
Whoops! Sorry for echoing, Ken.
-- Gianluca Sartori
April 27, 2010 at 3:14 am
The order of execution is determined by the query optimizer. Look at the query plan and you'll find out the execution order of each step and how it is implemented.
Generally...
-- Gianluca Sartori
April 27, 2010 at 3:12 am
It's not difficult to build the query dynamically:
DECLARE @sql nvarchar(4000)
SET @sql =
STUFF
...
-- Gianluca Sartori
April 27, 2010 at 3:01 am
ColdCoffee (4/27/2010)
SELECT datax , [1] StatoImp1, [2] StatoImp3, [3] StatoImp3 FROM...
-- Gianluca Sartori
April 27, 2010 at 2:28 am
Jason, post your table scripts, some sample data and the desired output and I'll be glad to help.
-- Gianluca Sartori
April 27, 2010 at 2:22 am
This should do the trick for you:
--CREATE TEST TEMPORARY TABLE
IF OBJECT_ID('Tempdb..#Test') IS NOT NULL DROP TABLE #Test
CREATE TABLE #Test (
[datax] [smalldatetime] NOT NULL ,
[StatoImp] [bit] NOT NULL ,
[Imp] [smallint] NOT...
-- Gianluca Sartori
April 27, 2010 at 2:17 am
Hi Alessandro,
it's nice to find other Italians on this site.
can you please clarify what values do you expect in every column? What would the results look like with the...
-- Gianluca Sartori
April 27, 2010 at 1:56 am
Some readings for you:
How to post performance problems[/url]
Consistency problems with NOLOCK
TIMEBOMB - THE CONSISTENCY PROBLEM WITH NOLOCK / READ UNCOMMITTED
-- Gianluca Sartori
April 26, 2010 at 3:49 am
shen-dest (4/26/2010)
hi,you should avoid using prefix sp_ in your stored procedures. this is not related to your execution error, but just wanted to inform you.
shen-dest, you're right. You could...
-- Gianluca Sartori
April 26, 2010 at 2:59 am
Viewing 15 posts - 4,351 through 4,365 (of 5,393 total)