Page 1 of 2 12 LastLast
Results 1 to 40 of 48

Thread: [RESOLVED] MSDE same as using MDB?

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Resolved [RESOLVED] MSDE same as using MDB?

    We've been using local Access databases for keeping track of local stuff, but we now have a SQL 2000 server running most of our stuff. We have one app that runs on various PCs that writes to a local Access database.

    What I'd like to do is run a local version of a MSSQL database on those PCs so it's easier to update the global SQL server as I see fit.

    My question is:

    How do I go about creating a local MSDE file and writing to it/interacting with it?

    I plan to use ADO and I know how to connect to a database and all that, I just don't know if I need to have something like SQL express running on each local machine or not. I was hoping the process would be similar to using a MDB file.

    Help?
    Last edited by ober0330; Mar 27th, 2006 at 11:52 AM. Reason: Solved
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

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

    Re: MSDE same as using MDB?

    What I would do is create tables on the server instead, and put the data into them with an extra column to say which PC/User they came from.

    That would remove the need to install extra software etc on each PC, and would make the next steps simpler - as all the data is easily accessible to you (instead of having to connect to each PC individually).

  3. #3

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Well, the problem is that the software running locally will often be running without a connection to the global server, hence the need for the local version. It's not a question of global vs. local, because the local versions will be syncronized on a regular basis with the global for reporting needs.

    So my question goes back to the how-to.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  4. #4

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Anyone?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  5. #5
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: MSDE same as using MDB?

    ober, you're not in PA anymore!
    What's the problem with using SQL Server Express? It's free, has an available visual IDE, is closer to SQL Server in design, etc.
    Tengo mas preguntas que contestas

  6. #6

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Sup sal?

    Well, I guess the thing is that I don't want to have a server running in the background all the time, unless you can tell me how to start and stop it. I just want a database that I can write to that isn't Access, but has the same features as the runtime version (I thought that's the way the MSDE format was, but I guess I'm wrong).
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  7. #7
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: MSDE same as using MDB?

    Yeah, MSDE is closer to SQL Server than Access. Express I know how to start & stop using the Configuration Manager, but not programmatically. We're converting from Filepro & Access to SQL Server as well, but hoping to rewrite our apps to just use SS.
    You might try here as well.
    Tengo mas preguntas que contestas

  8. #8

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Thanks for the input. I assume connecting to and dealing with Express is the same as Enterprise?

    EDIT: And I changed my location
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  9. #9
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: MSDE same as using MDB?

    Can't say, we haven't rolled anything out yet. I believe the T-SQL's the same, connections here.
    Tengo mas preguntas que contestas

  10. #10
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    I am using MSDE for a client-side project (no access to server) and am quite pleased with the results. Where are you with all this?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  11. #11

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    The project is 90% done, but I'm doing some database re-write and upgrade from Access to MSDE. I downloaded and installed SQL Server Express yesterday and I'm about to test the connection to the local server/database from VB.

    Did you have to install the server or how do you deal with it?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  12. #12
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    Isn't SQL server express a light version of SQL Server 2005? That's not what I am using. I have posted some comments on the forums regarding how I deal with it. I use the SQL Server client tools to do some of the work.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  13. #13

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Yes, that's correct. Can you point me to where you made these comments?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  14. #14
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    You can do an advanced search of the forums. Choose my name as the poster's name and MSDE as the search criteria.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  15. #15
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    OK don't use MSDE as a search criteria. Looks like not much came up. Try my name and DBCC or other database words.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  16. #16

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    OK.... I will in a bit. S*** just hit the fan here.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  17. #17

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Unless you're referring to the "Linked Servers" thread, I don't see what you're getting at.

    Besides, I plan to do the update of the global server through VB, since I don't really have control over the production server and I won't be able to go in and do all the setup for linked servers.

    If there is a specific post you're referring to, can you point it out?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  18. #18
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    Well I wasn't able to find too much:

    http://www.vbforums.com/showthread.p...light=database

    This might be of use:

    <INSTALL.BAT>
    Code:
    .\SETUP.EXE SAPWD="msde" INSTANCENAME="MSDE" DISABLENETWORKPROTOCOLS=0 SECURITYMODE=SQL DATADIR="C:\Temp\" TARGETDIR="C:\Program Files\MSDE\"
    When MSDE extracts into a folder, place this file in the folder next to the SETUP.EXE and run it.

    This installs MSDE to the Program Files folder, creates a named instance of MSDE called MSDE and a "sa" password of msde, and uses C:\Temp as the location of the datafiles.

    Do you have the SQL Server client tools?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  19. #19

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Hmm... and you can use that database just like you were running it off of the full SQL Server (queries of all types?).

    What setup.exe file are you talking about? And I have the Enterprise Manager, if that's what you're referring to.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  20. #20
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    Quote Originally Posted by ober0330
    Hmm... and you can use that database just like you were running it off of the full SQL Server (queries of all types?).
    Yes, but there are some limitations, like I think you don't get stored procedures. I have been using it for a while for high-performance logging and am quite pleased with the performance.

    Quote Originally Posted by ober0330
    What setup.exe file are you talking about?
    When you download the MSDE executable it extracts itself to a folder on your hard drive. In that new folder is a setup.exe

    Quote Originally Posted by ober0330
    And I have the Enterprise Manager, if that's what you're referring to.
    Yes that, and the Query analyser can be used with MSDE. I used them to create new databases, handle minor user privies, and run SQL statements.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  21. #21

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Ok... and I guess the MSDE executable is something I can download from microsoft.com?

    And I don't need stored procedures... I just need a few tables that I can grab data from, update, and insert new.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  22. #22

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Ok, nevermind... I found it and I'm installing right now. Thanks for your help... it's been invaluable!
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  23. #23

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    OK, new question... how do I use Enterprise Manager to connect to a MSDE instance? Do I register a new server???
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  24. #24
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    Just like you would register any SQL server. I had zero problems with this it was straightforward. Post if you get stuck.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  25. #25

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    ***... Ok, I downloaded it, put the batch file in the folder, changed the locations, and it ran like it installed it. The files were created and I have the master database, etc. When I try to register the server, I guess I'm not sure what to put in for the name of the server. No matter what I put in, it says it can't find it.

    And it's not on the list of servers. Do I need to restart or start a service or something?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  26. #26

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Ok, I rebooted and it's all up and functional now. Nevermind. Thanks for the help!
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  27. #27
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: MSDE same as using MDB?

    I'm a little confused - maybe I needed to read these posts a bit more...

    But are you considering using MSDE over SQL SERVER EXPRESS?

    Look at this link:

    http://www.vbforums.com/showpost.php...28&postcount=5

    It's from the sticky at the top of the DB forum here about SQL 2005 stuff...

    This link points to an MSDN article on how to use SQL SERVER EXPRESS more like you would ACCESS - as opposed to loading the database into the server, like full-blown MS SQL SERVER requires...

    Using Visual Basic 6 to Retrieve Information from SQL Express 2005 by File Path

    Dim cn As ADODB.Connection
    Set cn = New Connection
    cn.ConnectionString = "Provider=SQLNCLI.1;Integrated Security=SSPI;" & _
    "Persist Security Info=False;" & _
    "AttachDBFileName=" & App.Path & "\northwnd.mdf;Data Source=server1\sqlexpress"
    cn.Open

    Dim rs As Recordset
    Set rs = New Recordset
    rs.Open "Select * from orders", cn
    Set MSHFlexGrid1.DataSource = rs

    This is revolutionary functionality. This means that you can simply ship your SQL server database as an MDF file with your application. You don’t need to do anything to install the database. You just put the path to the database in the connection string, and you can select, insert, update, delete, call stored procedures, and access any other database functionality. This is also great functionality for Web applications, which can now just keep a copy of the MDF file in the web application directory, and use it as easily as an Access database.

    You can see that the path to the database is specified through the AttachDBFileName value in the connection string. You’ll also notice that this connection string is not using the typical SQL OLE-DB provider. When you install SQL Express, it installs a new OLE-DB provider, called the “SQL Native Client”, that gives you access to some of the new SQL 2005 functionality, specifically, the ability to attach to a database by file name. This is specified in the connection string with the statement “Provider=SQLNCLI”. Once the connection string is specified, you can retrieve recordsets, perform updates, and do any other database operations exactly as you would normally do with SQL server.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  28. #28

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    So let me get this straight:

    With that method, all I have to do is create the MDF file in SQL Server express and then include the MDF in the install of my VB app? And I have full functionality to it? What about the OLE-DB Provider? Where do I get that to install on my computers that run the app without the server?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  29. #29
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    Sounds like you (a) must supply a working .MDF file with your distribution, and (b) require the target machine already has SQL Express installed for this to work.

    Seems like more trouble for less results than a single distributable install of MSDE?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  30. #30
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: MSDE same as using MDB?

    MSDE is being replaced by SQL SERVER EXPRESS...

    The new "connect" MDB method allows you to have a functional database experience without SERVER manipulation of the file.

    MSDE and SQL SERVER express install the same way - they are the same thing!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  31. #31
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    You don't need to supply an existing database with MSDE which is based on SQL Server 2000. Is the same true for SQL Server Express, or is the .MDF file manditory?

    What about performance differences between MSDE and SSX with MDB file?

    I thought SSX was based on SQL Server 2005?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  32. #32
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: MSDE same as using MDB?

    Comparison with MSDE
    SQL Server Express replaces Microsoft SQL Server Desktop Engine (MSDE) in SQL Server 2005 and provides numerous ease-of-use features that enable it to be used by a nonprofessional developer or hobbyist. MSDE is based on SQL 2000 technology and is recommended for use with Windows 9x platforms, while SQL Server Express is based on SQL Server 2005 technology. SQL Server Express has features such as Application XCopy, Robust Setup UI, CLR support, GUI tools, and Visual Studio Integration that are not present in MSDE. However, some features are removed from SQL Server Express compared to MSDE. These features include DTS, replication publishing, and SQL Agent.

    The use of merge modules for deployment has been a servicing problem for MSDE, and this functionality is not available in SQL Server Express. The workload throttle in MSDE was sometimes difficult to understand and use. In SQL Server Express, the throttle is removed and instead the engine uses CPU, RAM, and database size limitations to differentiate it from the other editions. The table below shows the comparison of these products.
    Regardless of what product - MSDE or SSX - the data (MDB) had to get on the machine (if the goal was to include data). Otherwise you can use SSX or MSDE to create a new database - it's identical in that regard.

    One good change was that MSDE relied on MDAC - and that's a problem with other installs of other apps. All the SQL 2005 products can use a new native client - SNAC...

    http://msdn.microsoft.com/library/de...seoverview.asp

    [edit] for clarity...
    Last edited by szlamany; Mar 27th, 2006 at 10:08 AM.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  33. #33
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: MSDE same as using MDB?

    Not sure if this will post cleanly...

    VB Code:
    1. Table 2. Comparison of MSDE with SQL Server Express
    2.  
    3. SQL Server Express2005                  MSDE 2000
    4. User Instance support               Feature not present
    5. DTS in separate download                  DTS runtime present
    6. Easy deployment because of no MDAC      MDAC is part of install
    7. MSI only, good servicing story MSI and MSM, servicing of MSM hard
    8. Subscriber Replication for Transactional, Merge, and snapshot Merge/snapshot publication supported in addition to replication subscription
    9. Robust setup UI Basic setup UI
    10. No agent                                  Agent present
    11. Supports Windows 2000 SP4, Windows XP SP1, and Windows 2003 Supports Windows 98, Windows Me, Windows 2000, Windows XP, Windows NT4, and Windows 2003
    12. CLR support                          No CLR support
    13. GUI tools available                             No GUI tools
    14. Database size limit: 4 GB                    Database size limit: 2 GB
    15. 1 CPU, 1 GB RAM                             2 CPU, 2 GB RAM
    16. No throttle Workload throttle enforced for 5 concurrent workloads
    17. Deep integration with Visual Studio Basic integration with Visual Studio

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  34. #34
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    From the read it looks like SSX doesn't work with VB6, only ADO.NET?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  35. #35
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: MSDE same as using MDB?

    Quote Originally Posted by Dave Sell
    From the read it looks like SSX doesn't work with VB6, only ADO.NET?
    That's not true at all - please be careful what you post as others might get the idea that it's a real limitation

    http://msdn.microsoft.com/vbrun/vbfu...ingsqlexpress/

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  36. #36
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: MSDE same as using MDB?

    VB Code:
    1. Using Visual Basic 6 to Retrieve Information from SQL Express 2005 by File Path
    2.  
    3.     Dim cn As ADODB.Connection
    4.     Set cn = New Connection
    5.     cn.ConnectionString = "Provider=SQLNCLI.1;Integrated Security=SSPI;" & _
    6.         "Persist Security Info=False;" & _
    7.         "AttachDBFileName=" & App.Path & "\northwnd.mdf;Data Source=server1\sqlexpress"
    8.     cn.Open
    9.    
    10.     Dim rs As Recordset
    11.     Set rs = New Recordset
    12.     rs.Open "Select * from orders", cn
    13.     Set MSHFlexGrid1.DataSource = rs
    14. This is revolutionary functionality. This means that you can simply ship your SQL server database as an MDF file with your application. You don’t need to do anything to install the database. You just put the path to the database in the connection string, and you can select, insert, update, delete, call stored procedures, and access any other database functionality. This is also great functionality for Web applications, which can now just keep a copy of the MDF file in the web application directory, and use it as easily as an Access database

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  37. #37
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    Quote Originally Posted by szlamany
    That's not true at all - please be careful what you post as others might get the idea that it's a real limitation

    http://msdn.microsoft.com/vbrun/vbfu...ingsqlexpress/
    From the URL above:

    There are some interesting dynamics based on the interactions between MDAC providers and the SQL Native Client providers. For instance, MDAC 2.5, 2.7, or 2.8 cannot connect to SQL Server 2005 using Shared Memory. This affects any native application using SQL OLE DB or SQL ODBC and includes not only existing native applications, but also the managed OLE DB or ODBC applications since they use MDAC internally. Typically for SQL Server, if the shared memory connection fails, networking protocols such as TCP/IP are used. However, for SQL Server Express, since the networking is turned off by default, these applications would simply fail to connect. The workaround is to change the apps to use the SQL Native Client provider or enable networking Transmission Control Protocol (TCP) and start SQL Browser.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  38. #38
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: MSDE same as using MDB?

    That just says turn on TCPIP (off by default since SSX is intended for local use, but can be networked) or use SNAC. SNAC is not required - MDAC is fine - just turn on TCPIP.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  39. #39
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: MSDE same as using MDB?

    roger - thanks for all that.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  40. #40

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: MSDE same as using MDB?

    Then why are they 2 different products? Seems kind of ridiculous.

    Besides, why should I install SQL Server Express when it requires .NET 2, MSXML6 and XP SP2 to even function? MSDE works without all those requirements and I get the same basic functionality!
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Page 1 of 2 12 LastLast

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