Bacpac import from Windows Azure into sql server 2012 fails

Very sorry if this is posted in the wrong froum I was not sure where to post
I am trying to verify a bacpac file  I downloaded from my windows azure sql  instance and I am getting this error when trying to Import into SQl server express 2012. SQL server 2008r2 is also installed on this machine. How can  I fix this?
Count not load schema model from package. (Microsoft.SqlServer.Dac)
Program Location:
   at Microsoft.SqlServer.Dac.DacPackage.LoadModel(IPackageSource packageSource)
   at Microsoft.SqlServer.Dac.Extensions.DacExtensions.GetCollationString(IPackageSource packageSource)
   at Microsoft.SqlServer.Dac.Extensions.DacExtensions.GetCollationString(BacPackage package)
   at Microsoft.SqlServer.Management.Dac.DacWizard.CreateDatabaseOnTargetWorkItem.DoWork()
   at Microsoft.SqlServer.Management.TaskForms.SimpleWorkItem.Run()
===================================
Internal Error.  The internal target platform type SqlAzureDatabaseSchemaProvider does not support schema file version '2.5'. (File: G:\Fbasic8-2014-2-2-12-10.bacpac) (Microsoft.Data.Tools.Schema.Sql)
Program Location:
   at Microsoft.Data.Tools.Schema.SchemaModel.DataSchemaModel.UpgradeSchema(ExtensionManager em, String originalSchemaVersion, XmlReader originalSchemaReader, String source)
   at Microsoft.Data.Tools.Schema.SchemaModel.DataSchemaModel.DeserializeXml(TextReader input, ErrorManager errors, String source, Action`3 constructorParametersSetter)
   at Microsoft.Data.Tools.Schema.SchemaModel.DataSchemaModel.DeserializePackage(SqlPackage package, ErrorManager errors, Action`3 constructorParametersSetter)
   at Microsoft.SqlServer.Dac.DacPackage.LoadModel(IPackageSource packageSource)
Jon Stroh

Hello,
Just as Mike post above, the issue may occurs as the previous SSDT releases are not compatible with this new version of DACFX.
You can refer to the following blog about this issue and download the latest release of SSDT from
here.
Reference:http://blogs.msdn.com/b/ssdt/archive/2012/10/10/ssdt-amp-dacfx-october-2012-compatibility-notes.aspx
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support

