SQL server 2014 and VS 2013 - Dataflow task, read CSV file and insert data to SQL table

Hello everyone,
I was assigned a work item wherein, I've a dataflow task on For Each Loop container at control flow of SSIS package. This For Each Loop container reads the CSV files from the specified location one by one, and populates a variable with current
file name. Note, the tables where I would like to push the data from each CSV file are also having the same names as CSV file names.
On the dataflow task, I've Flat File component as a source, this component uses the above variable to read the data of a particular file. Now, here my question comes, how can I move the data to destination, SQL table, using the same variable name?
I've tried to setup the OLE DB destination component dynamically but it executes well only for first time. It does not change the mappings as per the columns of the second CSV file. There're around 50 CSV files, each has different set off columns
in it. These files needs to be migrated to SQL tables using the optimum way.
Does anybody know which is the best way to setup the Dataflow task for this requirement?
Also, I cannot use Bulk insert task here as we would like to keep a log of corrupted rows.
Any help would be much appreciated. It's very urgent.
Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com

The standard Data Flow Task supports only static metadata defined during design time. I would recommend you check the commercial COZYROC
Data Flow Task Plus. It is an extension of the standard Data Flow Task and it supports dynamic metadata at runtime. You can process all your input CSV files using a single Data Flow Task
Plus. No programming skills are required.
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

