Forum Replies Created

Viewing 15 posts - 25,921 through 25,935 (of 26,487 total)

  • RE: IDENTITY_INSERT and SELECT *

    This says it all: An explicit value for the identity column in table 'table name' can only be specified when a column list is used and IDENTITY_INSERT is ON.

    Looks like...

  • RE: Foreign Key constriant

    Personally, I don't think he knows how to read BOL.

     

  • RE: self-joining derived tables?

    CTE's haven't made me forget.  I find them easier to use where I have normally used a derived table in a query.  I don't mind using them, but also look...

  • RE: self-joining derived tables?

    I think we could use a little more info.  Could you post the DDL for the source table, some sample data, and the expected output from the sample data.  Be...

  • RE: When is the log truncated?

    Just to confirm, a full backup only backs up enough of the transaction log to ensure a consistant database when restored.  The transaction log backup will truncate all inactive transactions...

  • RE: Differences between Standard and Enterprise

    One, there are features and capabilities you won't have access to in your QA/DEV environment that you would have access to in your production environment.  I would suggest upgrading your...

  • RE: self-joining derived tables?

    What I gave you may or may not work in your situation, but based on the data it seemed to work.  Take it, play with it, read BOL to see...

  • RE: Script Data Conversion

    It might help if you could provide some sample data and what your trying to convert it to.

  • RE: self-joining derived tables?

    Oblio,

    Based on what you gave me above, how does this look:

    declare @datatbl table (

        ida int,

        idb int,

        userid int,

        iddate datetime

        )

    insert into @datatbl values(16251,4,13761,'2005-03-26 00:00:00')

    insert into @datatbl values(16251,4,16241,'2006-12-07...

  • RE: ON THE FLY

    I have an idea, post sample data, sample results, and what YOU have done so far and what results YOU have gotten so far.  Then we can help you figure out...

  • RE: self-joining derived tables?

    Show us what you have so far.  Perhaps we can see what changes are needed to get it to work.

  • RE: Join - optional criteria

    A little more specific on what you mean optional.  What exactly do you want returned from this stored proc?  Some sample data and results would help.  My suggestion without any...

  • RE: Incremental INSERT statement

    Try this:

    declare @startdate smalldatetime

    select @startdate = (Select max(Date_Idx) from dbo.DimDateLM where Date_Idx < '2079-06-06')

    set @startdate = dateadd(dd, 1, @startdate)

    while @startdate < '2032-01-01'

    begin

        insert into dbo.DimDateLM set

            Date_Idx = @startdate

        set...

  • RE: self-joining derived tables?

    As this is SQL 2005 (based on where you posted), try putting your hefty query as a CTE and using that in your query.

  • RE: A transport-level error

    I had the problem here with QA and SQL Server 2000.  Our network has had issues most of the year for reasons I won't go into that has caused connectivity...

Viewing 15 posts - 25,921 through 25,935 (of 26,487 total)