Results 1 to 14 of 14

Thread: project fail

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    10

    project fail

    I just finish make my project with sql 2000 as a database and the software already pack. but when I try to Install in other computer it the database cannot be read.should i use msde? i need to know how to develop using sql database and pack it to togeher and can be run in others computer. thanks
    Last edited by cuks_babs; Mar 29th, 2006 at 10:18 AM. Reason: missing word

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: project fail

    All computers running your software need to have SQL Server installed on a network server to which they have access prior to using your code.

    You can not include an SQL Server database in an installation package like you can an MS Access database.

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

    Re: project fail

    Welcome to VBForums!

    By "sql 2000" do you mean SQL Server 2000?
    If so, you need to have a database server to use the database. MSDE can effectively be used as a local database server, so if there isn't a 'real' server at the client end then MSDE would be the way to go.

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: project fail

    Ok thanks,yes I mean SQL server 2000
    I think all of you guys already knew it. Can you teach me specifically how to use MSDE as an implement for that? what should i do or may be you have simple example project for that? I try to find example... or explanation about it! thanks before......

    HACK >>You can not include an SQL Server database in an installation package like you can an MS Access database.
    ME >>so what should I do
    Last edited by cuks_babs; Mar 29th, 2006 at 12:20 PM. Reason: thing i forgot

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: project fail

    Quote Originally Posted by cuks_babs
    HACK >>You can not include an SQL Server database in an installation package like you can an MS Access database.
    ME >>so what should I do
    As I said, they have to have it available, so if they don't have SQL Server then, before using your program, they would have to buy it and install it.

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: project fail

    [QUOTE]>>>If so, you need to have a database server to use the database. MSDE can effectively be used as a local database server, so if there isn't a 'real' server at the client end then MSDE would be the way to go.
    It mean not necesary to have it! am I correct?
    so what should I do ? should I include MSDE to the package?

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: project fail

    [QUOTE=cuks_babs]
    >>>If so, you need to have a database server to use the database. MSDE can effectively be used as a local database server, so if there isn't a 'real' server at the client end then MSDE would be the way to go.
    Yes
    Quote Originally Posted by cuks_babs
    It mean not necesary to have it! am I correct?
    If you use MSDE in your program, then people using your program also need MSDE
    Quote Originally Posted by cuks_babs
    so what should I do ? should I include MSDE to the package?
    You can download it, but it comes with its own installation and setup package. Your customers would need to know how to do that.

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

    Re: project fail

    They will also need to know how to create your database. Either how to attach the files you supply or how to create a new database and create the tables (probably though scripts that you will need to write).
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  9. #9

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: project fail

    Ok...
    so what i need is just to include the data file (student.mdf) in the package.and once MSDE install in other computer it will run automatically the student.mdf as a database?is something should I set before?

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

    Re: project fail

    You will need to attach the file to a database in the MSDE enviorment. You should be able to do that with a batch file I belive (I have not tried it personnally)
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: project fail

    Quote Originally Posted by GaryMazzone
    You will need to attach the file to a database in the MSDE enviorment. You should be able to do that with a batch file I belive (I have not tried it personnally)
    Yeah, me either.

    However, it is important that you understand that what Gary is saying is that no matter what you do, something has to be done on the user end after MSDE is installed in order to get your database imported.

    This
    Quote Originally Posted by cuks_babs
    so what i need is just to include the data file (student.mdf) in the package.and once MSDE install in other computer it will run automatically the student.mdf as a database?
    is not going to automatically happen without somekind of user interaction.

  12. #12

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: project fail

    Mazz1>>You will need to attach the file to a database in the MSDE enviorment
    where can i locate it on vb or MSDE?and how bout in vb packaging?should i attach the student.mdf?

  13. #13

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: project fail

    garry>>You should be able to do that with a batch file
    what do mean? i'm sorry i don't understand...

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

    Re: project fail

    MSDE needs to be installed seperately. You can include the installation package on your CD then instruct the enduser to run that package. The other option is to include another application on the CD that will allow to end user to select the install they want to perform (ie the app or the MSDE install). After the MSDE installation is complete you then un a batch file that will copy the database file "student.mdf" to the directory yoy want and use OSQL to attach the database file to the database.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

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