未加星标

SQL Server 4.21a on Windows 10 x64

字体大小 | |
[系统(windows) 所属分类 系统(windows) | 发布者 店小二05 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

SQL Server 4.21a on Windows 10 x64

SQL Server 4.21a!

It’s been 7 YEARS, since I last took the SQL Server 4.21a plunge by getting it running on windows Vista . I was thinking with all this Windows NT 3.1 fun, I should getSQL Server 4.21a up and running on my current Windows 10 machine. However this proved more involved.

Unlike Windows Vista, the setupdll.dll from Windows NT 4.0 will not work. I used the one from Windows NT 3.1, and it will run the setup program fine, but the file copy bombs out. I went crazy and modified the setup.inf to not actually copy files, take an xcopy of the raw files from an old install, and it won’t even try to install the service, it just builds a master database, and exits.

Trying to run the SQL Server directly, and you get this fun error:

16/10/13 21:19:08.40 kernel Unable to start due to invalid serial number.

Well isn’t that great. However I did notice that if you run it as ‘Administrator’ aka elevated privileges it will actually run! However it’s not terribly useful as it turns out that master database is actually empty. So without stored procedures or much of anything you really can’t do anything with it. However looking at the install directory there is a bunch of SQL scripts. Even better on the VM where I’ve installed it, there is some output files, that by their date & time tell me in what order to run them!

First things first, I copy the following files from the C:\SQL\DLL diredctory to the C:\SQL\BINN directory so I don’t have to mess with paths:

NTWDBLIB.DLL

OPENDSNT.DLL

SQLEVENT.DLL

SQLTL32.DLL

SSNMPNTW.DLL

Now I can run the SQL server from the C:\SQL\BINN directory

START SQLSERVR.EXE

And now it’s running. If there is any issues, or your master database is either damaged, or just plain doesn’t exist, you can create one with theBLDMASTR.EXE program.

C:\sql\BINN>BLDMASTR.EXE

Buildmaster 4.20a NT : Wed Jan 26 12:37:00 1994

Master disk name? (default is master.dat) :

Master disk size (in 2k blocks)? (default is 6144) :

Configuration only? (default is N) (y or n) : n

Databases only? (default is N) (y or n) : n

Master device: master.dat

writing configuration area

writing the MASTER database

writing the MODEL database

writing allocation pages for remaining 7 MB, (3584 pages)

7 MB

Buildmaster complete

It’s that simple! Move the master.dat file into the C:\SQL\DATA directory and if the server doesn’t find it by itself, you can just tell it where it’s located:

START SQLSERVR.EXE -d ..\DATA\master.dat

And it should start.

Now the fileCONFIG.SQL needs to be modifed (if you have a prior config) or created.

The two key lines are:

update master.dbo.sysdevices set phyname=’C:\SQL\DATA\MASTER.DAT’ where name = ‘master’

sp_addserver YOURMACHINE,local

Which as you can imagine simply sets where the master database lives, and what the machine name is, as SQL server LOVES to know the correct machine name. With that done, here is my simple script for populating the master database:

CHARSET.EXE /S . CP437\noaccent.437

isql -Usa -P < ..\INSTALL\INSTMSTR.SQL

isql -Usa -P < ..\INSTALL\INSTNT.SQL

isql -Usa -P < ..\INSTALL\INSTMODL.SQL

isql -Usa -P < ..\INSTALL\INSTCAT.SQL

isql -Usa -P < ..\INSTALL\CONFIG.SQL

isql -Usa -P < ..\INSTALL\INSTPUBS.SQL

isql -Usa -P < ..\INSTALL\ADMIN2.SQL

isql -Usa -P < ..\INSTALL\OBJECT2.SQL

isql -Usa -P < ..\INSTALL\HELPSQL.SQL

And once this has finished it will have populated all the tables in your master database. Hit CTRL+C in the SQL Server window, and it’ll shut down. Re-launch it, and it’ll be initialized.

Assuming this all went according to plan, you can now launch SQLADMIN, the SQL Administrator, and then you can get a connect screen like this (I only got it running with the named pipes transport…)


SQL Server 4.21a on Windows 10 x64

SQL Admin connect

Remember by default the sa user has no password!


SQL Server 4.21a on Windows 10 x64

SQL Administrator

And we are good to go! Feel free to grabSP4, and apply it by unzipping, and copying the files & dll’s to their respective places. So there we go, from January of 1994, to October of 2016, SQL Server still running!

本文系统(windows)相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术

主题: SQLWindowsSQL ServerADMUB
分页:12
转载请注明
本文标题:SQL Server 4.21a on Windows 10 x64
本站链接:http://www.codesec.net/view/482508.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(windows) | 评论(0) | 阅读(27)