Similar Messages

  • Read .csv File and Update DB

    I have a .csv file with about 11 columns and multiple rows.
    I need to read this file and from each row extract the first
    4 columns and update my local database.
    If the value if 1st column (unique#) is already in DB do an
    Update else do an Insert.
    How do I read this .csv file and accomplish this goal?

    You read the file with <cffile>
    It then becomes nested lists. For the outer list, your
    delimiter is chr(10). Each list item is a row from your file. For
    your inner list, the delimiter is a comma.
    That should get you started. Details list functions and
    <cffile> are in the cfml reference manual. If you don't have
    one, the internet does.

  • // Code Help need .. in Reading CSV file and display the Output.

    Hi All,
    I am a new Bee in code and started learning code, I have stared with Console application and need your advice and suggestion.
    I want to write a code which read the input from the CSV file and display the output in console application combination of first name and lastname append with the name of the collage in village
    The example of CSV file is 
    Firstname,LastName
    Happy,Coding
    Learn,C#
    I want to display the output as
    HappyCodingXYZCollage
    LearnC#XYXCollage
    The below is the code I have tried so far.
     // .Reading a CSV
                var reader = new StreamReader(File.OpenRead(@"D:\Users\RajaVill\Desktop\C#\input.csv"));
                List<string> listA = new List<string>();
                            while (!reader.EndOfStream)
                    var line = reader.ReadLine();
                    string[] values = line.Split(',');
                    listA.Add(values[0]);
                    listA.Add(values[1]);
                    listA.Add(values[2]);          
                    // listB.Add(values[1]);
                foreach (string str in listA)
                    //StreamWriter writer = new StreamWriter(File.OpenWrite(@"D:\\suman.txt"));
                    Console.WriteLine("the value is {0}", str);
                    Console.ReadLine();
    Kindly advice and let me know, How to read the column header of the CSV file. so I can apply my logic the display combination of firstname,lastname and name of the collage
    Best Regards,
    Raja Village Sync
    Beginer Coder

    Very simple example:
    var column1 = new List<string>();
    var column2 = new List<string>();
    using (var rd = new StreamReader("filename.csv"))
    while (!rd.EndOfStream)
    var splits = rd.ReadLine().Split(';');
    column1.Add(splits[0]);
    column2.Add(splits[1]);
    // print column1
    Console.WriteLine("Column 1:");
    foreach (var element in column1)
    Console.WriteLine(element);
    // print column2
    Console.WriteLine("Column 2:");
    foreach (var element in column2)
    Console.WriteLine(element);
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • SQL server 2014 in VS 2013 - Develop 3 different types of packages and maintain them efficiently

    Hello Everyone,
    I’ve been assigned a task to develop 3 different SSIS packages.
    Package 1 – There will be roughly 50 CSV files, I need to read them one by one and create a new database and a table per CSV file in SQL 2014.
    This will be a one-time job.
    Which is the best option in SSIS package to create database and tables in SQL 2014? I assume I need use “Execute Script Task” here, although please advise.
    Package 2 – This will run on daily basis. It will again read those 50 CSV files one by one and migrate their data to tables.
    Also, out of 50, couple of files (the exceptional file names have to be configured somewhere as client might add some more files for it out of 50) needs to be treated in different way.
    For them the tables have to be truncated first and then insert data into them.
    Which is the optimal and fastest way to move such data from these files to SQL tables? Can I run the parallel job in for each loop container?
    Where should I configure such “no ordinary” file names?
    Package 3 – This job will run once a six months. It will basically perform a purge for the data.
    This needs to be parameterized where client can set-up a cut-of-date for it and it will delete the data from all these 50 tables at SQL server.
    How to allow a client to insert the cut-of-date?
    What is the optimal option to read all tables of database (50 tables) and perform purge based on the cut-of-date?
    Common question:
    Where should I keep the path for the folder from where I need to pick the CSV files?
    How should I deploy and schedule package 2 and 3?
    Can anybody please advise what are the efficient/standard ways to maintain such packages?
    Any help on this would be greatly appreciated.
    Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com

    You can create a Table in your Database to store all folder path and/or other parameter values (i.e. Error
    File Path, Export/Archive file folder path, email address for notification, SSIS catalog deployed folder/project name etc). 
    For Project deployment: Deploying
    the Lesson 6 Package
    After deploying the project, use SQL Agent to schedule Scheduling SSIS packages
    with SQL Server Agent
    web: www.ronnierahman.com

  • Read CSV File and parse it

    Hi.
    I have a .csv file on my filesystem.
    Could you post few code to read it from filesystem and parse every rows in it?
    Thanks a lot.

    External tables are far easier to use... e.g.
    I have a file on my server in a folder c:\mydata called test.txt which is a comma seperated file...
    1,"Fred",200
    2,"Bob",300
    3,"Jim",50As sys user:
    CREATE OR REPLACE DIRECTORY TEST_DIR AS "c:\mydata";
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser;Note: creates a directory object, pointing to a directory on the server and must exist on the server (it doesn't create the physical directory).
    As myuser:
    SQL> CREATE TABLE ext_test
      2    (id      NUMBER,
      3     empname VARCHAR2(20),
      4     rate    NUMBER)
      5  ORGANIZATION EXTERNAL
      6    (TYPE ORACLE_LOADER
      7     DEFAULT DIRECTORY TEST_DIR
      8     ACCESS PARAMETERS
      9       (RECORDS DELIMITED BY NEWLINE
    10        FIELDS TERMINATED BY ","
    11        OPTIONALLY ENCLOSED BY '"'
    12        (id,
    13         empname,
    14         rate
    15        )
    16       )
    17     LOCATION ('test.txt')
    18    );
    Table created.
    SQL> select * from ext_test;
            ID EMPNAME                    RATE
             1 Fred                        200
             2 Bob                         300
             3 Jim                          50
    SQL>
    {code}
    http://www.morganslibrary.org/reference/externaltab.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Read csv file and insert the data to a list in sharePoint

    Hi everyone,
    i wrote a code that reads from a csv file all his data but i need also to insert all the data to a new list in sharePoint.
     how can i do this?
    plus, i need to read from the csv file once a day in specific hour. how can i do this? thank you so much!!

    Did you look at the example I posted above?
    ClientContext in CSOM will allow you to get a handle on the SharePoint objects;
    http://msdn.microsoft.com/en-us/library/office/ee539976(v=office.14).aspx
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • How to install a Business Contact Manager 2013 database on SQL Server 2014

    When I use the BCM Database Tool 2013 to create a database on a server, it doesn't pick up on any of my SQL Server 2014 instances. So far I can only get it to pick up SQL Server 2008 R2 instances in order to install the BCM database.
    Someone  mentioned that it works with SQL Server 2012, so is there any way to get it work on the 2014 version? I don't want to have to install 2008 or 2012 just for the sake of BCM.

    event if 3355 means 3 things:
    The SQL Server might be offline.
    The SharePoint Foundation database access account might not have the necessary permissions to communicate with the SQL Server.
    A firewall that runs on either the local server or on SQL Server might be blocking network communications.
    Big question, how you trying to connect SQL  windows or sql authentication? is it throwing error on Config wizard or somewhere else?
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Windows Server 2012 Essentials and Microsoft SQL Server 2014 Standard Core Edition

    Our company is planning to buy Windows Server 2012 R2 Essentials edition (Volume license) and install it on Citrix Xenserver based virtual machine with 4 virtual processor cores. Can we install Microsoft SQL Server 2014 Standard Core Edition (2 licenses
    for 2 cores) and run it on this virtual machine?

    you can install SQL Server Standard 2014/2012 on the Essentials Windows Server but without Server core Installation while installing SQL Server 2014 is supported on the Server Core mode of the following editions of Windows Server:
    Windows Server 2012 R2 Datacenter 64-bit
    Windows Server 2012 R2 Standard 64-bit
    Windows Server 2012 Datacenter 64-bit
    Windows Server 2012 Standard 64-bit
    Windows Server 2008 R2 SP1 Datacenter 64-bit
    Windows Server 2008 R2 SP1 Enterprise 64-bit
    Windows Server 2008 R2 SP1 Standard 64-bit
    Windows Server 2008 R2 SP1 Web 64-bit
    http://msdn.microsoft.com/en-us/library/ms143506.aspx
    thanks
    diramoh
     

  • Error when installing SQL Server 2014 Express

    I am running a Win 8.1 desktop 64bit (fully updated) with already installed SQL Server 2012 and Visual Studio 2010 and 2013 (non Express versions). I need to keep SQL Server 2012 for development purposes but also need SQL Server 2014 for a database
    provided to me by others which needs this version. I found out it should be possible to run the two versions side-by-side. During installation of SQL Server 2014 Express I selected all features except 'Local Db' and used a named instanc
    e. The setup runs through without any notice of problems but at the end fails with error code 1638 the reason being 'Error installing Microsoft Visual Studio 2010 Redistributables'. Also at the end a window pops up mention 'The working of SQL Server
    2014 stopped - Trying to find a solution'. Doing nothing on my part the window disappears and nothing else happens. So I uninstalled any 'Redistributable' and ran setup again. Same result though both 'Microsoft Visual C++ 2008 Redistributable
    - x86 9.0.30729.4974' and 'Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219' re-appear in Control Panel as being
    p
    roperly installed! All features are marked as 'failed' with one and the same error 1638. Even tried just upgrading to see if that would work but also here same error.  
    I have not been able to find the proper solution so I am now stuck. Hopefully someone can give me the right steps to take? Ruud van der Spoel

    Hello,
    Error 1638 means another version of the product is already installed. Probably you have a 32-bit version installed but
    the installation requires a 64-bit version of VC.
    Try to manually install both 32-bit and 64-bit versions of each VC.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Installing SQL Server 2014 Express package as ClickOnce prerequisite

    I'm using clickOnce and deploying an installer with it.
    I have tried various settings. Using SQL Server 2008 Express and SQL Server 2012 Express as prerequisite is all ok (I've dowloaded them and set the option of clickonce "download prerequisites from the same path of app").
    Now I'm trying to do the same thing with SQL Server 2014 Express.
    Since the SQL Server 2014 Express package isn't alredy done line 2008 and 2012 versiones, I'm trying to create it.
    I have done and it seems to work, but while installing it gives error number **-2054422506**. It is a very generic error and I don't understand it.
    It appears a pop up saying the installation is stopped because it is an error installing SQL Server Express 2014 and to look the log for more infos.
    The log only says:
        Installing using command     
        'C:\Users\VIRTUA~1\AppData\Local\Temp\VSD24F4.tmp\SqlExpress2014\
        SQLEXPR32_x86_ITA.EXE' and parameters '/q /action=Install /features=SQL
        /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is  
        /sqlsvcaccount="NT Authority\Network Service'
        Process exited with code -2054422506
        Status of package 'SQL Server 2014 Express' after install is 'InstallFailed'
    So, I've tried to install SQL Server 2014 Express manually, without ClickOnce, and it works. So I think I've made some mess in the xml file of the package.
    My package is so build (in C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\):
        \SqlExpress2014
             \it
                 SQLEXPR32_x86_ITA.exe
                 SQLEXPR_x64_ITA.exe
                 eula.rtf
                 package.xml
             product.xml
             SqlExpressChk.exe
    This is my package.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <Package
    xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
    Name="DisplayName"
    Culture="Culture"
    LicenseAgreement="eula.rtf">
    <PackageFiles CopyAllPackageFiles="false">
    <PackageFile Name="SQLEXPR32_x86_ITA.EXE"/>
    <PackageFile Name="SQLEXPR_x64_ITA.EXE" />
    <PackageFile Name="eula.rtf"/>
    </PackageFiles>
    <InstallChecks>
    <ExternalCheck Property="SQLExpressChk" PackageFile="SqlExpressChk.exe" Arguments="11.0.2100 1040"/>
    </InstallChecks>
    <Commands Reboot="Defer">
    <!-- Defines a new installation (x86)
    /skiprules=RebootRequiredCheck /enableranu=1 /AddCurrentUserAsSqlAdmin /hideconsole
    -->
    <Command PackageFile="SQLEXPR32_x86_ITA.EXE"
    Arguments='/q /action=Install /features=SQL /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is /sqlsvcaccount="NT Authority\Network Service"
    /IAcceptSqlServerLicenseTerms /SQLSVCPASSWORD="234692Is" /SQLSYSADMINACCOUNTS="NT Authority\Network Service" /AGTSVCACCOUNT="NT AUTHORITY\Network Service"'
    EstimatedInstalledBytes="225000000"
    EstimatedInstallSeconds="420">
    <InstallConditions>
    <FailIf Property="VersionNT" Compare="ValueNotExists" String="InvalidPlatformOS"/>
    <FailIf Property="VersionNT" Compare="VersionLessThan" Value="6.0.0" String="InvalidPlatformOS"/>
    <FailIf Property="VersionNT" Compare="VersionLessThan" Value="6.0.2" String="InvalidPlatformOSServicePack"/>
    <FailIf Property="VersionNT" Compare="VersionEqualTo" Value="6.1.0" String="InvalidPlatformOSServicePack"/>
    <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
    <FailIf Property="SQLExpressChk" Compare="ValueEqualTo" Value="-1" String="InvalidUpgradeNotExpress"/>
    <FailIf Property="SQLExpressChk" Compare="ValueEqualTo" Value="-2" String="InvalidUpgradeNotExpressCore"/>
    <FailIf Property="SQLExpressChk" Compare="ValueEqualTo" Value="-3" String="InvalidUpgradeLanguage"/>
    <FailIf Property="SQLExpressChk" Compare="ValueEqualTo" Value="-4" String="InvalidUpgradeWoW"/>
    <FailIf Property="SQLExpressChk" Compare="ValueLessThan" Value="-4" String="GeneralFailure"/>
    <BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel"/>
    <BypassIf Property="SQLExpressChk" Compare="ValueNotEqualTo" Value="1"/>
    </InstallConditions>
    <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
    <ExitCode Value="1641" Result="SuccessReboot"/>
    <ExitCode Value="3010" Result="SuccessReboot"/>
    <!-- 0x84BE0BC2 (1214,3010) -->
    <ExitCode Value="-2067919934" Result="FailReboot"/>
    <!-- 0x84C10BC2 (1217,3010) -->
    <ExitCode Value="-2067723326" Result="FailReboot"/>
    <!-- 0x84BE0007 (1214,7) -->
    <ExitCode Value="-2067922937" Result="Fail" String="AdminRequired"/>
    <!-- 0x84C4001F (1220,31) -->
    <ExitCode Value="-2067529697" Result="Fail" String="AdminRequired"/>
    <!-- 0x84BE0001 (1214,1)-->
    <ExitCode Value="-2067922943" Result="Fail" String="InvalidPlatformOSServicePack"/>
    <!-- 0x84C4000E (1220,14) -->
    <ExitCode Value="-2067529714" Result="Fail" String="InvalidPlatformOSLanguage"/>
    <!-- 0x84C4000B (1220,11) -->
    <ExitCode Value="-2067529717" Result="Fail" String="AnotherInstanceRunning"/>
    <!-- 0x84BE01F8 (1214,504) -->
    <ExitCode Value="-2067922440" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE01FA (1214,506) -->
    <ExitCode Value="-2067922438" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE0202 (1214,514) -->
    <ExitCode Value="-2067922430" Result="Fail" String="InvalidPlatformArchitecture"/>
    <!-- 0x84BE0203 (1214,515) -->
    <ExitCode Value="-2067922429" Result="Fail" String="InvalidPlatformArchitecture"/>
    <ExitCode Value="216" Result="Fail" String="InvalidPlatformArchitecture"/>
    <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
    </ExitCodes>
    </Command>
    <!-- Defines an upgrade installation (x86) -->
    <Command PackageFile="SQLEXPR32_x86_ITA.EXE"
    Arguments="/q /hideconsole /action=Upgrade /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is /IAcceptSqlServerLicenseTerms /skiprules=RebootRequiredCheck"
    EstimatedInstalledBytes="225000000"
    EstimatedInstallSeconds="420">
    <InstallConditions>
    <BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel"/>
    <BypassIf Property="SQLExpressChk" Compare="ValueNotEqualTo" Value="2"/>
    </InstallConditions>
    <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
    <ExitCode Value="1641" Result="SuccessReboot"/>
    <ExitCode Value="3010" Result="SuccessReboot"/>
    <!-- 0x84BE0BC2 (1214,3010) -->
    <ExitCode Value="-2067919934" Result="FailReboot"/>
    <!-- 0x84C10BC2 (1217,3010) -->
    <ExitCode Value="-2067723326" Result="FailReboot"/>
    <!-- 0x84BE0007 (1214,7) -->
    <ExitCode Value="-2067922937" Result="Fail" String="AdminRequired"/>
    <!-- 0x84C4001F (1220,31) -->
    <ExitCode Value="-2067529697" Result="Fail" String="AdminRequired"/>
    <!-- 0x84BE0001 (1214,1)-->
    <ExitCode Value="-2067922943" Result="Fail" String="InvalidPlatformOSServicePack"/>
    <!-- 0x84C4000E (1220,14) -->
    <ExitCode Value="-2067529714" Result="Fail" String="InvalidPlatformOSLanguage"/>
    <!-- 0x84C4000B (1220,11) -->
    <ExitCode Value="-2067529717" Result="Fail" String="AnotherInstanceRunning"/>
    <!-- 0x84BE01F8 (1214,504) -->
    <ExitCode Value="-2067922440" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE01FA (1214,506) -->
    <ExitCode Value="-2067922438" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE0202 (1214,514) -->
    <ExitCode Value="-2067922430" Result="Fail" String="InvalidPlatformArchitecture"/>
    <!-- 0x84BE0203 (1214,515) -->
    <ExitCode Value="-2067922429" Result="Fail" String="InvalidPlatformArchitecture"/>
    <ExitCode Value="216" Result="Fail" String="InvalidPlatformArchitecture"/>
    <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
    </ExitCodes>
    </Command>
    <!-- Defines a new installation (amd64) -->
    <Command PackageFile="SQLEXPR_x64_ITA.EXE"
    Arguments='/q /hideconsole /action=Install /features=SQL /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is /enableranu=1 /sqlsvcaccount="NT Authority\Network Service" /AddCurrentUserAsSqlAdmin /IAcceptSqlServerLicenseTerms /skiprules=RebootRequiredCheck'
    EstimatedInstalledBytes="225000000"
    EstimatedInstallSeconds="420">
    <InstallConditions>
    <BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="amd64"/>
    <BypassIf Property="SQLExpressChk" Compare="ValueNotEqualTo" Value="1"/>
    </InstallConditions>
    <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
    <ExitCode Value="1641" Result="SuccessReboot"/>
    <ExitCode Value="3010" Result="SuccessReboot"/>
    <!-- 0x84BE0BC2 (1214,3010) -->
    <ExitCode Value="-2067919934" Result="FailReboot"/>
    <!-- 0x84C10BC2 (1217,3010) -->
    <ExitCode Value="-2067723326" Result="FailReboot"/>
    <!-- 0x84BE0007 (1214,7) -->
    <ExitCode Value="-2067922937" Result="Fail" String="AdminRequired"/>
    <!-- 0x84C4001F (1220,31) -->
    <ExitCode Value="-2067529697" Result="Fail" String="AdminRequired"/>
    <!-- 0x84BE0001 (1214,1)-->
    <ExitCode Value="-2067922943" Result="Fail" String="InvalidPlatformOSServicePack"/>
    <!-- 0x84C4000E (1220,14) -->
    <ExitCode Value="-2067529714" Result="Fail" String="InvalidPlatformOSLanguage"/>
    <!-- 0x84C4000B (1220,11) -->
    <ExitCode Value="-2067529717" Result="Fail" String="AnotherInstanceRunning"/>
    <!-- 0x84BE01F8 (1214,504) -->
    <ExitCode Value="-2067922440" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE01FA (1214,506) -->
    <ExitCode Value="-2067922438" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE0202 (1214,514) -->
    <ExitCode Value="-2067922430" Result="Fail" String="InvalidPlatformArchitecture"/>
    <!-- 0x84BE0203 (1214,515) -->
    <ExitCode Value="-2067922429" Result="Fail" String="InvalidPlatformArchitecture"/>
    <ExitCode Value="216" Result="Fail" String="InvalidPlatformArchitecture"/>
    <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
    </ExitCodes>
    </Command>
    <!-- Defines an upgrade installation (amd64) -->
    <Command PackageFile="SQLEXPR_x64_ITA.EXE"
    Arguments="/q /hideconsole /action=Upgrade /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is /IAcceptSqlServerLicenseTerms /skiprules=RebootRequiredCheck"
    EstimatedInstalledBytes="225000000"
    EstimatedInstallSeconds="420">
    <InstallConditions>
    <BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="amd64"/>
    <BypassIf Property="SQLExpressChk" Compare="ValueNotEqualTo" Value="2"/>
    </InstallConditions>
    <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
    <ExitCode Value="1641" Result="SuccessReboot"/>
    <ExitCode Value="3010" Result="SuccessReboot"/>
    <!-- 0x84BE0BC2 (1214,3010) -->
    <ExitCode Value="-2067919934" Result="FailReboot"/>
    <!-- 0x84C10BC2 (1217,3010) -->
    <ExitCode Value="-2067723326" Result="FailReboot"/>
    <!-- 0x84BE0007 (1214,7) -->
    <ExitCode Value="-2067922937" Result="Fail" String="AdminRequired"/>
    <!-- 0x84C4001F (1220,31) -->
    <ExitCode Value="-2067529697" Result="Fail" String="AdminRequired"/>
    <!-- 0x84BE0001 (1214,1)-->
    <ExitCode Value="-2067922943" Result="Fail" String="InvalidPlatformOSServicePack"/>
    <!-- 0x84C4000E (1220,14) -->
    <ExitCode Value="-2067529714" Result="Fail" String="InvalidPlatformOSLanguage"/>
    <!-- 0x84C4000B (1220,11) -->
    <ExitCode Value="-2067529717" Result="Fail" String="AnotherInstanceRunning"/>
    <!-- 0x84BE01F8 (1214,504) -->
    <ExitCode Value="-2067922440" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE01FA (1214,506) -->
    <ExitCode Value="-2067922438" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE0202 (1214,514) -->
    <ExitCode Value="-2067922430" Result="Fail" String="InvalidPlatformArchitecture"/>
    <!-- 0x84BE0203 (1214,515) -->
    <ExitCode Value="-2067922429" Result="Fail" String="InvalidPlatformArchitecture"/>
    <ExitCode Value="216" Result="Fail" String="InvalidPlatformArchitecture"/>
    <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
    </ExitCodes>
    </Command>
    </Commands>
    <Strings>
    <String Name="DisplayName">SQL Server 2014 Express</String>
    <String Name="Culture">it</String>
    <String Name="SqlExpr32Exe">http://download.microsoft.com/download/1/6/E/16E343FB-7961-457C-A9C9-E6919F2B7188/Express%2032BIT/SQLEXPR_x86_ITA.exe</String>
    <String Name="SqlExpr64Exe">http://download.microsoft.com/download/1/6/E/16E343FB-7961-457C-A9C9-E6919F2B7188/Express%2064BIT/SQLEXPR_x64_ITA.exe</String>
    <String Name="AdminRequired">Non si dispone delle autorizzazioni necessarie per installare SQL Server 2014 Express. Rivolgersi all'amministratore.</String>
    <String Name="GeneralFailure">Errore durante il tentativo di installazione di SQL Server 2014 Express.</String>
    <String Name="InvalidPlatformOS">La versione del sistema operativo corrente non supporta SQL Server 2014 Express.</String>
    <String Name="InvalidPlatformOSServicePack">Il sistema operativo corrente non soddisfa i requisiti di livello di Service Pack per SQL Server 2014 Express. Installare il Service Pack più recente dall'Area download Microsoft all'indirizzo http://www.microsoft.com/downloads prima di continuare l'installazione.</String>
    <String Name="InvalidPlatformOSLanguage">La versione italiana di SQL Server 2014 Express può essere installata unicamente in un sistema operativo Windows nella stessa lingua.</String>
    <String Name="AnotherInstanceRunning">Un'altra istanza del programma di installazione è già in esecuzione. Per continuare, è necessario attendere il completamento di tale istanza.</String>
    <String Name="BetaComponentsFailure">È stata rilevata una versione beta di .NET Framework o SQL Server nel computer. Disinstallare le versioni beta precedenti dei componenti di SQL Server 2014, dei file di supporto di SQL Server o di .NET Framework prima di continuare.</String>
    <String Name="InvalidPlatformArchitecture">Questa versione di SQL Server 2014 Express non è supportata per l'architettura del processore corrente.</String>
    <String Name="InvalidUpgradeNotExpress">L'istanza di SQL Server denominata 'SQLEXPRESS' non è un'istanza di SQL Server Express. Impossibile eseguirne l'aggiornamento a SQL Server 2014 Express.</String>
    <String Name="InvalidUpgradeNotExpressCore">L'istanza di SQL Server Express denominata 'SQLEXPRESS' contiene componenti non inclusi in SQL Server 2014 Express. Impossibile eseguire l'aggiornamento di tale istanza in SQL Server 2014 Express. Utilizzare SQL Server 2014 Express with Advanced Services.</String>
    <String Name="InvalidUpgradeLanguage">L'istanza di SQL Server Express denominata 'SQLEXPRESS' è una versione in una lingua diversa rispetto a SQL Server 2014 Express. Impossibile eseguire l'aggiornamento di tale istanza.</String>
    <String Name="InvalidUpgradeWoW">Impossibile eseguire l'aggiornamento dell'istanza esistente di SQL Server Express (x64 WoW) denominata 'SQLEXPRESS' mediante SQL Server 2014 Express (x64). Disinstallare l'istanza esistente di SQL Server Express e riprovare a installare SQL Server 2014 Express (x64).</String>
    </Strings>
    </Package>
    And this is the product.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- SQL Express 2014 VS Bootstrapper : product.xml : Language neutral information -->
    <Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="Microsoft.SqlServer.Express.12.0">
    <RelatedProducts>
    <EitherProducts>
    <DependsOnProduct Code=".NETFramework,Version=v4.5" />
    <DependsOnProduct Code=".NETFramework,Version=v4.0" />
    </EitherProducts>
    <!-- Also depends on MSI4.5 or greater, which is included on all of the OS levels supported (see package.xml) -->
    <IncludesProduct Code="Microsoft.Sql.Server.Express.1.0" />
    <IncludesProduct Code="Microsoft.Sql.Server.Express.9.2" />
    <IncludesProduct Code="Microsoft.Sql.Server.Express.10.0" />
    <IncludesProduct Code="Microsoft.SqlServer.Express.10.5" />
    <IncludesProduct Code="Microsoft.SqlServer.Express.11.0" />
    </RelatedProducts>
    <PackageFiles>
    <PackageFile Name="SqlExpressChk.exe" />
    </PackageFiles>
    </Product>
    I've copied the SqlExpressChk.exe file from the SQL Server 2012 Express package, hoping it is the same (2008 and 2012 versions seems the same, so I supposed it also for the 2014).
    I've delete the part in package.xml about the publicKey, since I don't know it and, further, I think I don't need it.
    In the same file, I've inserted custom parameters, first like in the 2008 and 2012 versions, then doing some attempts (without success).
    Did anyone have this problem? How did you have manage it?
    **NOTE**: I'm using my clickOnce deploy in an empty virtual machine, so there aren't any conflicts o something similar.
    More attempts, more failures, always the same error! I'm deleting the optional stuff to study better the core of the xml, but still no success.. does microsoft have a package of sql server 2014 express?

    refer to this link
    http://bootstrapper-manifest-generator-for-vs20.software.informer.com/2.0/
    remember make the reply as answer and vote the reply as helpful if it helps.
    thanks! =)
    SqlServer usually runs a file (SqlExpressChk.exe) to see if there is already an installation and a sql instance called sqlExpress (for the express installations). Do you know how can do this test with the bootstrapper manifest generator?
    I am not able to test it currently, but I assume that will also check whether that has installed.
    You have tested it, right?
    remember make the reply as answer and vote the reply as helpful if it helps.

  • Difference between SQL SERVER 2008 & SQL SERVER 2012 & SQL SERVER 2014

    Difference between SQL SERVER 2008 & SQL SERVER 2012 & SQL SERVER 2014 ?

    What sort of databases do you have OLTP? Data warehouse? What requirements do you have for High Availability?
    The main features for SQL 2012/2014, as I see it:
    o  Support for window functions, which makes it possible to write fast queries for running totals, sliding windows etc.
    o  Columnstore indexes, which can speed up your data warehouse enormously. But of no interest for OLTP. Only writable in SQL 2014.
    o  AlwaysOn and Availability Groups, a vastly improve story for high availability and disaster recovery.
    o  try_convert/try_cast, you can now easily filter out values from a column which does not convert to a number. A small but essential feature.
    o  In memory-OLTP, a new in-memory engine in SQL 2014. This far with very limited feature set, and quite specialised.
    Of the points above, the second and third require Enterprise Edition, the first and fourth are in all editions. For the last, I don't think Microsoft has announced anything yet.
    There are also new stuff in the BI area, but that's out of my league.
    And, oh, there is a new licensing model - which I think is holding more than one customer back.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • TSQL working in 2008 but not in SQL Server 2014

    Hello,
    We recently have been asked to move from SQL Server 2008 to SQL Server 2014. We are trying to run parallel tests and one of our queries that was working perfectly in 2008 is not working in 2014.
    One of the filter on the our query(from 2008) is we convert a varchar field to date and compare it to anotehr calulated filed ("convert(date,Quick_Data_Start_Date) <= convert(date,(Year_ID_to_Use + '-' + Month_ID_to_Use + '-01'))").
    This worked fine in 2008 but when i try to do similar operation in 2014 it returns no result.
    For testing purposes, instead of converting the field to date format, i manully converted the actual value i.e. instead of using "convert(date,Quick_Data_Start_Date)" when i use "convert(date,'8/1/2014')" the code works fine.
    The field "Quick_Data_Start_Date" comes from a pivot query.
    When i create a temporary table for the pivot query and use the temporary table in  my code and then convert the field on fly the code works fine again.
    Seems like the T sql is not able to convert the field from varchar to date on the fly when coming from a different query. We have tried changing the compatbility level to 100 as well and it still would not work.
    Any suggestions and comments will be really helpful. Thanks.
    Regards,
    GM

    Hello, here is my overall review:
    The query is not optimized … agreed!  But that’s not the issue.
    There are a number of indexes that could be created, a number of minor calculations or evaluation criteria that could be improved to make the query more efficient … again – AGREED.
    The query “as is” runs in just under a minute (on SQL 2008 machine with less memory and slower hard drives).  Adding the indexes would take more time to add than they would save.
    NONE of that should make the query NOT WORK.  These deficiencies might make it run more slowly, but should not cause the query to return no results.
    “order by” shouldn’t make any difference because the query plan isn’t assuming or using any special order
    The main table (~10 M rows) is using a clustered index scan (not efficient, but not the point)
    The Time dimension table is using a non-clustered index seek (so the index is sorted but the data in the table is NOT physically sorted that way)
    The pivot subquery is using clustered index scan (it’s only 6 rows, so who cares)
    Once again, the order by might make it less efficient, but shouldn’t make it fail.  We get no errors or warnings – it just returns no rows.
    Because the query DOES return results when we 
    Either dump the Pivot query result into a #temp table(single row) and use the #temp table instead of the pivot query in the big SQL or  
    The “input” tables are limited to X rows but DOES NOT when the inputs have more rows
            This strongly suggests a memory issue.
    The server has 64 GB of RAM, but this probably isn’t enough to hold millions of rows and calculations.
    Can we turn on some traces to see what’s happening to the data in the query?  How and what are we looking for?
    Once the memory capacity is exceeded, SQL should be pushing these results to a temporary table (either in the local database or the tempdb).  Can we test to see if that is happening? 
    How?
    Is there a permissions issue?
    I have successfully done large copies outside of SQL (copied 300+ GB file from one location to another) that had to use the disk instead of just memory … means the disk write operation
    isn’t restricted from my user account.
    I can also confirm that the account that runs the SQL Service (“Network Service” account) has full permissions to the drives and paths where the mdf and ldf files are stored (including
    master and temp).
    If this doesn’t work, our upgrade is basically frozen and cannot proceed.  I’m really out of ideas … anything?

  • Uninstallation SQL server 2014

    I installed sql server 2014, but after six months this version has expired and logically it should be a registred and not a trial version. 
    I decided to uninstall and reinstall, but some services could not be installed as the engine of the database, the analysis services, reporting services etc. 
    I tried to install sql server 2012 and I had the same problems. 
    thank you for your understanding.

    Hi Dfi-Elec,
    Agree with Shanky.
    Please make sure that the existing SQL Server instance is removed completely on the machine before reinstalling SQL Server. You can perform the following steps to manually uninstall SQL Server 2014.
    1. Uninstall all  SQL Server 2014 components from the control panel.
    2. Backup the registry.
    3. Delete the following keys in regedit:
        --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
        --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
    4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server.
    5. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server.
    6. Rename all the SQL Server folders in the computer.
    7. Reboot the machine.
    8. Reinstall SQL Server.
    Thanks,
    Lydia Zhang

  • SQL Server 2014 CAL

    Hi Guys,
    I'm planning to setup RDS and  SQL  server(2014 standard)
    our application will runs on RDS box and database's will be on SQL box
    As users will access the application on RDS remotely hence we are planning to apply RDS and windows CALS on RDS server
    For SQL box we are planning SQL server license + cals
    As sql functionality will only be accessed by RDS box through application hence i'm thinking that single device CAL for sql box will be sufficient
    Could you please confirm if i'm correct or i'll needs to purchase any other license
    Many Thanks,
    Sandeep

    >Only RDS machine will be accessing SQL box so wouldn't single device CAL will be sufficient ?
    No.
    Licensing SQL Server in a Multiplexed Application Environment
    "Multiplexing” refers to the use of hardware or software to pool connections, reroute information, or reduce the number of devices or users that directly access or use SQL Server. Multiplexing can also include reducing the number of devices or users
    SQL Server directly manages.
    When licensing SQL Server software under the Server+CAL licensing model, users and devices that indirectly access SQL Server data through another application or hardware device still require SQL Server CALs. 
    Multiplexing does not reduce the number of Microsoft licenses required. Users are required to have the appropriate licenses, regardless of their direct or indirect connection to SQL Server.
    Microsoft SQL Server 2014 Licensing Guide
    You need one CAL per end user or end-user device connecting to the RDS server.  Whether the users run the client on their desktop on an RDS server does not affect the number of CALs required.  Similarly whether you deploy a client/server application,
    an N-Tier application or a Web Application does not affect the number of CALs required.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Create MS SQL Server 2014 instance for TSQL2012 sample database Training kit (70-461)

    Hi,
    I just bought the Training kit (70-461) Querying Microsoft SQL server 2012. I downloaded Microsoft SQL Server 2014. I have also downloaded the script for the sample database -
    TSQL2012.sql.
    Basically I want to set up the sample database and practice my SQL queries. How do I log into
    Microsoft SQL Server 2014? Basically I am doing this on my home computer. It is asking me for Server type, Server name, and Authentication. Do I have to set up a server instance to run and create the sample database? How?
    Thanks.
    Peter

    Do you see anything in the Server Name at all?
    So, in the first drop down you need to select Database Engine.
    In the second (for Server Name) if you see anything, then try selecting it.
    If there is nothing, try methods described in this article
    http://sqlserver-help.com/2011/06/19/help-whats-my-sql-server-name/
    to find the actual name.
    Then, try choosing Windows Authentication and try connecting. If this would not work, then you do need to try using sa and sa's password. If there is no way to find that sa password, then perhaps it's better to clearly uninstall and re-install. If you want,
    I'll move your thread into either 'Getting Started' or Data Access forum as it doesn't seem to be related with Transact SQL.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

Maybe you are looking for