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. C#
  4. User Instance Headache : SQL Server 2005 Express

User Instance Headache : SQL Server 2005 Express

Scheduled Pinned Locked Moved C#
databasesql-serversysadminquestionannouncement
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.
  • E Offline
    E Offline
    emran834
    wrote on last edited by
    #1

    Hi, After I finished my Win Application (with SQL Server 2005), I wanted to ship my application with the .mdf database file. But the version of the software I am using in my PC, I have my personal data in the .mdf. I want to ship the empty .mdf file but At the same time I dont want to delete those data in my version of the .mdf which is installed in my PC. I am really having difficulties with that. Because, All instanced of the .mdf file is being synchornized everytime. So Do I need to take a copy of this .mdf file to another computer and delete all data and then make the installer to ship ? Inst there any other easy way to do that ? Thanks Emran

    C 1 Reply Last reply
    0
    • E emran834

      Hi, After I finished my Win Application (with SQL Server 2005), I wanted to ship my application with the .mdf database file. But the version of the software I am using in my PC, I have my personal data in the .mdf. I want to ship the empty .mdf file but At the same time I dont want to delete those data in my version of the .mdf which is installed in my PC. I am really having difficulties with that. Because, All instanced of the .mdf file is being synchornized everytime. So Do I need to take a copy of this .mdf file to another computer and delete all data and then make the installer to ship ? Inst there any other easy way to do that ? Thanks Emran

      C Offline
      C Offline
      Chemisus
      wrote on last edited by
      #2

      i only have sql server 2000, so i dont know if this reply will completely answer your question. try creating a new database then importing the data into it. if that doesnt work, then try copying your .mdf and .mdl to a different name, then attaching them in sql server as a different database name. if neither of those work, then i would wait for someone else who might have a better idea or (perhaps quicker) would be what you suggested.

      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