Similar Messages

  • Tsql import from xml to table - sql server 2012 = (o row(s) affected)

    Hello,
    here is my XML header and footer:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <streetAndCities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <record>
    <rowIndex></rowIndex>
    <cityCode></cityCode>
    <cityName></cityName>
    <streetCode></streetCode>
    <streetName></streetName>
    </record>
    </streetAndCities>
    with a bunch of <record></record> tags with data inside....
    I'm trying to import data from my XML file to my new and empty table with the following code:
    DECLARE @xml XML
    SELECT @xml = x.y
    FROM OPENROWSET( BULK 'c:\st.xml', SINGLE_CLOB ) x(y)
    INSERT INTO tblCitiesStreets(rowIndex, cityCode, cityName, streetCode, streetName)
    SELECT
    x.y.value('(Column[@Name="rowIndex"]/text())[1]', 'INT') rowIndex,
    x.y.value('(Column[@Name="cityCode"]/text())[1]', 'NVARCHAR(255)') cityCode,
    x.y.value('(Column[@Name="cityName"]/text())[1]', 'NVARCHAR(255)') cityName,
    x.y.value('(Column[@Name="streetCode"]/text())[1]', 'NVARCHAR(255)') streetCode,
    x.y.value('(Column[@Name="streetName"]/text())[1]', 'NVARCHAR(255)') streetName
    FROM @xml.nodes('Root/DataRow') AS x(y)
    but the output I get is 
    (0 row(s) affected)
    and of course when I select * from tblCitiesStreets, the table is empty.
    what is wrong with the code?
    regards

    Nothing's wrong with your code. You're working with the wrong file OR - I guess - you have copied those XPath expressions without further looking at them..
    This works with your XML:
    DECLARE @xml XML = N'
    <streetAndCities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <record>
    <rowIndex>1</rowIndex>
    <cityCode>2</cityCode>
    <cityName>3</cityName>
    <streetCode>4</streetCode>
    <streetName>5</streetName>
    </record>
    </streetAndCities>';
    SELECT Record.value('rowIndex[1]', 'INT') rowIndex ,
    Record.value('cityCode[1]', 'NVARCHAR(255)') cityCode ,
    Record.value('cityName[1]', 'NVARCHAR(255)') cityName ,
    Record.value('streetCode[1]', 'NVARCHAR(255)') streetCode ,
    Record.value('streetName[1]', 'NVARCHAR(255)') streetName
    FROM @xml.nodes('streetAndCities/record') AS StreetsAndCities ( Record );

  • Comments not imported from Data Dictionary of SQL Server. SDDM 3.3.0.747

    Hi,
    SDDM 3.3.0.747 32-bit on Windows 7 64-bit.
    Comments are not imported from Data Dictionary of SQL Server 2008. Connection through Microsoft JDBC Driver 4.0 for SQL Server or jTDS 1.2.7
    What I have tried? In SDDM DDL generation, Comments in DBRMS for SQL Server are generated with "EXEC sp_addextendedproperty 'MS_Description' , 'Test Comment' ..." so I added extended property named "MS_Description" into SQL Server database, both on table and column. None of them were imported from Data Dictionary into SSDM. I have tried both drivers stated above. Is it a bug or am I missing something?
    I've found similar question thread Re: Data dictionary import doesn't import column comments for SDDM 3.0.0.665, so I guess it is a bug when importing with JDBC drivers.
    MiGli
    Edited by: MiGli_1006342 on May 25, 2013 8:32 AM
    Edited by: MiGli_1006342 on May 25, 2013 9:02 AM

    Extended properties were not imported correctly from SQLServer databases at DM 3.3.0.747.
    Calls to sp_addextendedproperty and fn_listextendedproperty have been modified.
    I don't think it is a problem with JDBC drivers.
    A bug fix should be available in the next release of DM.

  • Import MS Access 2013 tables into SQL Server 2012

    Hi there,
    Is there a step by step example somewhere showing how to import an MS Access 2013 table into SQL Server 2012?
    I have read the existing posts and don't see a definitive answer.
    I have installed MS Access 2010 engine, first 32 bit then 64 bit.
    I have installed the MS Access 2013 runtime on my server.
    I use the Office 2015 Access Database Engine OLE DB Provider.
    I get the error:
    Error 0xc0202009: Source - APEntries [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
    Error 0xc02020e8: Source - APEntries [1]: Opening a rowset for "`TableName`" failed. Check that the object exists in the database.
    The post regarding the above errors doesn't resolve the issue.
    I have full administrative permissions on the server.
    What is the trick to making this work?
    Thanks,
    Ric
    Ric Miller

    Hi there,
    I tried the exact same operation on a third machine.
    This machine has Windows 8.1 64 bit, SQL Server 2012 64 bit, MS Office 2013 Plus 32 bit.
    I am the administrator on this machine.
    I installed this:
    Microsoft Access Database Engine 2010 Redistributable 32 bit (because I have MS Office 2013 plus 32 bit installed.)
    From here:
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    It won't let me install the 64 bit version without uninstalling MS Office 32 bit.
    I created an MS Access database on this machine using MS Access 2013 and created a table with 3 records.
    I used the "Import and Export Data (32 bit)" from the start menu.
    After I installed the "Database Engine 2010 32 bit" driver above, I now have the option of "Office 2015 Access Database Engine OLE DB Provider" as Data Source which I did not have prior to doing this installation.
    I selected the driver and added the Properties of the Data Source Name file location of the MS Access file. I am using a blank password.
    I go thru the same sequence of selecting a table to import and after running the result is the same:
    Error 0xc0202009: Source - APEntries [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
    "Error 0xc02020e8: Source - APEntries [1]: Opening a rowset for "`TableName`" failed. Check that the object exists in the database."
    This seems to be consistent across three machines with three operating systems with the same files and the same result.
    I understand that some people have gotten this to work.
    I would appreciate it if anyone can report an error in the above procedure to me.
    Thanks,
    Ric
    Ric Miller

  • EM12c: Add Target SQL Server 2012 Fails

    EM12c: Add Target SQL Server 2012 Fails
    Configuration:
    EM12c platform:
    Oracle Enterprise Linux 6.2(x86_64)
    Oracle Enterprise Database 11.2.0.3 (x86_64)
    Enterprise Manager Cloud Control 12c Release 1 (12.1.0.1) (x86_64)
    Microsoft SQL Server Plug-In 12.1.0.2.0 deployed in the Management Server
    Target:
    Windows Server 2008 R2 Enterprise Edition SP1 (64-bit)
    SQL Server 2012 (Enterprise Edition) (64-bit)
    Microsoft SQL Server Plug-In 12.1.0.2.0 deployed in the Management Agent
    Problem: EM12c fails to add a SQL Server 2012 instance.
    Target Name: mssql_mcsdbsqlsrv2.esri.com     
    Target Type: Microsoft SQL Server
    Agent: https://mcsdbsqlsrv2.esri.com:3872/emd/main/
    * JDBC URL (Example : jdbc:sqlserver://<host>:<port>): jdbc:sqlserver://mcsdbsqlsrv2.esri.com:1433
    JDBC Driver (Optional): com.microsoft.sqlserver.jdbc.SQLServerDriver
    Database Username (Required for SQL Authentication): sa
    Password of Database User (Required for SQL Authentication): ****     
    System Username (Needed when SQLServer is at remote location):
    System Password (Needed when SQLServer is at remote location):     
    Connect Using Windows Integrated Authentication (Yes/No): No
    Role (Optional):
    Error:
    MSSQLDetermineName_DynamicProperty;em_error=Could not connect. Error code = 0x8004100e
    em_error=Failed while connecting to WMI.
    Response;Can't resolve a non-optional query descriptor property [provided_sql_server_name] (ms_sqlserver_servername)
    The sa login is enabled and I can connect from a remote machine to the MSSQL 2012 server using SQL Server Management Studio.
    I have also added several default MSSQL 2008 instances to EM12c successfull.
    I've installed the latest "Microsoft SQL Server Plug-In 12.1.0.2.0" in EM12c and deployed it to the target agent in the MSSQL 2012 machine
    Does EM12c (12.1.0.1) support MSSQL 2012?
    Thanks,
    Marcelo Marques
    Technical Manager, Esri
    Edited by: Marcelo Marques - ESRI on Sep 26, 2012 9:12 AM
    Edited by: Marcelo Marques - ESRI on Sep 26, 2012 9:13 AM

    Hello All,
    What is the latest information on MSSQL 2012 support on EM12c as a supported Target Deployment?
    Thanks
    Jan S.

  • Importing Data into Sql Server 2012 from Excel Data

    Hi,
    I got errors like this when i am doing import data into sql server from excel Data. Can you please help us?
    - Executing (Error)
    Messages
    Error 0xc020901c: Data Flow Task 1: There was an error with Source - demotable$.Outputs[Excel Source Output].Columns[Comment] on Source - demotable$.Outputs[Excel Source Output]. The column status returned was: "Text was truncated or one
    or more characters had no match in the target code page.".
     (SQL Server Import and Export Wizard)
    Error 0xc020902a: Data Flow Task 1: The "Source - demotable$.Outputs[Excel Source Output].Columns[Comment]" failed because truncation occurred, and the truncation row disposition on "Source - demotable$.Outputs[Excel Source Output].Columns[Comment]"
    specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
     (SQL Server Import and Export Wizard)
    Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - demotable$ returned error code 0xC020902A.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
     (SQL Server Import and Export Wizard)

    Are you attempting to import into a newly made table or into an existing table? It looks like it's trying to insert data where it cannot be inserted (invalid column or lack of data size in your column).
    Try the following:
    1). In your excel sheet, highlight the whole sheet and make sure the cells are in 'text' form and try re-importing
    2). save the document as ms dos TEXT and import as a text document.
    3). double check your columns are correct for the data, for example if you have a column that has a string of 100 characters and your column is 'NvarChar(90)' - that might cause the error? Or just correct data type in your column
    3). If that doesn't work and you're inserting into a new table, try importing it as string first and writing a query to insert columns that should be float/integer or whatever. You may want to convert float texts to a 'bigint' first rather than string
    > float as that can cause problems if I remember correctly.

  • Data Import from Oracle Dump to SQL Server(2000/2005)

    Hi Friends,
    I'm using Oracle 10g.
    I've a scenario.
    I've Oracle Dump file. Now i would like import in SQL Server(2000/2005).
    Can any one suggest me how to do this?
    Any idea,clue will be highly appreciated.

    I think you will need to import the data into SQL Server from an ASCII flat file using SQL Server DTS if avialable. You can use SQL Plus to extract the data outof Oracle into comma delimited flat files and then use SQL Server DTS load into the SQL Server database.

  • Importing English Wikipedia dump (large .xml file) into SQL server 2012

    Hi there,
    I've downloaded the latest English Wikipedia dump (enwiki-latest-pages-articles.xml),
    and I'm trying to import it to SQL server 2012 by using XML Bulk Load. This is the VBScript
    code I've used:
    Dim objBL
    Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkload.4.0")
    objBL.ConnectionString = "provider=SQLOLEDB;data source=localhost;database=tempdb;integrated security=SSPI"
    objBL.ErrorLogFile = "error.log"
    objBL.CheckConstraints=true
    objBL.XMLFragment = True
    objBL.SchemaGen = True
    objBL.SGDropTables = True
    objBL.Execute "export-0.8.xml", "enwiki-latest-pages-articles.xml"
    Set objBL = Nothing
    This VBScript should generate the tables and load the Wikipedia XML file into them. The VBScript code also uses the wikimedia
    XSD schema. However, I'm getting this error:
    Any help with this problem would be appropriate!

    Why not try looking at this:
    http://technet.microsoft.com/en-us/library/ms191184.aspx
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • Import data from Informix DB to SQL Server 2012

    I am trying to use the SSIS Import and Export Wizard in SQL Server Data Tools to migrate an Informix database to SQL Server 2012.  I go through the steps & when I hit Finish I get an error message that says:
    TITLE: SQL Server Import and Export Wizard
    Could not connect source component.
    Error 0xc0047062: Source - material [1]: System.Data.Odbc.OdbcException (0x80131937): ERROR [42000] [Informix][Informix ODBC Driver][Informix]A syntax error has occurred.
       at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
       at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
       at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
       at System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior)
       at System.Data.Odbc.OdbcCommand.ExecuteDbDataReader(CommandBehavior behavior)
       at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
       at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.ReinitializeMetaData()
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostReinitializeMetaData(IDTSManagedComponentWrapper100 wrapper)
    ADDITIONAL INFORMATION:
    ERROR [42000] [Informix][Informix ODBC Driver][Informix]A syntax error has occurred. (iclit09b.dll)
    BUTTONS:
    OK
    I am getting this error when I use the "Copy data from one or more tables or views" option.  I am able to migrate a single table with no problem when I use the "Write a query to specify the data to transfer"
    option.  This is my first time using SSIS so I am not sure what to do.  Can anyone help me out?  Thanks...

    The following link explains the steps/processes requires to perform this in SSIS:
    http://davidbridge.wordpress.com/2012/05/30/extraction-from-informix-database-using-ssis-data-warehouse-etl/
    Thanks, hsbal

  • Run sql 2008 ssis package into sql server 2012 machine

    Hello,
    I have created a ssis package in sql server 2008 and use a job to execute it pointing to databaseA. works fine.
    Then, I place that package into a sql server 2012 machine and use a job to execute it in the same database, databaseA.
    The error I get is something like:
    can not use the old version in the new version machine.
    Is this really the case or am I doing something wrong please?

    Hi Arkiboys,
    Arthur is right that the error occurs because the SSIS 2008 package cannot be upgraded to SSIS 2012 package. When the SSIS 2008 package is called by SSIS 2012 dtexec utility tool, the package will be upgraded temporarily and the changes won’t be saved. Since
    your current SSIS 2008 package cannot be upgraded automatically, you can create the package from scratch in SSDT installed by SQL Server 2010. Another option isto open the SSIS 2008 package in SSDT or add the package to a SSIS 2012 project, then the upgrade
    will be performed automatically. Then, you can check the error message during the upgrade, which may help you to find the tasks/components that cause the upgrade failure. In this way, you can remove the tasks/components in question from the SSIS 2008 package
    and then upgrade the package, and then add the tasks/components in question in SSDT 2010.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here.
    Mike Yin
    TechNet Community Support

  • Inserting date from a jsp into sql server 2005 database

    Dear Friends.,
    i have a jsp page, in that there is a form with various user input fields. in that one field is date field. i tried to insert the date field into the sql server 2005 database. but it is not getting inserted into the database.
    when i tried by inserting one field to database, it is getting inserted. for all the fields its works fine, except the date field.
    i need hint or code to insert the date get from the jsp page to database.
    i am using a servlet to do all database related things. i.e making connections, executing prepared statement queries
    thanks
    sekar.

    The variable needs to be outside of the string to be recognized as a variable. You need to remove the variable from the string, then concatinate it onto the string (and concatinate any remaining string parts - the closing paren). For example:
    stmt.executeUpdate("INSERT INTO table VALUES ('test', " + companyID + ")");
    Hope that's clear enough and helps. Good luck on your thesis!
    jim

  • SSIS Import XML task running in SQL Server Agent fails

    I have created an SSIS package to import some XML files into my SQL2014 datawarehouse. If I run this package through the visual studio designer it works fine. The XML files are stored on a remote share accessed via UNC path. When I schedule the package to
    run using SQL server agent it fails with the following errors :-
    Executed as user: SPRINGFIELD\MSSQL. Microsoft (R) SQL Server Execute Package Utility  Version 12.0.2000.8 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  12:01:53  Error: 2014-11-18 12:01:59.78    
    Code: 0xC02090CF     Source: Import Screen XML XML Source [199]     Description: There was an error setting up the mapping. The device is not ready.  End Error  Error: 2014-11-18 12:01:59.78    
    Code: 0xC0047019     Source: Import Screen XML SSIS.Pipeline     Description: XML Source failed the prepare phase and returned error code 0xC02090CF.  End Error  DTExec: The package execution returned DTSER_FAILURE
    (1).  Started:  12:01:53  Finished: 12:03:32  Elapsed:  98.859 seconds.  The package execution failed.  The step failed.
    The user MSSQL has been granted full permissions to the remote share. If I remove these permissions then I don't get an error - but I also don't get any data imported. I have granted the MSSQL user xp_cmdexec permission. Both my SQL server database engine
    and agent are running as the MSSQL user.
    There must be some permission step I am missing - can anyone tell me what it may be ?

    FYI: The XSD path is hardcode... if you want it to be more flexible you can add an expression on that property:
    http://microsoft-ssis.blogspot.com/2014/09/xsd-location-hardcoded-in-xml-source.html
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Can SQL server 2014 instance be introduced into SQL server 2012 clustering

    Hello, everyone,
    We have SQL server clustering set up in place (it is actually windows clustering), I am wondering if it is possible to introduce SQL server 2014 instance
    into this clustering. Please share us your thoughts and experiences.
    Thanks

    if you are talking about SQL clustering -(FAILOVER CLUSTERED  INSTANCES) , yes, you can do that.
    you have windows cluster with nodea,nodeb....and you can install two different instances of failover clustered sql - sql 2012 and sql 2014.
    Hope it Helps!!

  • Migrating SSRS custom security from 2008 R2 to SQL Server 2012

    Hi,
    We have built custom security in SSRS 2008 R2 and now we are migrating it to SSRS 2012. We are facing an issue, it always throws Security exception below and when we are changing
    web.config file to below line we are getting "500 Internal server error". Tried everything, no luck... can someone please assist here whether we need to rewrite entire custom security code and then migrate it to SSRS 2012 custom
    security. Any help here much appreciated
    <authentication mode="Forms">
          <forms loginUrl="logon.aspx" name="sqlAuthCookie" timeout="60" path="/"></forms>
        </authentication>   
        <identity impersonate="false" />
    Regards,
    Harish 

    Hi yashmitl,
    In your case, please running the following command to check the current URL reservations on http.sys.
    netsh http show urlacl
    Then, please delete the URL reservation by executing the following command try to resolve the issue.
    netsh http delete urlacl <url>
    There is a similar issue, you can refer to it.
    http://social.technet.microsoft.com/Forums/en-US/d5204dd3-e26d-4592-8ef0-a94005fc46a5/the-url-has-already-been-reserved?forum=sqlreportingservices
    Hope this helps.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Best way to import csv file into sql server

    Hello DBAs
    always thankful for your help and one question, what is the best way to import a csv file into sql server ?

    and there is a
    Bulk Insert Task for the Control Flow.
    http://www.youtube.com/watch?v=ACuCU6IqO50
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

Maybe you are looking for

  • 'profit center report Revenue side'

    Dear friends, While doing AP invoice ,i am selecting Profit center. OR for JE of AP invoice if i select profit center. So its amount is comming in 'profit center report Revenue side' is it right?not understood its logic.? Regds mahesh.

  • List items in JSF 1.2?

    Hello, I'm in the process of learning JSF (I have a little ASP.NET background). I'd like to be able to iterate through a List of items and render them as buttons on the jsp page, inside list items in an unordered list: <ul>   <li><button name="btn1"

  • How to remove magicjack plus osx  10.7.5

    Hello, I am new to Mac and I am not a Unix system programmer. I purchased a MagicJack Plus for my sister and I set it up using my new iMac for her. Now I would like to remove the setup software from my iMac as I do not like to leave extraneous softwa

  • In-apps purchase error

    Dear All, I purchased an in-apps from a company which have already charged my card but yet i have wait for a week but i still haven not getting the item in the games so i contact the company and they replied me request apple to refund due to their si

  • Data Forms in Smart View - Add Members

    We have data forms with Add Member functionality. When opening that data form using Smart View it puts red border around top member but then instead of allowing user to select a member it lists all of them in the rows. A good example is ICP data form