• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.


No announcement yet.

Partner 728x90


Unable to connect to the database "Data Source="C:/.."

  • Filter
  • Time
  • Show
Clear All
new posts

    Unable to connect to the database "Data Source="C:/.."

    I keep getting this error message whenever I attempt to start NT7.

    After the message saying that it cannot connect to the database, it prompts me to a similar error saying something about Db.Globals.Engine1:

    I have tried reinstalling, running windows repair and neither have made any difference.

    Thank you!


    Hello Phil,

    NinjaTrader requires various Microsoft components to run, one of which is SQL compact Edition. Currently you may not have SQL Compact Edition or possibly have the incorrect version of SQL Compact Edition installed.

    Please follow the below steps to ensure the correct version of SQL Compact Edition is installed on your PC.

    * Navigate to the Windows Control Panel
    * Add and remove software/programs
    * Uninstall any SQL Compact Editions you see, if none are present you may ignore this step and continue onto the next step
    * Install latest SQL Compact Edition 3.5. SP2 which is available here: Download Here
    * Once you run the downloaded file it will ask you for a directory to extract the installer to. Point this to a temporary directory that you will be able to quickly locate later, such as the desktop
    * Navigate to the aforementioned directory in which the files have been extracted to (there will be two files)
    * SSCERuntime_x86-ENU.msi - Run this one first
    * SSCERuntime_x64-ENU.msi - No need to run this if you are on a 32 bit system, if you are on a 64 bit system you will also need to run this file, if you are not sure if you have a 64 bit system go ahead and run this file. If you are not using a 64 Bit operating system, the installer will cancel itself automatically
    * Follow the installation steps outlined in the installation wizard
    * Once installed you will need to restart your PC
    *You will now be able to launch NinjaTrader 7
    JCNinjaTrader Customer Service


      JC, thank you for your post and instructions on how to solve the problem.

      Unfortunately, following the instructions and updating my SQL compact did not stop the issue.

      Would screen shots help?



        Hello CaptainFill,

        Yes, could you please attach a screenshot of the full error message?
        JCNinjaTrader Customer Service



          The top is the first error message and the 2nd is what happens when I click 'OK.'


            Hello CaptainFill,

            Thanks for the screenshot.

            This means that your database file is corrupt. You will have to rename your database file in order to be able to create a new fresh database to be able to get NinjaTrader up and running.

            To rename your database with the following steps :

            * Shutdown NinjaTrader and Go to the Start Menu
            * Select My Documents--> NinjaTrader 7--> DB--> NinjaTrader.SDF.
            * Right click on NinjaTrader.SDF and select "Rename." *Name it "OLDNinjaTrader.SDF."
            * Then restart the software and NinjaTrader will create a fresh database file to use
            * Unfortunately the following items stored in the old database will be lost – ATM Strategy templates, Session templates, Instrument Lists / Custom Instruments and historical trade execution data.

            To prevent running into situations where you can potentially lose important data, we advise to run regular backups via our inbuild backup feature in NinjaTrader - http://www.ninjatrader.com/support/h...up_archive.htm
            JCNinjaTrader Customer Service


              gettiing "unable to coonnect to database" error message

              Always when I try to start my ninja 7 pop up this error message:
              Click image for larger version

Name:	error message ninja start 1.jpg
Views:	1
Size:	723.5 KB
ID:	886105
              I installed both of two SQL files ( x86 v.3.5 and x64 v.3.5 ) under to win10 and restart my pc but no success: the same error message popped up.

              Can anyone help?

              thank you


                Hello nyilas,

                Thank you for your patience.

                If you are running into this message please reach out to us at platformsupport[at]ninjatrader[dot]com.
                Patrick H.NinjaTrader Customer Service


                Latest Posts


                Topics Statistics Last Post
                Started by Simon Thompson, Today, 10:24 PM
                0 responses
                Last Post Simon Thompson  
                Started by RuthB, Today, 09:41 PM
                0 responses
                Last Post RuthB
                by RuthB
                Started by dtl-saw, Today, 08:50 PM
                0 responses
                Last Post dtl-saw
                by dtl-saw
                Started by waterman, Today, 07:02 PM
                0 responses
                Last Post waterman  
                Started by authenticx, Today, 03:51 PM
                0 responses
                Last Post authenticx