Viewing 15 posts - 46 through 60 (of 186 total)
Thanks all! I got it working.
July 20, 2011 at 9:56 am
seth delconte (7/12/2011)
I think you have to have the correct SMO version... the one you want should be here.
Hmmm, the installer says I have a higher version already installed on...
July 13, 2011 at 8:06 am
Thanks, got it working...
June 28, 2011 at 10:03 am
GSquared (6/28/2011)
June 28, 2011 at 9:57 am
Here's the script I'm trying to run that throws the error, the field with the constraint that causes the error is CorrespondenceTemplateID:
Set Identity_Insert IARTS..CorrespondenceLog On
Deleteacl
OutputDeleted.CorrespondenceLogID,
Deleted.CorrespondenceMethodID,
Deleted.CorrespondenceTemplateID,
Deleted.Loc_Prof_ID,
Deleted.Src_Sys_Tx_Type_ID,
Deleted.Tran_ID,
Deleted.CorrespondenceSetID,
Deleted.ReceivedDate,
Deleted.VRTDocumentID,
Deleted.Subject,
Deleted.SentIndicator,
Deleted.Comment,
Deleted.CorrespondenceFO,
Deleted.PrintedDate,
Deleted.PrintByBatch,
Deleted.CreatedBy,
Deleted.CreatedDate,
Deleted.Void,
Deleted.VoidedBy,
Deleted.VoidedDate,
Deleted.ERMSStatus
IntoIARTS..CorrespondenceLog
(
CorrespondenceLogID,
CorrespondenceMethodID,
CorrespondenceTemplateID,
Loc_Prof_ID,
Src_Sys_Tx_Type_ID,
Tran_ID,
CorrespondenceSetID,
ReceivedDate,
VRTDocumentID,
Subject,
SentIndicator,
Comment,
CorrespondenceFO,
PrintedDate,
PrintByBatch,
CreatedBy,
CreatedDate,
Void,
VoidedBy,
VoidedDate,
ERMSStatus
)
FromArchive..CorrespondenceLog acl
Whereacl.CorrespondenceLogID In (1337 CorrespondenceLogIDs)
June 28, 2011 at 9:43 am
That's weird Lowell (thanks by the way). I have an entire archive job that is currently running with the exact same syntax as my original post, but without the table...
June 27, 2011 at 7:34 am
Lowell (6/10/2011)
the estimated plan expecting 4 rows, but the actual ended up using almost 12 million.
can...
June 10, 2011 at 1:56 pm
Lowell (6/10/2011)
great greg...can you post an Actual execution plan? that's where a few more details will help as well
I've got it running now in ~4 minutes....but I'll attach it anyway.
June 10, 2011 at 1:38 pm
Oh boy! I don't know which index did it, but I got it to do my Top 5000 in about 4 minutes whereas previous attempts I had to kill the...
June 10, 2011 at 1:34 pm
Here's the exec plan.
Edit: By the way, my 'text' field is called "CorrespondenceFO".
Here's my select statement:
USE [IARTS]
GO
DECLARE @getdate-2 datetime,
@Legal int,
@StatusFailed int
SET @getdate-2 = GetDate()
SET @Legal =...
June 10, 2011 at 1:24 pm
Wow, thanks for the quick reply Lowell!
I don't have to search by that field, I just need to include it in the select statement...does your answer change?
June 10, 2011 at 1:03 pm
Ah, didn't think about my value being the WORD null.
April 11, 2011 at 9:36 am
By the way, the "RowTerminator" option should have a value of "backslash n" inside the ticks, like ''
edit: damnit, still not showing my slash n..........it should be inside the...
April 11, 2011 at 9:22 am
I'm going to post a new thread about helping with this exact same topic, but I would do the bulk insert feature, like this:
Bulk Insert IARTS..VINVehicleDescription
From 'F:\VINVehicleDescriptionUpdate.csv'
With
(
FirstRow = 1,
FieldTerminator =...
April 11, 2011 at 9:21 am
Fantastic! It works. Thanks everyone.
April 7, 2011 at 2:26 pm
Viewing 15 posts - 46 through 60 (of 186 total)