|
|
|
|
||
SQL Server on Win98Did you know that you can get full SQL Server 7 functionality on your Win 98/Me* PC for free? You don't have to go to the expense of installing an NT server and buying the full version of SQL Server. Microsoft has a package called MSDE (Microsoft Data Engine). It has full SQL Server 7 functionality with some limitations - there is a 2 GB size limit on databases and a limit of about 5 users. The catch is there is virtually no documentation and you don't get the fancy GUI database manager programs that come with the NT version. However, it's a great tool for learning SQL at home, testing your database before running it on SQL Server proper, or setting up a modest database for a small office network. This page has some hints on how to install it and use it. * I'm informed that MSDE is only supported for W98 and up. We'd be interesting in hearing from any of you diehard W95 users who managed to get it working, though.
Contents
Where to get MSDEMSDE comes with Office 2000 (Developer Edition only, I believe) or you can download it - all 20 MB of it - from Microsoft if you have a registered version of Visual Studio 6. There is also a CD-ROM called MSDE for Visual Studio 6.0 that's available just for the shipping costs. Getting HelpCheck out Microsoft's page for MSDE (Microsoft Data Engine) especially the Technical FAQ. This has links to the On-Line User Manual. For a good on-line course on T-SQL see Michael Hotek's site. MSDE UtilitiesThere are some useful utilities in the directory C:\MSSQL7\BINN which you can access from the DOS prompt.Setupsql.exe - will set up SQL Server on your machine. Run once. It will ask you if you want to upgrade to Developer Edition. Say yes. Sqlmgr.exe - can be set so that the SQL server will always run on start up. ConfgSvr.exe - use this to let your server listen on different protocols. Osql.exe - DOS version of SQL Server Service Manager. It's all you get, but it's free. Bcd.exe - use for loading large text files into SQL Server. See Access upgrade book. Creating a databaseFrom the MS-DOS prompt typeOSQL /Usa /PThis should give you a "1>" prompt. 1> use master 2> go 1> create database test1 2> go 1> exitYou can also use OSQL program to find out other details, such as the server name and the current version: OSQL /Usa /P SELECT @@SERVERNAME GO SELECT @@VERSION GO exit OSQL Utility HelpThe osql utility allows you to enter Transact-SQL statements, system procedures, and script files. This utility uses ODBC to communicate with the server. For a complete list of commands see the OSQL Utility Help Page.Access 97 SQL Upsizing ToolsThere is a free add-in for Access 97 that lets you upsize your Access 97 database to SQL Server. It's not perfect, but it's a start. It comes with a SQL Server Browser, it's OK, but can leave your Access window unclosable. Download it from Q176614. There is a very helpful white paper "Upsizing Microsoft Access Applications to Microsoft SQL Server" available at Q175619 that contains a lot of useful advice both on upsizing your Access application and SQL Server in general. Creating a Table from Access 97Create a pass-through query as follows:
Alternatively, use our OSQL interface and type in the T-SQL commands directly from an Access project. To set a connection permanently in a pass-through query
Creating an ODBC link
Once you have created a database with some tables, you can continue to use the OSQL
interface to work with the tables, but it's much easier to have an ODBC link from an Access
database. Here are the instructions you need from a stand-alone computer:-
Once you've created the ODBC Machine Data Source in instructions 1 to 12 above, you don't need to create a new data source each time. You can create a link from any other database on your machine by following instructions 1 to 4 then jump to instruction 13. How to install MSDEOn the CD there is a tedious slide show with sound and vision that eventually tells you how to install it. It's wrong. Or at least it's confusing. Here's what to do.
Feedback or questions: Contact DI Management. Return to Tips and Tutorials Page. |
|
|
| Copyright © 2000-2 DI Management Services Pty Limited ABN 78 083 210 584 Sydney, Australia. www.di-mgt.com.au. All rights reserved. | |
|
Home | What We Do | Services | Our Approach | About Us | Projects | Tips | Links | Cryptography | CryptoSys API | About This Site | Contact | Email Us |