Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Problem adding new element to the project of type 2008 .mdf database

Problem adding new element to the project of type 2008 .mdf database

Scheduled Pinned Locked Moved Windows Forms
databasehelpcsharpsql-servervisual-studio
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FJJCENTU
    wrote on last edited by
    #1

    Hello, I am working with Visual Studio 2010 and a Windows Form application, because I want to include a SQL Databse .mdf file as resource for that application in order to keep the data inside the application, I Try to include a new element and I choose a database linked to Service (*.mdf datafile) but I allways receive an error message in which it says that for that action is needed to install first SQL Server 2005 Express or SQL Server 2008 Express and it give an Internet address for downloading. The situation is that SQL Server 2008 Express is just installed, and I can create the same named database from SQL Server Management Studio o Visual Studio Server Explorer without any problem, so why it's not posible to aggregate as new element in the Solution Explorer. Best Regards

    D 1 Reply Last reply
    0
    • F FJJCENTU

      Hello, I am working with Visual Studio 2010 and a Windows Form application, because I want to include a SQL Databse .mdf file as resource for that application in order to keep the data inside the application, I Try to include a new element and I choose a database linked to Service (*.mdf datafile) but I allways receive an error message in which it says that for that action is needed to install first SQL Server 2005 Express or SQL Server 2008 Express and it give an Internet address for downloading. The situation is that SQL Server 2008 Express is just installed, and I can create the same named database from SQL Server Management Studio o Visual Studio Server Explorer without any problem, so why it's not posible to aggregate as new element in the Solution Explorer. Best Regards

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It's not clear what your problem is because you say a couple things that are contradictory. I'll just say that you cannot use a database that is stored in your app's resources. It must be a seperate file in the file system in order for SQL Server to use it.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups