Switching from access to sql server express in vb2005<p>Right now im using an access database wich i connect to with oledb in VB2005. Now if in my whole program i want to change the database to sql server, is enough to just use sql instead og oledb (for example sqlcommand instead of oledbcommand, and slqconnetion instead of oledbconnection)?</p> <p>Or is there something else you need to be carefull with?</p> <p>To my understand, the sql language is almost the same so that shouldnt be a problem..</p>© 2009 Microsoft Corporation. All rights reserved.Wed, 10 Dec 2008 23:37:58 Zda763409-3e31-45c4-8f39-c5a4995cd5echttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#da763409-3e31-45c4-8f39-c5a4995cd5echttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#da763409-3e31-45c4-8f39-c5a4995cd5ecDan Mikkelsenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dan%20MikkelsenSwitching from access to sql server express in vb2005<p>Right now im using an access database wich i connect to with oledb in VB2005. Now if in my whole program i want to change the database to sql server, is enough to just use sql instead og oledb (for example sqlcommand instead of oledbcommand, and slqconnetion instead of oledbconnection)?</p> <p>Or is there something else you need to be carefull with?</p> <p>To my understand, the sql language is almost the same so that shouldnt be a problem..</p>Tue, 05 Dec 2006 22:49:34 Z2006-12-06T14:17:59Zhttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#327e1443-875f-47ce-a9a1-60ae0ea7c5dbhttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#327e1443-875f-47ce-a9a1-60ae0ea7c5dbcverdonhttp://social.msdn.microsoft.com/Profile/en-US/?user=cverdonSwitching from access to sql server express in vb2005<p>Hi,</p> <p>Some of the concepts of access and sql server do not have a one to one mapping. If you don't have migrated the database schema already to access to can use the upscaling wizard in the tool menu of Access or the newer Sql Server Migration Assistant for Access:<br><a title="http://www.microsoft.com/sql/solutions/migration/access/default.mspx" href="http://www.microsoft.com/sql/solutions/migration/access/default.mspx">http://www.microsoft.com/sql/solutions/migration/access/default.mspx</a></p> <p>Once you have your schema and assuming they are almost the same, you just have to change your data access objects from OdlDb to Sql.</p> <p>Regards,<br>Charles</p>Wed, 06 Dec 2006 00:10:42 Z2006-12-06T14:17:59Zhttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#1a6e9060-317f-4cba-849e-a8d6230e801fhttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#1a6e9060-317f-4cba-849e-a8d6230e801fmranzanihttp://social.msdn.microsoft.com/Profile/en-US/?user=mranzaniSwitching from access to sql server express in vb2005<div class=quote><table width="85%"><tr><td class=txt4> <strong>cverdon wrote:</strong></td></tr><tr><td class=quoteTable><table width="100%"><tr><td width="100%" valign=top class=txt4> <p>(...) If you don't have migrated the database schema already to access to can use the upscaling wizard in the tool menu of Access or the newer Sql Server Migration Assistant for Access:<br><a title="http://www.microsoft.com/sql/solutions/migration/access/default.mspx" href="http://www.microsoft.com/sql/solutions/migration/access/default.mspx">http://www.microsoft.com/sql/solutions/migration/access/default.mspx<br></a></p> <p></td></tr></table></td></tr></table></div></p>Done.<br><p><div class=quote><table width="85%"><tr><td class=txt4> <strong>cverdon wrote:</strong></td></tr><tr><td class=quoteTable><table width="100%"><tr><td width="100%" valign=top class=txt4>Once you have your schema and assuming they are almost the same, you just have to change your data access objects from OdlDb to Sql.</td></tr></table></td></tr></table></div></p><p>How could I quickly do that? I've tried with no success...</p><p>Many thanks in advance.<br></p>Fri, 26 Jan 2007 10:36:45 Z2007-01-26T10:36:45Zhttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#5dfb4a03-09b4-4b67-8220-405cd89618f5http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#5dfb4a03-09b4-4b67-8220-405cd89618f5cverdonhttp://social.msdn.microsoft.com/Profile/en-US/?user=cverdonSwitching from access to sql server express in vb2005<p>Hi,</p> <p>Can you provide more information on your problems?</p> <p>Charles</p>Fri, 26 Jan 2007 23:33:18 Z2007-01-26T23:33:18Zhttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#45cc7764-3ef8-45b1-bab1-7cab247493bchttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#45cc7764-3ef8-45b1-bab1-7cab247493bcmranzanihttp://social.msdn.microsoft.com/Profile/en-US/?user=mranzaniSwitching from access to sql server express in vb2005Hi cverdon,<br><br>thank you very much for your kind answer.<br>My problem is the following:<br>http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1159212&amp;SiteID=1<br><br>Thanks again!<br>Sat, 27 Jan 2007 09:01:32 Z2007-01-27T09:01:32Zhttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#7ae8f881-064e-4698-9d65-4aee1e535fedhttp://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/da763409-3e31-45c4-8f39-c5a4995cd5ec#7ae8f881-064e-4698-9d65-4aee1e535fedcverdonhttp://social.msdn.microsoft.com/Profile/en-US/?user=cverdonSwitching from access to sql server express in vb2005<p>Assuming that the database schema is (almost) the same in your SQL Server db than in Access, you just have to create a new dataset and configure it exactly like the Access dataset, but using the SQL Server tables and in a different vb namespace. </p> <p> If all the object names are the same, it would then be a matter of going through your program to change the namespace imports to point to the new dataset.</p> <p>Charles</p>Sat, 27 Jan 2007 15:26:40 Z2007-01-27T15:26:40Z