Viewing 15 posts - 12,166 through 12,180 (of 15,381 total)
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
April 30, 2012 at 1:35 pm
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....
April 30, 2012 at 1:30 pm
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...
April 30, 2012 at 1:28 pm
MaverickMan (4/30/2012)
April 30, 2012 at 1:24 pm
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...
April 30, 2012 at 1:22 pm
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...
April 30, 2012 at 1:08 pm
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...
April 30, 2012 at 1:02 pm
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)...
April 30, 2012 at 12:54 pm
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...
April 30, 2012 at 12:43 pm
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...
April 30, 2012 at 12:40 pm
vikingDBA (4/30/2012)
(probably not very scalable,...
April 30, 2012 at 12:35 pm
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.
April 30, 2012 at 10:51 am
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
April 30, 2012 at 10:44 am
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...
April 30, 2012 at 9:40 am
k.subramanyam1017 (4/30/2012)
April 30, 2012 at 9:35 am
Viewing 15 posts - 12,166 through 12,180 (of 15,381 total)