Viewing 15 posts - 1,666 through 1,680 (of 1,923 total)
Some excerpts from BOL (Local BOL)
The ANSI_NULLS and QUOTED_IDENTIFIER options must have been set to ON when the CREATE VIEW statement was executed. The OBJECTPROPERTY function reports this for views...
April 27, 2010 at 7:39 am
Bhuvnesh, when u use Indexed Views, u wil have to mandatorily specify WITH SCHEMABINDING.. this also enforeces a rule that that objects tht you access in the view must also...
April 27, 2010 at 7:37 am
Hey lee, you may also want to try this
IF OBJECT_ID('TEMPDB..#OFFICE_ASSETS') IS NOT NULL
DROP TABLE #OFFICE_ASSETS
CREATE TABLE #OFFICE_ASSETS
(
OFFICE_ID INT,
ASSET_NAME VARCHAR(100)
)
INSERT INTO #OFFICE_ASSETS
SELECT 1,'desktop'
UNION ALL
SELECT 1,'printer'
UNION...
April 27, 2010 at 7:35 am
T.alkathiri (4/27/2010)
Thank you very much for the solution.It works just fine and the result as I wanted it to be.
Please accept my best wishes and best regards
Cheers
Oh boy :blush:!! Thanks...
April 27, 2010 at 7:16 am
Happy that my code helped you..
As for your error, you are trying to concatenate INT value to a VARCHAR variable.. To negate his error , we will have to...
April 27, 2010 at 6:56 am
Hey Jus, can you please post sample data for tblPeriod (in tthe form of INSERT INTO TABLE <> SELECT statments) ?? This will be very helpful to revamp the query...
April 27, 2010 at 5:53 am
~Edit: Code removed - Better version of this is posted in the next post of mine
Cheers!!
April 27, 2010 at 5:19 am
Gianluca Sartori (4/27/2010)
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...
April 27, 2010 at 4:59 am
Why do we have the "For XML path ''" and the 1,1, space[0] ?
FOR XML PATH concatenates the rows values present in the column which you want to become as...
April 27, 2010 at 4:52 am
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" means...
April 27, 2010 at 3:44 am
Jason, you could have closely followed either mine or Gianluca's code and with further modifications, you could have accomplished the task..
But anyways, here is your code
First, the table structure (teh...
April 27, 2010 at 3:39 am
Gianluca, you beat me to it 😎
And Alessandro, as he said convert the bit column into tinyint (i used INT though) and then you can aggregate..
Cheers!!
April 27, 2010 at 2:25 am
hey buddy, i did not understand fully your requirement, but i have a pivot query which might interest you..
SELECT datax , [1] StatoImp1, [2] StatoImp3, [3] StatoImp3 FROM
...
April 27, 2010 at 2:22 am
Buddy, can you be more specific with your requirement??
Please go through this following article and helping us help you?? 🙂
CLICK HERE FOR FORUM POSTING ETIQUETTES - JEFF MODEN[/url]
When u...
April 27, 2010 at 2:13 am
Viewing 15 posts - 1,666 through 1,680 (of 1,923 total)