Results 1 to 8 of 8

Thread: SQL Server database Implementation . . .

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2008
    Posts
    18

    Exclamation SQL Server database Implementation . . .

    Please tell me the ways to implement a VB program with SQL server database. Is it as simple as implementing MS Access Database ?
    Do I need to install the SQL server on the client's PC ?
    Is there any way to use the SQL database file place in the application directory without installing SQL server ?
    The program I want to built is going to be used only be a single user. Please suggest whether I should user SQL Server of MS Access.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: SQL Server database Implementation . . .

    Although MS Access is a nice db engine it lacks some critical functionality like stored procedures, triggers, etc and it's not free either.
    You can create JET based database programmatically but you'll need Access installed when it comes to maintenance or perhaps to print report directly from it.
    It might be a headach (to some degree) to migrate your MS Access later on to MS SQL... and so on.
    On the other hand if you start with MS SQl 2008 Express you'll find yourself in much better situation.

    So, my advise is: VB 2008 Express+MS SQL 2008 Express - both are free btw.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: SQL Server database Implementation . . .

    In terms of your VB code, they are very similar. Exactly what differs depends on which version of VB you are using, and what database connection technology you are using.


    You do need to install SQL Server, but it doesn't need to be complex.

    There are several editions of SQL Server, and only the two free versions are appropriate for you (as the others cost a lot of money, need a server, and provide no extra benefit for this situation).

    There is the Express Edition, which is basically a mini version of the usual SQL Server products, but is designed to be used on a normal PC by a limited amount of users. It supports features like Stored Procedures, but unfortunately does require extra installation (if you are using VB.Net this is apparently as simple as just ticking a box when making your ClickOnce package), and is reasonably large.

    The other one of interest is the Compact Edition, which is far smaller (I think just 7 DLL's), but does not support as many features (eg: no Stored Procedures). In terms of installation you simply add the DLL's to your install package.


    Is there any way to use the SQL database file place in the application directory without installing SQL server ?
    You should never store data files in the application directory - you should use the directories designed for that purpose instead (such as AppData), otherwise you will get problems if the users Windows account is not an admin (or they are using Vista).

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: SQL Server database Implementation . . .

    If it is going to be a single user only then Access should be fine. SQL Server could be too much for such cases.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: SQL Server database Implementation . . .

    I tend to disagree... I have been moving away from any use of Access for a database backend for a couple of years now. I think SQL Exresss or SQL CE is the way to go.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  6. #6
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: SQL Server database Implementation . . .

    If it would have been in a multi-user environment then I would have suggested alternatives to Access but if it is a single-user application then Access should be fine in most cases, one scenario that I would advise against using it (in a single user case) is when the database should exceed the limit of its 2GB size.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  7. #7
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: SQL Server database Implementation . . .

    MS Access was fine when we had no alternatives - we now have free express editions of MS SQL, Oracle and of course MySql that make MS Access look "crippled".
    Would you want your app to be crippled? I'm sure your answer is "no".

  8. #8
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: SQL Server database Implementation . . .

    We have our own beliefs and opinions on things. I'd say Access is still fine if it fits the requirement, and the application that utilizes it shouldn't be crippled if it is designed correctly. Cheers everyone!
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width