URGENT - DTS - Need To Run The Object To Perform The Operation - Exception Access Violation
Jul 23, 2005
Aaaaaarrgghh ! (that's better)
I am trying to convert a field within my Oracle 9i Database that is of
type BLOB (but this BLOB may contain a combination of clobs/varchars or
images such as gif images, jpg images) to Microsoft SQL Server 2000
using Microsoft DTS.
On trying to perform this simple conversion I recieved the error "Need
to run the object to perform the operation - Exception Access
Violation" from Microsoft DTS and my table that contains this BLOB
field is not converted across.
After further investigation I implemented the fixes suggested by the
Microsoft Knowledge Base and "sqldts.com" but still no joy the error
kept occuring.
I discovered my modifying the step in the DTS package that handled this
table conversion that contained the BLOB column that when I changed the
data type on my SQL Server target table to VARBINARY and modified the
query so that only the BLOBs that contained clobs/varchars were brought
across that the error went away.
I then proceeded to create another DTS package step that had a query
that only brought across the BLOB column that contained images such as
gif images/jpeg images etc. and the error went away and the target type
for the SQL Server target table was set to IMAGE.
As the data for this BLOB contains a combination of VARCHARS/CLOBS
(concatanted) and also GIF IMAGES/JPEGS in the same source column with
Oracle 9i I require the same in my target table within SQL server as
one column (and I should be able to do that with type IMAGE especially
as it can store larger objects than VARBINARY but any source BLOBS that
contain VARCHAR/CLOBs don't seem to want to be loaded as IMAGE they
will only load in to VARBINARY).
However judging by my experiences above this doesn't seem to be
possible ?
Can anyone help me out with this ?
I am on Microsoft SQL Server 2000 Service Pack 4 with latest MDAC
(2.8.1).
Cheers,
Gary
View 1 Replies
Dec 19, 2005
Hi all,Since yesterday I'm unable to lauch the enterprise manager, it givesthe following error :Unhandled exception at 0x0101f07e in mmc.exe: 0xC0000005: Accessviolation reading location 0x00000064.The weird thing is that except installing the office xp PIA's I can'timage what else could be changed on my system.I tried reinstalling, but still the same error.I tried SP3a, still nothing changed.Searched in some groups and it seems that not much can be found aboutit, so my inspiration is running dry.Anyone had this problem ? Anyone any suggestions how to solve it ?Regards,Koen
View 2 Replies
View Related
Jun 24, 2007
Hi,
Background:
This could be a simple C++ issue as I am not that familiar with the language. I am trying to prototype a small program to test the performance of inserting data using the BCP interface. I want to BCP data that my program generates and passes via program variables.
I have narrowed the issue down to a sprintf call. Following are two variations of the code - one that works and one that does not. The error happens when I try to execute the bcp_sendrow() call.
What is the appropriate way to create / send string data to the BCP interface. Any good examples available? I have created the following from the BulkCopyFromVariables example on the Microsoft SQL Server downloads site.
Thanks in advance, Kerry
---- Works ----
Code Snippet
for(idx=1; idx<=5; idx++){
//sprintf(k1, "%d", idx); //does not work...
sprintf(k1, "oo"); //works....
if ( (SendRet = bcp_sendrow(hdbc1) ) != SUCCEED ) {
printf("bcp_sendrow(hdbc1) Failed");
Cleanup();
return(9);
}
}
--- Causes Access Violation ----
Code Snippet
for(idx=1; idx<=5; idx++){
sprintf(k1, "%d", idx); //does not work...
//sprintf(k1, "oo"); //works....
if ( (SendRet = bcp_sendrow(hdbc1) ) != SUCCEED ) {
printf("bcp_sendrow(hdbc1) Failed");
Cleanup();
return(9);
}
}
--- Additional information ---
---------------------------
Target Table Definition
---------------------------
Code SnippetCREATE TABLE PtTest(
[ID] [int] IDENTITY(1,1) NOT NULL,
[PtID] [int] NOT NULL,
[ParamID] [nchar](10) NULL DEFAULT ((200)), --Above example trying to insert data here via k1 variable...
[ParamValue] [nchar](10) NULL DEFAULT ((200)),
[InsDate] [datetime] NULL DEFAULT (getdate()),
)
----------------------------
-----------------
Bind statements
-----------------
Code Snippet
int idx;
char k1[5];
char *terminator = "