Import data from xml using ssis
Using Sql Server 2012 STD edition, SSDT (Visual Studio 2010 shell, .net framework 4.0.3 SP1
I am trying to import data from an xml file using ssis.
Here are the three options I tried and none worked. Please see errors that I encountered in all options and let me know what I can do to import this data in sql
server.
I created a new ssis project with an ssis package. I pulled a data flow task on the control flow. On the data flow tab I pulled an xml source and a sql server
destination. Now I tried to configure the xml source task in the the following three ways, but none worked.
1. I browse the xml file to set xml location. Browse the xsd file to set xsd location, then click ok. I get the following error:
HRESULT errorcode 0xC02090CF from a method call. There was an error setting up the mapping. Undefined complex Type 'gml_V4.1_Release:PolygonType'
is used as a base for complex type extension
2. I browse the xml file to set xml location. check "Use inline schema" Click ok. Error:
HRESULT errorcode 0xC020929E from a method call. The xml source adapter was unable to process the XML data. Multiple inline schemas are not supported.
3.I browse the xml file to set xml location. Click "Generate XSD". Error: The supplied xml instance is a schema or contains inline schema. The
class cannot infer a schema for a schema.
Thank you for your help.
Hi ,
I think something problem with the XSD file i too faced somewhat same problem, i have created XSD file from the following link and tried in my package it has worked why don't u try to create xsd file from following link and try again once.
http://xmlgrid.net/xml2xsd.html
Niraj Sevalkar
Similar Messages
-
Importing data from Excel using SDK!
Hi All,
Can we do a Goods Receipt and Goods Issue via SDK.
IF so any code available for the same!Secondly can we
Import data from Excel using SDK!
Thnx in advanceHi Vinayak
4 your 2nd issue: you can easily use Excel.Application COM-object. In C# exporting from Excel can be:
Excel.Application oXL;
Excel._Workbook oWB;
Excel._Worksheet oSheet;
string strTemplatePath;
strTemplatePath = Application.StartupPath + "WHRequestList.xlt";
try
oXL = new Excel.Application();
oWB = (Excel._Workbook)(oXL.Workbooks.Add(strTemplatePath));
oSheet = (Excel._Worksheet)oWB.ActiveSheet;
SAPbouiCOM.Item edDocNum;
SAPbouiCOM.IEditText specEdDocNum;
edDocNum = SBOApp.Forms.Item(FormUID).Items.Item("8");
specEdDocNum = (SAPbouiCOM.IEditText)edDocNum.Specific;
SAPbouiCOM.Item edDocDate;
SAPbouiCOM.IEditText specEdDocDate;
edDocDate = SBOApp.Forms.Item(FormUID).Items.Item("10");
specEdDocDate = (SAPbouiCOM.IEditText)edDocDate.Specific;
oSheet.Cells[2, "F"] = "¹ " + specEdDocNum.String + " îò " + specEdDocDate.String;
oXL.Visible = true;
oXL.UserControl = true;
BTW, don't forget to add Excel object in ProjectReferences
For sure, importing (reading) from Excel is the same
HTH -
Error when reading data from XML using JAXB?
Hi all,
I get the error message when reading data from XML using JAXB.
[org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException
(AbstractUnmarshallerImpl.java:315)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:481)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)
I don't find the reason, please help!
Thanks in advance!The problem is sovled.
-
Possible to use JavaScript to Import Data from XML file to pre-fill fields?
Hi,
I have a dynamic fill-in PDF that I want to "pre-fill" internally in my company before sending out to users who will change any pre-filled fields necessary and answer questions we did not already answer.
We do not have LiveCycle Reader Extensions, but we can use Acrobat to import data from an XML document to pre-fill the named fields. Is it possibly to do this task using folder-level Javascript or some other method? I can look into this, and post my findings, but I'd like to know if it's possible or if I need to use a different programming language.Hi,
I am afraid that solution was for a specific client and I can't share it. If I get a chance I will mock up an example, but this wont be for a while. From memory it was just a straight importData method. This would normally fail silently in a non-certified form, but when the form is digitally signed/certified, it works without a hitch.
Good luck,
Niall -
Error while importing data from XML file to a Oracle database
I am getting the following error while importing data
*** atg.xml.XMLFileException: No XML files were found for "/Dynamusic/config/dynamusic/songs-data.xml".
The files must be located under the name "/Dynamusic/config/dyna
*** java.io.FileNotFoundException: D:\MyApp\ATG\ATG10.0.3 (Access is denied)
java.io.FileNotFoundException: D:\MyApp\ATG\ATG10.0.3 (Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at atg.adapter.gsa.xml.TemplateParser.importFiles(TemplateParser.java:6675)
at atg.adapter.gsa.xml.TemplateParser.runParser(TemplateParser.java:5795)
at atg.adapter.gsa.xml.TemplateParser.main(TemplateParser.java:5241)
I have placed the FakeXADataSource and JTDataSource properties files as required. In fact I have been able to import data in all machines. Just this one machine is giving problems. I have also checked out the access rights. Can someone help me please?Confirm that you have access to D:\MyApp\ATG\ATG10.0.3 and existence of Dynamusic/config/dynamusic/songs-data.xm
-
Import data from XML file into ICM script
Hello,
Is it possible to read data from an XML file into an ICM Admin script? If yes, using which node?
Thanks,
Justine.Hi,
as far as i know not directy. Only Method i could think of right now is via CVP Application (Java Class, Custom Node) or IVR Script.
To import data you only have the Database Node which does only allow sources form the Database Lookup Explorer ir passing data along to/from external scripts.
Fabian -
Extracting data from XML using xmltype and extract
Hello all,
I want to write a pl/sql functions that takes a clob as an input and return a some data extracted from the data passed into it.
the input will be an xml similar to the following:
<FIXML xsi:schemaLocation="http://www.finacle.com/fixml executeFinacleScript.xsd" xmlns="http://www.finacle.com/fixml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<ResponseHeader>
<RequestMessageKey>
<RequestUUID>IVR201306180841060310000000000000000</RequestUUID>
<ServiceRequestId>executeFinacleScript</ServiceRequestId>
<ServiceRequestVersion>10.3</ServiceRequestVersion>
<ChannelId>IVR</ChannelId>
</RequestMessageKey>
<ResponseMessageInfo>
<BankId>01</BankId>
<TimeZone></TimeZone>
<MessageDateTime>2013-06-18T05:36:55.918</MessageDateTime>
</ResponseMessageInfo>
<UBUSTransaction>
<Id/>
<Status/>
</UBUSTransaction>
<HostTransaction>
<Id/>
<Status>SUCCESS</Status>
</HostTransaction>
<HostParentTransaction>
<Id/>
<Status/>
</HostParentTransaction>
<CustomInfo/>
</ResponseHeader>
</Header>
<Body>
<executeFinacleScriptResponse>
<ExecuteFinacleScriptOutputVO>
<executeFinacleScript_customData>
<DataCategory>ACC</DataCategory>
<New_Data>0001019300101001</New_Data>
</executeFinacleScript_customData>
</ExecuteFinacleScriptOutputVO>
</executeFinacleScriptResponse>
</Body>
</FIXML>'
I want to extract the value of new_data.
I wrote the following anonymous block to test the code :
declare
xparam xmltype;
v_xpath varchar2(500);
begin
xparam:=xmltype('<FIXML xsi:schemaLocation="http://www.finacle.com/fixml executeFinacleScript.xsd" xmlns="http://www.finacle.com/fixml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<ResponseHeader>
<RequestMessageKey>
<RequestUUID>IVR201306180841060310000000000000000</RequestUUID>
<ServiceRequestId>executeFinacleScript</ServiceRequestId>
<ServiceRequestVersion>10.3</ServiceRequestVersion>
<ChannelId>IVR</ChannelId>
</RequestMessageKey>
<ResponseMessageInfo>
<BankId>01</BankId>
<TimeZone></TimeZone>
<MessageDateTime>2013-06-18T05:36:55.918</MessageDateTime>
</ResponseMessageInfo>
<UBUSTransaction>
<Id/>
<Status/>
</UBUSTransaction>
<HostTransaction>
<Id/>
<Status>SUCCESS</Status>
</HostTransaction>
<HostParentTransaction>
<Id/>
<Status/>
</HostParentTransaction>
<CustomInfo/>
</ResponseHeader>
</Header>
<Body>
<executeFinacleScriptResponse>
<ExecuteFinacleScriptOutputVO>
<executeFinacleScript_customData>
<DataCategory>ACC</DataCategory>
<New_Data>0001019300101001</New_Data>
</executeFinacleScript_customData>
</ExecuteFinacleScriptOutputVO>
</executeFinacleScriptResponse>
</Body>
</FIXML>');
v_xpath:='//New_Data/text()';-
dbms_output.put_line(xparam.EXTRACT(v_xpath).GETSTRINGVAL());
end;
but I get the following Error:
dbms_output.put_line(xparam.EXTRACT(v_xpath).GETSTRINGVAL());
end;
Error at line 1
ORA-30625: method dispatch on NULL SELF argument is disallowed
ORA-06512: at line 46
the problem is that when I remove : xmlns="http://www.finacle.com/fixml" attribute from the root node the code works correctly.
of course , I can simply use replace to remove it, but I want to know what is causing the error.
I am using oracle database 10gLet me explain that the issue is not only related to Oracle.
If you google a bit for default namespace and Xpath you will find many topic.
Basically when you have an XML having a definition of namespace without a prefix:
i.e.:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example XHTML document</title>
</head>
<body>
<p>Sample content</p>
</body>
</html>
this means that all unprefixed elements are belonging to this default namespace.
In this case an Xpath equal to '//title/text()' will not get anything because it is assuming to find the element title within a null namespace. But title in this case is automatically assigned to the default namespace.
When you specify a prefix in a namespace then all elements without prefix are associated to namespace NULL. Using a default namespace is causing a lot of headache.
These links can be giving a clearer picture:
http://www.edankert.com/defaultnamespaces.html
Assuming that you have data like this:
WITH mydata AS
( SELECT '
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example XHTML document</title>
</head>
<body>
<p>Sample content</p>
</body>
</html>' xmldata FROM DUAL
SELECT xmltype (xmldata).EXTRACT ('//title/text()').getstringval ()
FROM mydata;
This query will not give anything back to you. You will have to specify:
SELECT xmltype (xmldata).EXTRACT ('//title/text()', 'xmlns="http://www.w3.org/1999/xhtml"').getstringval ()
FROM mydata;
Note also that you should be able to get the default namespace when it is specified (without prefix) by using:
SELECT xmltype(xmldata).getnamespace() from mydata;
Post your Oracle version to see if it something related to your version. In mine I got this:
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 20 18:32:58 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> WITH mydata AS
2 ( SELECT '
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>Example XHTML document</title>
6 </head>
7 <body>
8 <p>Sample content</p>
9 </body>
10 </html>' xmldata FROM DUAL
11 )
12 SELECT xmltype(xmldata).getnamespace() from mydata;
XMLTYPE(XMLDATA).GETNAMESPACE()
http://www.w3.org/1999/xhtml
SQL>
If this would work, then it would be enough to add the optional additional parameter namespace. In case it is null it will be set as xmlsn="" and it will work anyway:
Please note that it will work both if the XML has a default namespace or not
i.e.:
with default namespace:
SQL> DECLARE
2 xparam XMLTYPE;
3 v_xpath VARCHAR2 (500);
4 v_ns VARCHAR2 (500);
5 BEGIN
6 xparam :=
7 xmltype ('
8 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ns="http://www.w3.org/1999/xhtml" >
9 <head>
10 <title>Example XHTML document</title>
11 </head>
12 <body>
13 <p>Sample content</p>
14 </body>
15 </html>');
16 v_xpath := '//title/text()';
17 v_ns := 'xmlns="' || xparam.getnamespace () || '"';
18 DBMS_OUTPUT.
19 put_line (
20 'Value of title:' || xparam.EXTRACT (v_xpath, v_ns).getstringval ());
21 END;
22 /
Value of title:Example XHTML document
PL/SQL procedure successfully completed.
SQL>
and without default namespace
SQL> DECLARE
2 xparam XMLTYPE;
3 v_xpath VARCHAR2 (500);
4 v_ns VARCHAR2 (500);
5 BEGIN
6 xparam :=
7 xmltype ('
8 <html xmlns:ns="http://www.w3.org/1999/xhtml" >
9 <head>
10 <title>Example XHTML document</title>
11 </head>
12 <body>
13 <p>Sample content</p>
14 </body>
15 </html>');
16 v_xpath := '//title/text()';
17 v_ns := 'xmlns="' || xparam.getnamespace () || '"';
18 DBMS_OUTPUT.
19 put_line (
20 'Value of title:' || xparam.EXTRACT (v_xpath, v_ns).getstringval ());
21 END;
22 /
Value of title:Example XHTML document
PL/SQL procedure successfully completed.
Regards.
Al
Message was edited by: AlbertoFaenza
IF removed as it is working anyway. -
Extracting data from XML using extractValue
Given the following XML stored as xmlType in the database(table name
:opfdata) , i woiuld like to query it using extractValue,existsNode to
retrieve the title of the book (dc:Title).
i wrote the following query
select e.existsNode('/package/metadata/dc-metadata/dc-Title
unique-identifier="uid"') from opfdata e;
Gives result as 1.
But if i run change existNode to extractValue it gives me an error
daying the xpath expression is wrong.
Any ideas?
<package unique-identifier="uid"
xmlns="http://openebook.org/namespaces/oeb-package/1.0/">
<!-- Metadata follows, Dublin core plus any metadata extensions-->
<metadata>
<dc-metadata xmlns:dc="http://purl.org/dc/elements/1.0/"
xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/">
<dc:Title>Midnight Come Again</dc:Title>
<dc:Subject>Shugak, Kate (Fictitious character)
Fiction.</dc:Subject>
<dc:Subject>Women private investigators -- Alaska
Fiction.</dc:Subject>
<dc:Subject>Smuggling Fiction.</dc:Subject>
<dc:Subject>Alaska Fiction.</dc:Subject>
<dc:Subject>Mystery fiction.</dc:Subject>
<dc:Identifier id="uid"
scheme="DTB">us-nls-db00010</dc:Identifier>
<dc:Creator role="aut">Dana Stabenow</dc:Creator>
<dc:Source>ISBN-0-312-20596-1</dc:Source>
<dc:Publisher>National Library Service for the Blind and
Physically
Handicapped</dc:Publisher>
<dc:Date>2002-5</dc:Date>
<dc:Format>ANSI/NISO Z39.86-2002</dc:Format>
<dc:Description>Following the death of her lover, in Hunter's
Moon (RC 49633), depressed Kate Shugak takes a job in a coastal
village as a cargo pilot. Meanwhile Alaska state trooper Jim Chopin is
sent there under cover to investigate Russian smugglers. Some explicit
descriptions of sex, some violence, and some strong language. 2000.
</dc:Description>
<dc:Language>en</dc:Language>
</dc-metadata>
</package>Hi,
First of all what is the result of the query
select e.existsNode('/package/metadata/dc-metadata/dc-Title
unique-identifier="uid"') from opfdata e;
existsNode returns 1 if it finds the row and 0 if it doesn't find the node.
The xpath which you need to give to retrieve to retrieve the title of the book is:
'/package/metadata/dc-metadata/title'
You can refer the following link to know more about existsNode and extractValue
http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96620/xdb03usg.htm#1036760
You can check the samples on XML DB which uses the different functionalities of Oracle XML DB.
http://otn.oracle.com/sample_code/tech/xml/xmldb/content.html
Check the Survey Sample which uses many features of XML DB. The sample is located at:
http://otn.oracle.com/sample_code/tech/xml/survey/content.html
and the various features used in the sample are explained in the page:
http://otn.oracle.com/sample_code/tech/xml/survey/docs/AboutOracleXMLDB.html
Regards,
Anupama
http://otn.oracle.com/sample_code/content.html -
Import data from excel using caption
Hi
I have an access database which I imported to PowerPivot .
the database contains fields with ugly names, and captions with readable names
when I get the data into PowerPivot it takes only the ugly fields names and not the captions.
how can I get PowerPivot to get the captions so the end user will get names that he can use?
Thank youHello,
The column description in MS Access is meta data and I don't know any import tool, like Excel / Power Pivot / Power Query, which supports to use "description" instead of the column namen; even because entering a "description" is
not mandatory in MS Access, while a column name always is.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
Error: 2014-01-28 15:52:05.19
Code: 0x80004005
Source: xxxxxxxx SSIS.Pipeline
Description: Unspecified error
End Error
Error: 2014-01-28 15:52:05.19
Code: 0xC0202009
Source: Process xxxxxx Load TableName [48]
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid date format".
End Error
Error: 2014-01-28 15:52:05.19
Code: 0xC020901C
Source: Process xxxxxxxx Load TableName [48]
Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
the specified type.".
End Error
But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
This looks like bug to me, Any suggestion?Hi Mohideen,
Based on my research, the issue might be related to one of the following factors:
Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
Hope this helps.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
Import data from text file to a table using t-sql
Hi,
I am trying to import data from a text file to a table using the below query but it is returning an error.
SELECT *, 2 FROM OPENROWSET(BULK 'W:\file.txt',
FORMATFILE = 'W:\format_file.xml', FIRSTROW = 1, LASTROW = 1) as f
The error is:
Bulk load data conversion error (truncation) for row 1, column 1 (COPYRIGHT_DETAIL_CODE).<BCPFORMAT xmlns="http://schemas.microsoft.com/sqlserver/2004/bulkload/format" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RECORD>
<FIELD ID="1" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="1" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="2" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="5" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="3" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="5" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="4" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="10" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="5" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="1" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="6" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="1" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="7" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="10" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="8" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="10" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="9" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="8" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="10" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="8" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="11" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="8" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="12" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="5" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="13" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="8" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="14" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="2" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="15" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="3" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="16" xsi:type="CharTerm" TERMINATOR=" " MAX_LENGTH="4" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
<FIELD ID="17" xsi:type="CharTerm" TERMINATOR="\r\n" MAX_LENGTH="43" COLLATION="SQL_Latin1_General_CP1_CI_AS"/>
</RECORD>
<ROW>
<COLUMN SOURCE="1" NAME="Name1" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="2" NAME="Name2" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="3" NAME="Name3" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="4" NAME="Name4" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="5" NAME="Name5" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="6" NAME="Name6" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="7" NAME="Name7" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="8" NAME="Name8" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="9" NAME="Name9" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="10" NAME="Name10" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="11" NAME="Name11" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="12" NAME="Name12" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="13" NAME="Name13" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="14" NAME="Name14" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="15" NAME="Name15" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="16" NAME="Name16" xsi:type="SQLVARYCHAR"/>
<COLUMN SOURCE="17" NAME="Name17" xsi:type="SQLVARYCHAR"/>
</ROW>
</BCPFORMAT>
The format file that I am using is just like the same one above.
-
The SQL statement is not valid - when importing data from SQL Server using a query
Hi there,
I am trying to import data from SQL to Power Pivot using a SQL query like below:
SELECT Score.FieldCount, Score.Record.GetAt(0), Score.Record.GetAt(1), Score.Record.GetAt(2), Score.Record.GetAt(3), Score.Record.GetAt(4)
FROM
SELECT * FROM dbo.CLR1(
dbo.CLR2('c:\FILES\Test.xml'),
'SELECT * FROM [dbo].[CXCustomer_Small]') Input
) Score
And when I tried to validate it, it returns
The SQL statement is not valid. A column name cannot be blank.
I ran the above SQL statement in Management Studio and it works without problem. Any idea?
Thanks!
Chu
-- Predict everything. http://www.predixionsoftware.comNever mind, I figured out - I need to give each column a name.
-- Predict everything. http://www.predixionsoftware.com -
Ssis - import data from flat file to table (sql server 2012)
i have create a ssis for importing data from flat file to table in sql server 2012.
but i got the below error for some column in data flow task.
error: cannot processed because than one code page (950 and 1252)
anyone helps~Hi,
The issue occurs because the source flat file uses ANSI/OEM – Tranditional Chinese Big5 encoding. When processing the source file, the flat file connection manager uses code page 950 for the columns. Because SQL Server uses code page to perform conversions
between non-Unicode data and Unicode data, the data in the code page 950 based input columns cannot be loaded to code page 1252 based destination columns. To resolve the issue, you need to load the data into a SQL Server destination table that includes Unicode
columns (nchar or nvarchar), and convert the input columns to Unicode columns via Data Conversion or the Advanced Editor for the Flat File Source at the same time.
Another option that may not be that practical is to create a new database based on the Chinese_Taiwan_Stroke_BIN collation, and load the data to non-Unicode columns directly.
Reference:
http://social.technet.microsoft.com/Forums/windows/en-US/f939e3ba-a47e-43b9-88c3-c94bdfb7da58/forum-faq-how-to-fix-the-error-the-column-xx-cannot-be-processed-because-more-than-one-code-page?forum=sqlintegrationservices
Regards,
Mike Yin
TechNet Community Support -
How to upload the data from XML file to SAP database using IDOC
Hi,
I need some steps to upload data from XML format file from other directory to SAP database using IDOC.
how to approch this please if any one knows give me ans
it will be a great help ful to me
Thanks in Advance
MallikThank you vijay,
But i heard that by using this Fun modules, when we are passing IDOC in back ground schedule, so some other depended FM not supporting, so how to approach this and how to avoid this problem.
Have you worked on this before if any one worked on this please help me out
And thank you once again for your valuable information
Best Regards
Mallik -
Using Oracle Forms Importing Data From SQL Server into Oracle Tables.
Dear All,
We are using Oracle Forms 10g in windows XP and having OAS 10g and Oracle database 9i.
How can we import data from SQL Server 2005 into Oracle tables using Oracle Forms?
Thanks & Regards
EidyI have no idea what "Oracle Hetrogenius Services" is, so I can't help you with that, sorry.
SQL Developer might also assist you. SQL Developer can connect to SQL Server as well as Oracle and has some tools for migration. See the documentation for details:
http://download.oracle.com/docs/cd/E12151_01/doc.150/e12156/toc.htm
For additional help on using SQL Developer for this task, please consult Support or the SQL Developer forum: SQL Developer
Hope this helps,
Jacob
Maybe you are looking for
-
Add FI document number to message M8 060 (MIRO)?
Hi We have a user request to have the FI document no. added to the message when posting an invoice. The standard message shows only the MM document. The user claims that it took 7 minutes to change it at her previous employer, but I can't see any way
-
Unexpected error occurred - Try Again
Hi, I upgraded my Time Capsule from a 500GB disk to 2TB Seagate Barracuda After resassembly and re-start the following occures I attempted to Erase the new disk, unexpected error occurred - Try Again I completed a hard factory reset The Time time cap
-
Depreciation for certain Category of Buildings in Netherlands
Hello, In one of the roll-out I have come across specific requirement in Netherlands related to depreciation charge. APC Value - 100000 WOZ Value - 90000 Useful life of the Asset - 20 Years WOZ Value is the Govt. determined value of the asset. You
-
Validation Problems Were Found
problem: cvc-complex-type.2.4c: Expected element 'module@http://java.sun.com/xml/ns/javaee' before the end of the content in element application@http://java.sun.com/xml/ns/javaee:<null> at weblogic.descriptor.internal.MarshallerFactory$1.evaluat
-
All, I haven't been able to find such a topic so I assume I am the first one to ask, sorry if not... My problem is that the clipboard doesn't work between several applications : Camino -> mail Word -> mail Camino -> Text Smultron -> mail The clipboar