Forum Replies Created

Viewing 15 posts - 1,666 through 1,680 (of 1,923 total)

  • RE: Error in indexed view !!!!!!!!

    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...

  • RE: Error in indexed view !!!!!!!!

    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...

  • RE: Query to count enties in row and display totals in column

    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...

  • RE: Variable Table Names

    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...

  • RE: Variable Table Names

    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...

  • RE: Aviod multiple executions

    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...

  • RE: Variable Table Names

    ~Edit: Code removed - Better version of this is posted in the next post of mine

    Cheers!!

  • RE: Help for query, pivot technique

    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...

  • RE: Help for query, pivot technique

    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...

  • RE: Help for query, pivot technique

    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...

  • RE: Help for query, pivot technique

    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...

  • RE: Help for query, pivot technique

    Alessandro, Sei il benvenuto!

  • RE: Help for query, pivot technique

    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!!

  • RE: Help for query, pivot technique

    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

    ...

  • RE: random query question

    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...

Viewing 15 posts - 1,666 through 1,680 (of 1,923 total)