Forum Replies Created

Viewing 15 posts - 12,166 through 12,180 (of 15,381 total)

  • RE: copy database

    What is the error?

    This will explain the backup database command far better than I could. http://msdn.microsoft.com/en-us/library/ms186865%28v=sql.105%29.aspx

  • RE: copy database

    Try doing a backup and then a restore instead of the copy db wizard. I have never used it and didn't even realize it was an option until just now....

  • RE: find different rows in tables

    try this, this may help shed some light on where the problems are.

    declare @flightId int

    declare @flightTime DECIMAL(10,2)

    declare @blockTime DECIMAL(10,2)

    declare @ttEngine1 DECIMAL(10,2)

    declare @tcEngine1 DECIMAL(10,2)

    declare @ttEngine2 DECIMAL(10,2)

    declare @tcEngine2 DECIMAL(10,2)

    declare @ttAirframe DECIMAL(10,2)

    declare @tcAirframe...

  • RE: How to split Delimited text

    MaverickMan (4/30/2012)


    Thank you all for providing such wide variety of solutions to this problem. Performance is not the need for our problem so it will work with any of the...

  • RE: find different rows in tables

    Longer than infinite? 😀

    How many rows are you sending emails for? Did you populate the other variables with real info? @To, @From etc. It will probably take longer for error...

  • RE: find different rows in tables

    You added back in the while exists. That is your endless loop.

    WHILE EXISTS (

    SELECT *

    FROM flightsClosed as a

    left JOIN flightsClosed2 b

    ON a.FlightID = b.FlightID

    WHERE a.StatusTypeID != b.StatusTypeID

    AND a.StatusTypeID = 44

    --returns...

  • RE: trouble with Max date and detail tables

    something along these lines?

    select [DATA]

    from TableA

    where effectivedate = (select MAX(EffectiveDate) from TableA)

    union all

    select [DATA]

    from TableB

    where effectivedate = (select MAX(EffectiveDate) from TableB)

    --EDIT: I didn't refresh before my reply...

  • RE: find different rows in tables

    I think something like this is close.

    declare @flightId int

    declare @flightTime DECIMAL(10,2)

    declare @blockTime DECIMAL(10,2)

    declare @ttEngine1 DECIMAL(10,2)

    declare @tcEngine1 DECIMAL(10,2)

    declare @ttEngine2 DECIMAL(10,2)

    declare @tcEngine2 DECIMAL(10,2)

    declare @ttAirframe DECIMAL(10,2)

    declare @tcAirframe DECIMAL(10,2)

    declare @profileName nvarchar(128)= 'I'

    declare @To nvarchar(255)...

  • RE: find different rows in tables

    Well thankfully you ran into an issue with the temp table already existing. You coded an infinite loop. This is one of those rare time where a cursor is actually...

  • RE: Why cant I reference a column in a SQL Cursor?

    What Lynn meant is that you need to get the create table statements and any other objects (i.e. usp_cre_AddInsComplete). We only care about the sql portion of the process. The...

  • RE: How to split Delimited text

    vikingDBA (4/30/2012)


    Just did this last week for our developer. Is a table-valued function that returns a table with the values split out. Hope this helps.

    (probably not very scalable,...

  • RE: Assign values based on user's choice

    With 163 points and 618 visits you should know we need some information to help. ddl, sample data and desired output please. See the first link in my signature.

  • RE: Today's Random Word!

    Lynn Pettis (4/30/2012)


    Peter Trast (4/30/2012)


    EL Jerry (4/30/2012)


    Daniel Bowlin (4/30/2012)


    anthony.green (4/30/2012)


    capn.hector (4/27/2012)


    SQLRNNR (4/27/2012)


    EL Jerry (4/27/2012)


    Lynn Pettis (4/26/2012)


    Freedom!

    Wallace?

    Gromit

    tie down

    kangaroo

    captain

    Ship.

    Wreck

    Iceberg

    Capsized

  • RE: Why cant I reference a column in a SQL Cursor?

    You can't reference a column like that. You setup a cursor with its definition and then you get "NEXT" not column names. Instead of

    FETCH LastModified FROM TEMPCURSOR INTO @STARTDATE

    You...

  • RE: Interview question

    k.subramanyam1017 (4/30/2012)


    I'm really sorry for what I had done. I'm new to this and I have a doubt on this and so I posted that question, If any one knows...

Viewing 15 posts - 12,166 through 12,180 (of 15,381 total)