Forum Replies Created

Viewing 15 posts - 361 through 375 (of 516 total)

  • RE: Querying EAV data

    Jeff Moden (8/30/2012)

    Materializing the view as an indexed view may be the best bet for such a thing. Using a pivot or a Cross Tab to create the view...

  • RE: Querying EAV data

    Evil Kraig F (8/30/2012)


    Lokesh Vij (8/30/2012)


    What according to you would be the best way to query data. Every time I increase one attribute in my select clause, I need to...

  • RE: Table Variable

    An easy one to end this week. Thanks 🙂

  • RE: execute a procedure in another one

    Eugene Elutin (8/30/2012)


    Replace the line executing the proc with following:

    declare @dt datetime = CAST (FLOOR (CAST (CURRENT_TIMESTAMP as float )) as datetime)

    exec dbo.CreerFile '00000000-0000-0000-0000-000000000000',@RefCourrier , @dt

    Great!

    What a co-incidence, I also...

  • RE: execute a procedure in another one

    Here is the corrected version:

    CREATE PROCEDURE [ENREGISTRERREJET]

    -- Add the parameters for the stored procedure here

    @RejID UNIQUEIDENTIFIER = '00000000-0000-0000-0000-000000000000' OUTPUT,

    ...

  • RE: Using Sparse Columns with SELECT ... INTO

    Greate question Wayne..got to learn something new today 🙂

  • RE: ISDATE

    Raghavendra Mudugal (8/27/2012)


    Thank you Lokesh-ji, Nice question.

    (So simple and yet it keeps us thinking..., to be honest I selected E,E and then seeing 2nd one's datatype as varchar, but...

  • RE: ISDATE

    kaspencer (8/28/2012)


    As a matter of fact, SQL Server 2005 copes with this very well, provided that the data type is changed to DATETIME.

    It would seem that in SQL Server 2005...

  • RE: Working on stored procedures

    Kenneth.Fisher (8/27/2012)


    demonfox (8/27/2012)


    nice question ;

    one more observation :

    -- t1(id int,data varchar(50)) ; t6 table doesn't exist

    create procedure usp_testing

    as

    select a.id,a.testing from t1 a

    inner join t6 b

    on b.id = a.id

    go

    this...

  • RE: Working on stored procedures

    bitbucket-25253 (8/26/2012)


    Nice basic question to start the week... Thanks

    Am suprised / astonished at the number of individuals who missed this fundamental question.

    Correct answers: 27% (4)

    Incorrect answers:...

  • RE: Catalog Views

    Raghavendra Mudugal (8/24/2012)


    Good question, thank you Lokesh-ji.

    Initially I checked the cb-3 box where it stores the poor query details - considering the trace tables from the server-wide catalog tables, but...

  • RE: Summing up while creating table?

    Alan Kwan (8/22/2012)


    haha sorry I know this will be a stupid question. How do I create the view into a specific database?

    Originally I had,

    CREATE VIEW aggTest as...

    Then I managed...

  • RE: How can I pass table row as a in parameter to stored proc

    Ajdba (8/22/2012)


    One more thing I need to add that I am trying to use these TVP as a parameter in my where clause if this is possible at all.

    Thanks

    If you...

  • RE: Inserts

    I knew there is a limit of 1000 records. But got it wrong 🙁

    Overlooked the question: Inserts start from 0 that makes the first statement to exceed this limit as...

  • RE: How to acquire a lock on table for specified time

    l.narasimha (8/22/2012)


    Hi,

    Thanks for your reply.

    I tried to hold the lock on a table using sp_getapplock.

    But after placing lock, it still allowing to perform INSERT or UPDATE operaion on table.

    I...

Viewing 15 posts - 361 through 375 (of 516 total)