<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx</link><description>Visual Studio 2005 made some big improvements in the way applications work with data, from BindingSources to the Data Sources Window all the way to a free version of SQL-Server called SQL-Server Express . I've had a few customers get stuck on using SQL-Server</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#3074661</link><pubDate>Mon, 04 Jun 2007 10:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3074661</guid><dc:creator>Ged Mead</dc:creator><description>&lt;p&gt;Have really enjoyed viewing &amp;nbsp;(and trying out) the techniques in your videos so far, Beth. &amp;nbsp; Keep them coming!&lt;/p&gt;
&lt;p&gt;In addition to covering the local data file isse in an upcoming video, may I suggest you also include the Many-To-Many DataBinding in a video also? &amp;nbsp;(Just to reinforce the instructions given in your earlier blog item).&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#3383710</link><pubDate>Mon, 18 Jun 2007 15:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3383710</guid><dc:creator>Luc ROLLAND</dc:creator><description>&lt;p&gt;I'm very insterested by your videos !&lt;/p&gt;
&lt;p&gt;I redo your course but when I tried to create the stored procedures, I don't have the templates (Delet, Insert, Update) in the toolbox of my Visual Studio 2005 Professional. I've to create them manually.&lt;/p&gt;
&lt;p&gt;What I have to do, to obtain that templates in the toolbox ?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#3390886</link><pubDate>Tue, 19 Jun 2007 00:27:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3390886</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Luc,&lt;/p&gt;
&lt;p&gt;Stored procedures are not created automatically for you. I wrote the stored procedures for the video and put them as snippets in the toolbox. You can create code snippets by selecting text in the code editor and then dragging that onto the toolbox. Then you can use that snippet of code again by dragging from the toolbox into the editor.&lt;/p&gt;
&lt;p&gt;You do not need to create stored procs for your update, insert or delete to work on a table though. The TableAdapter wizard will generate those statements instead if you don't use stored procs.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>Deploying Interop UserControls with RegFree-COM</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#3592531</link><pubDate>Fri, 29 Jun 2007 00:49:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3592531</guid><dc:creator>Beth Massi - Sharing the goodness that is VB</dc:creator><description>&lt;p&gt;One of the features of the latest Interop Forms Toolkit is the ability to develop UserControls in addition&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#4067832</link><pubDate>Thu, 26 Jul 2007 19:27:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4067832</guid><dc:creator>Maclain Wiltzer</dc:creator><description>&lt;p&gt;Thank you very much for clearly explaining everything. I am new to programming and tried everything to learn how to use SQL, but this finally helped me solve my problem!&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#5815335</link><pubDate>Thu, 01 Nov 2007 18:02:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5815335</guid><dc:creator>George Gomez</dc:creator><description>&lt;p&gt;Please let Me Know How To Save a form in Visual basic 2005 When you have a computed columns&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8398883</link><pubDate>Wed, 16 Apr 2008 13:59:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8398883</guid><dc:creator>Raj L</dc:creator><description>&lt;p&gt;Thank you very much Beth, your tutorials have helped me a great deal :)&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8490897</link><pubDate>Mon, 12 May 2008 05:04:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8490897</guid><dc:creator>Muhariz Jabeer</dc:creator><description>&lt;p&gt;Thank you so much, i've been spending countless hours to see how i can get my winforms app to pick up the mdf file from the application running directory instead of hardcoding the project directory to the connection string. the trick was to use the macro that you suggested \|DataDirectory|\&lt;/p&gt;
&lt;p&gt;Again that you :)&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8593220</link><pubDate>Thu, 12 Jun 2008 17:45:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8593220</guid><dc:creator>Ravi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am in the process of a small database prog using MSAccess. I am using related data tables to add, edit, del, update. While my parent datatable gets updated and saved i am unable to update or save the child table. i am getting an error &amp;quot;Update requires a valid UpdateCommand when passed DataRow collection with modified rows.&amp;quot;.&lt;/p&gt;
&lt;p&gt;Please let me know &amp;quot;how to enable Refresh Data Table in Advanced Options of Table Adapter Configuration Wizard in Visual Studio Express 2008&amp;quot;&lt;/p&gt;
&lt;p&gt;Awaiting your response asap&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Ravi&lt;/p&gt;
&lt;p&gt;ravi323in@hotmail.com&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8602934</link><pubDate>Mon, 16 Jun 2008 07:02:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8602934</guid><dc:creator>ravi39</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am in the process of a small database prog using MSAccess. I am using related data tables to add, edit, del, update. While my parent datatable gets updated and saved i am unable to update or save the child table. i am getting an error &amp;quot;Update requires a valid UpdateCommand when passed DataRow collection with modified rows.&amp;quot;.&lt;/p&gt;
&lt;p&gt;Please let me know &amp;quot;how to enable Refresh Data Table in Advanced Options of Table Adapter Configuration Wizard in Visual Studio Express 2008&amp;quot;&lt;/p&gt;
&lt;p&gt;Awaiting your response asap (Posted earlier on 12/06/2008)&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Ravi&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8784870</link><pubDate>Mon, 28 Jul 2008 20:00:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8784870</guid><dc:creator>Torp904</dc:creator><description>&lt;p&gt;Beth,&lt;/p&gt;
&lt;p&gt;When you detach the mdf and then add the file into the project itself, does that mean I can transport the project to another machine that doesn't have SQL Server running and work from there?&lt;/p&gt;
&lt;p&gt;Also, when I compile and distribute, does that mean I don't have to make sure users have SQL Express installed?&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8785511</link><pubDate>Mon, 28 Jul 2008 23:14:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8785511</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Scott,&lt;/p&gt;
&lt;p&gt;You still need to have SQL-Server Express installed to work with a local data file so you'll need to select the SQL Express redist in your deployment project. &lt;/p&gt;
&lt;p&gt;A local data file is a detached MDF that can auto-attach and auto-detach itself to the service when you connect to it with a local user connection. It's a feature of SQL Server (and Express) 2005. &lt;/p&gt;
&lt;p&gt;If you only need single-user access to a simple data store you may want to use SQL Server Compact Edition instead. This is just a simple file-based, single user data store so only a few assemblies need to be distributed and there is no separate install other than your app. &lt;/p&gt;
&lt;p&gt;However if you want to go multi-user, you'll need to move to SQL Express.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8847130</link><pubDate>Sun, 10 Aug 2008 23:54:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8847130</guid><dc:creator>Bayan</dc:creator><description>&lt;p&gt;Hello Beth,&lt;/p&gt;
&lt;p&gt;Thx for the article. I tried to play with properties of my local database and still not having the data saved I have made an output parameter of the id of the data I'm entering to the database and outputting it on the console and still have when I run the program the id is 1 for the first time I enter values and the second time the id is 2 and no data is saved when I look in the database and if I close the application and rerun it i get the same for the 1st time the id is 1 and 2nd time is 2 and so on that's as if nothing was saved.&lt;/p&gt;
&lt;p&gt;Thanks for your time.&lt;/p&gt;
&lt;p&gt;Bayan&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8849471</link><pubDate>Tue, 12 Aug 2008 02:32:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8849471</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Bayan,&lt;/p&gt;
&lt;p&gt;Those ID's are only for the client-side dataset, the identity keys are generated by the database when you save them and may or may not be the same keys. Check the database table's contents by opening it directly in visual studio and see if the rows are there. You also should watch these videos on understanding data:&lt;/p&gt;
&lt;p&gt;VS 2005 version: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/vbasic/bb725824.aspx"&gt;http://msdn.microsoft.com/en-us/vbasic/bb725824.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;VS 2008 verison: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/vbasic/cc138241.aspx"&gt;http://msdn.microsoft.com/en-us/vbasic/cc138241.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8960950</link><pubDate>Mon, 22 Sep 2008 10:54:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8960950</guid><dc:creator>Karthik</dc:creator><description>&lt;p&gt;sql1.Open();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlCommand ins_user = new SqlCommand();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.Connection = sql1;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string ins_query = &amp;quot;INSERT INTO User_Infoo(First_Name,Last_Name,Pass,UID,Email,Desg_ID,User_ID) Values(@Fn,@Ln,@p,@ID,@email,@DID,@user)&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlParameter p1 = new SqlParameter(&amp;quot;@Fn&amp;quot;, SqlDbType.NVarChar, 50);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlParameter p2 = new SqlParameter(&amp;quot;@Ln&amp;quot;, SqlDbType.NChar, 10);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlParameter p3 = new SqlParameter(&amp;quot;@p&amp;quot;, SqlDbType.Text);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlParameter p4 = new SqlParameter(&amp;quot;@DID&amp;quot;, SqlDbType.Int);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlParameter p5 = new SqlParameter(&amp;quot;@user&amp;quot;, SqlDbType.NChar,10);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//SqlParameter p6 = new SqlParameter(&amp;quot;@Fn&amp;quot;, SqlDbType.NChar, 50);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlParameter p6 = new SqlParameter(&amp;quot;@email&amp;quot;, SqlDbType.Text);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlParameter p7 = new SqlParameter(&amp;quot;@ID&amp;quot;, SqlDbType.Int);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.Parameters.Add(p1);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.Parameters.Add(p2);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.Parameters.Add(p3);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.Parameters.Add(p4);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.Parameters.Add(p5);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.Parameters.Add(p6);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.Parameters.Add(p7);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;p1.Value = &amp;quot;Karthik&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;p2.Value = &amp;quot;Uthaman&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;p3.Value = &amp;quot;adfask&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;p4.Value = 1;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;p5.Value = &amp;quot;karthik_u&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;p6.Value = &amp;quot;asdasd&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;p7.Value = 1;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.CommandText = ins_query;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ins_user.CommandType = System.Data.CommandType.Text;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MessageBox.Show(ins_user.ExecuteNonQuery().ToString());&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sql1.Close();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return true;&lt;/p&gt;
&lt;p&gt;i set the Build Action = Content and Copy to Output directory = Copy if newer !! &lt;/p&gt;
&lt;p&gt;Now i am able to insert and retreive data.. but the problem is that the inserted data is not visible when i click on the &amp;quot;Show Table Data&amp;quot; . &lt;/p&gt;
&lt;p&gt;and also the stored data is available just for few compilations.. if i build the app for 3 pr more times , the data tht has entered before are lost... please help me out pppll ....&lt;/p&gt;
&lt;p&gt; I don understand what kinda problem is thiss... somebodyyy plsss help me soon!! &lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#8961295</link><pubDate>Mon, 22 Sep 2008 18:35:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8961295</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Karthik,&lt;/p&gt;
&lt;p&gt;The article explains the problem in the second to last paragraph:&lt;/p&gt;
&lt;p&gt;&amp;quot;One copy is in your project folder, this is the file you work with when making schema changes with the VS tools. The VS tools always use this connection. However, you'll notice that the connection in the My.Settings uses a macro called |DataDirectory| to open the connection when your app is running (AttachDBFileName=|DataDirectory|\OMS.mdf). The |DataDirectory| expands to the location the EXE is running during runtime.&amp;quot;&lt;/p&gt;
&lt;p&gt;If you don't want to work with two copies then I'd suggest working with an attached SQL server instance, it's a lot easier to manage at development time. You can always change the connection string in the app.config after deployment.&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#9435533</link><pubDate>Fri, 20 Feb 2009 09:18:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9435533</guid><dc:creator>Vivienne</dc:creator><description>&lt;p&gt;Hey B!&lt;/p&gt;
&lt;p&gt;I am new at visual basic 2005 and ur videos have been such a great help! &lt;/p&gt;
&lt;p&gt;I have the same problem as Karthik while working with a local database file. By working with an attached SQL server instance, you mean creating a new server?&lt;/p&gt;</description></item><item><title>re: Working with a Local Data File in VS</title><link>http://blogs.msdn.com/bethmassi/archive/2007/05/29/working-with-a-local-data-file-in-vs.aspx#9488567</link><pubDate>Thu, 19 Mar 2009 03:38:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9488567</guid><dc:creator>Johan_Alberts</dc:creator><description>&lt;p&gt;Thanks for your effort. &amp;nbsp;I have tried it with .mdf, .mdb etc. &amp;nbsp;same result. &amp;nbsp;I make the slightest change and all the data is lost. &amp;nbsp;I also cannot find the database under Program Files... am concerned as to how am I supposed to back it up. &amp;nbsp;VB also doesn't allow me to point directly at the database under settings. &amp;nbsp;Kindly assist!&lt;/p&gt;</description></item></channel></rss>