• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Data Platform Developer Center
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
 
Data Platform Developer Center > Data Platform Development Forums > ADO.NET Data Providers > Switching from access to sql server express in vb2005
Ask a questionAsk a question
Search Forums:
  • Search ADO.NET Data Providers Forum Search ADO.NET Data Providers Forum
  • Search All Data Platform Development Forums Search All Data Platform Development Forums
  • Search All MSDN Forums Search All MSDN Forums
 

AnswerSwitching from access to sql server express in vb2005

  • Tuesday, December 05, 2006 10:49 PMDan Mikkelsen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    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)?

    Or is there something else you need to be carefull with?

    To my understand, the sql language is almost the same so that shouldnt be a problem..

    • ReplyReply
    • QuoteQuote
     

Answers

  • Wednesday, December 06, 2006 12:10 AMcverdon Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

    Hi,

    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:
    http://www.microsoft.com/sql/solutions/migration/access/default.mspx

    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.

    Regards,
    Charles

    • ReplyReply
    • QuoteQuote
     

All Replies

  • Friday, January 26, 2007 10:36 AMmranzani Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
     cverdon wrote:

    (...) 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:
    http://www.microsoft.com/sql/solutions/migration/access/default.mspx

    Done.

     cverdon wrote:
    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.

    How could I quickly do that? I've tried with no success...

    Many thanks in advance.

    • ReplyReply
    • QuoteQuote
     
  • Friday, January 26, 2007 11:33 PMcverdon Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Hi,

    Can you provide more information on your problems?

    Charles

    • ReplyReply
    • QuoteQuote
     
  • Saturday, January 27, 2007 9:01 AMmranzani Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    Hi cverdon,

    thank you very much for your kind answer.
    My problem is the following:
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1159212&SiteID=1

    Thanks again!
    • ReplyReply
    • QuoteQuote
     
  • Saturday, January 27, 2007 3:26 PMcverdon Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    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. 

     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.

    Charles

    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement