Problem with updating MDF Data file as opposed to updating a running SQL Server DB



I posted this before, with no response, but now I have boiled the
problem down to it's core...

( see
http://groups.google.com/group/microsoft.public.dotnet.framework.adonet/browse_thread/thread/9b332249ef25387d/c2727e5ee9d641c3?hl=en#c2727e5ee9d641c3
for the original post )



It would seem that I could query a MDF file just fine and select data
from it, but updates and inserts to the MDF file would just plain not
work. When I say query an MDF file, I mean that my connection string
pointed to a data file, rather than an activly running SQL Server
database. Attaching the MDF file, and changing the connection string to
point to the SQL Server instance rather than an MDF data file made the
existing code work as expected. This is going to be a big pain because
we do not want to require for people to be running SQL Server on their
machines.

Any Ideas on this odd issue??

Andrew Baldwin

.



Relevant Pages

  • Re: SQL Database Has Overstayed its Welcome
    ... You can change the default data file location by using SSMS easily. ... However, if you attach *.mdf file to SQL Server, the data file stays where it was after attaching. ... I am not sure what you did, but if the *.mdf file cannot be deleted/copied, then the data file must belong to an existing database and still in use. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: "Hidden" Replication Stored Procedures?
    ... Since the engine has hooks that hide the mssqlsystemresource database from ... 4.)Start the SQL Server service; ... Chris Jones ... aforementioned MDF file in Notepad and doing a quick search, ...
    (microsoft.public.sqlserver.replication)
  • Re: Error 823
    ... Regards. ... Microsoft SQL Server Storage Engine ... > I cannot extract much data out of the database and I can't view the most ... The problem is in the .MDF file, ...
    (microsoft.public.sqlserver.tools)
  • Re: MDF file vs. Local Sql Server...whats the connection?
    ... SQL Server or SQL Server Express. ... The *.mdf file is just database's file ... Once the database is created, ... work at least you will have some understanding of what they are doing. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SQL Database
    ... can't simply import from an MDF file that is not attached to an instance of ... to an instance of SQL Server, and sufficient permissions to allow you to ... me to use a real e-mail address in public newsgroups. ... GlobalSign digital certificate is a forgery and should be deleted without ...
    (microsoft.public.access.externaldata)