home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0430 - 0439 / ibm0430-0439 / ibm0438.tar / ibm0438 / SQL42112.ZIP / SQL421A.012 / SQL / MIPS / README.TXT < prev    next >
Encoding:
Text File  |  1994-07-14  |  57.8 KB  |  1,287 lines

  1. ************************************************************************
  2.     MICROSOFT(R) SQL SERVER(TM) SPECIAL INFORMATION
  3. ************************************************************************
  4. This file contains information pertaining to the installation and use of
  5. Microsoft(R) SQL Server. The information contained 
  6. in this file is intended to supplement the manuals included in your 
  7. SQL Server package.
  8. ************************************************************************
  9.  
  10. ------------------------------------------------------------------------
  11. Using SQL Server 4.21A with Windows NT(TM) Server Version 3.5
  12. ------------------------------------------------------------------------
  13.  
  14. *****What's Changed in Microsoft SQL Server Version 4.21A*****
  15.  
  16. With this release, some SQL Server components have 
  17. been updated for better compatibility with the Windows NT 
  18. Server version 3.5 operating system. 
  19.  
  20. Beginning with this release, Microsoft SQL Server version 
  21. 4.21A is available in two package configurations: Microsoft 
  22. SQL Server and Microsoft SQL Server Workstation System. 
  23. Microsoft SQL Server and SQL Server users are now licensed 
  24. separately from one another. You must acquire separate user 
  25. licenses for each user who wants to access SQL Server; an 
  26. administrative-use license to install and configure SQL 
  27. Server is included. For Microsoft SQL Server Workstation 
  28. System, no separate user license is needed.
  29.  
  30. Also provided with this release are some additional 
  31. diskettes (this additional software is not provided on 
  32. the Microsoft SQL Server CD-ROM): 
  33.  
  34. -  Supplemental Services. For Intel(R)-, MIPS(R)-, and Alpha 
  35.    AXP(TM)-based computers, this disk provides Net-Libraries 
  36.    for DECnet(TM) sockets and for AppleTalk(R) (ADSP). 
  37.    The DECnet sockets Net-Libraries allow VMS(TM) clients 
  38.    using DECnet to access SQL Server, and the AppleTalk 
  39.    Net-Libraries allow Apple(R) Macintosh(R)-based clients 
  40.    to connect to SQL Server via AppleTalk. For more 
  41.    information, see the README.TXT file included on the disk.
  42.  
  43. -  ODBC 2.0. This disk provides ODBC client computer support 
  44.    only for Intel-based computers. It includes the Open Database 
  45.    Connectivity (ODBC) Driver Manager, SQL Server ODBC client 
  46.    drivers for Win32(R) and Win16, and online Help.
  47.  
  48.    To install ODBC drivers on Microsoft Windows(TM) version 
  49.    3.1 clients, use either File Manager or Program Manager 
  50.    to run Setup from the root directory of the ODBC 2.0 disk. 
  51.    This installs the Win16 driver, plus a special 32-bit 
  52.    version of the ODBC Driver Manager that allows Win32S 
  53.    applications to access the 16-bit driver. To install ODBC 
  54.    drivers on Windows NT version 3.1 or 3.5 clients, run Setup 
  55.    from the \32i directory of the ODBC 2.0 disk. If you will 
  56.    be running 16-bit applications in the Windows on Win32 
  57.    (WOW) subsystem of Windows NT, run both versions of Setup.
  58.   
  59.    For more information, see the ODBC online Help.
  60.  
  61. *****Microsoft SQL Server and Microsoft SQL Server Workstation System*****
  62.  
  63. Microsoft SQL Server version 4.21A is available in two package 
  64. configurations:
  65.  
  66. -  Microsoft SQL Server is a relational database management 
  67.    system that is capable (depending on your application 
  68.    and hardware environment) of supporting hundreds of 
  69.    simultaneous users.
  70.  
  71. -  Microsoft SQL Server Workstation System has the same features and
  72.    functionality as Microsoft SQL Server, except that it is a 
  73.    single-user licensed product that supports a maximum of 
  74.    15 simultaneous database connections.
  75.  
  76. *****Install SQL Server on Windows NT Server Version 3.5*****
  77.  
  78. For Windows NT version 3.5, Microsoft SQL Server should be 
  79. installed on a computer running the Windows NT Server operating 
  80. system. SQL Server is not supported for installation on a computer 
  81. running Windows NT Workstation version 3.5. Windows NT Server 
  82. is optimized for server functions and offers better performance, 
  83. scalability, and capacity than Windows NT Workstation.
  84.  
  85. Microsoft SQL Server is not recommended for installation 
  86. on a Primary Domain Controller or a Backup Domain 
  87. Controller because those computers perform the 
  88. resource-intensive tasks of maintaining and 
  89. replicating the network accounts database and 
  90. performing network login authentications. 
  91.  
  92. For Windows NT version 3.5, Microsoft SQL Server Workstation 
  93. System can be installed on a computer running either the Windows 
  94. NT Workstation or Windows NT Server operating system.
  95.  
  96. Note that SQL Server and SQL Server Workstation System are 
  97. both compatible with Windows NT version 3.1 and Windows NT 
  98. Advanced Server version 3.1.
  99.  
  100. *****Setting Frame Types for NWLink IPX/SPX*****
  101.  
  102. In order to establish and maintain connections, SQL 
  103. Servers and clients communicating via the NWLink 
  104. IPX/SPX protocol must be configured to use the same 
  105. frame type. The most commonly used frame types for 
  106. Ethernet are 802.3 and 802.2. Windows NT Version 
  107. 3.5 offers an auto-detect option that in most cases 
  108. properly configures a server or workstation for the 
  109. appropriate frame type.
  110.  
  111. In some rare situations, especially on networks with 
  112. mixed Novell(R) server versions or with clients 
  113. running various frame types, you might encounter 
  114. difficulty establishing connections between SQL 
  115. Server clients and servers when the Windows NT 
  116. Version 3.5-based computers are configured for 
  117. frame type auto-detect. If this occurs, you can 
  118. configure the Windows NT Version 3.5-based computers 
  119. for specific frame types.
  120.  
  121. Note: Computers running the Windows NT Server operating 
  122. system can be configured for multiple frame types. 
  123. Computers running the Windows NT Workstation operating 
  124. system can be configured only for a single frame type.
  125.  
  126. First, determine what frame type(s) you will 
  127. use. Check what frame type other network clients are 
  128. using (you may want to set your Windows NT Version 
  129. 3.5-based computers to that frame type). For Ethernet, 
  130. you will usually use frame type 802.2 for networks 
  131. with servers running NetWare(R) version 3.12 or 
  132. later, and frame type 802.3 for networks with 
  133. other configurations.
  134.  
  135. To set frame types on each computer running Windows 
  136. NT Server version 3.5:
  137.  
  138. 1. From the Control Panel, choose the Network application. 
  139.    The Network Settings dialog box appears. 
  140. 2. From the Installed Software list, select NWLink 
  141.    IPX/SPX Compatible Transport, and then choose 
  142.    Configure. The NWLink IPX/SPX Protocol Configuration 
  143.    dialog box appears. 
  144. 3. Select the Manual Frame Type Detection option, select 
  145.    one or more frame types from the list, and then 
  146.    choose the Add button.
  147. 4. Choose OK. The Network Settings dialog box returns.
  148. 5. Choose OK. The Control Panel returns. Close the 
  149.    Control Panel.
  150.  
  151. To set a frame type on each computer running Windows 
  152. NT Workstation version 3.5:
  153.  
  154. 1. From the Control Panel, choose the Network application. 
  155.    The Network Settings dialog box appears. 
  156. 2. From the Installed Software list, select NWLink 
  157.    IPX/SPX Compatible Transport, and then choose Configure. 
  158.    The NWLink IPX/SPX Protocol Configuration dialog box 
  159.    appears. 
  160. 3. In the Frame Type box, select the appropriate frame 
  161.    type (you may choose only one), and then choose OK. 
  162.    The Network Settings dialog box returns.
  163. 4. Choose OK. The Control Panel returns. Close the 
  164.    Control Panel.
  165.  
  166. For additional information on frame types, choose the 
  167. Help button from the NWLink IPX/SPX Protocol 
  168. Configuration dialog box.
  169.  
  170. *****SQL Server and DHCP Servers*****
  171.  
  172. Windows NT Version 3.5 provides easy administration of large TCP/IP 
  173. networks by offering the Dynamic Host Configuration Protocol (DHCP) 
  174. service for automatic TCP/IP configuration. Windows Internet Name Service 
  175. (WINS) provides dynamic mapping of network names and addresses, enabling 
  176. users to operate in large scale TCP/IP networking environments with little 
  177. administrative support. 
  178.  
  179. When using the DHCP service, computers are automatically assigned a 
  180. "leased" (temporary) IP address by the DHCP server. Leases have an 
  181. expiration date and time, but if the computer is available on the network 
  182. when the lease expires, the leased IP address is automatically renewed. 
  183. However, if a computer is not available on the network when the lease 
  184. expires (for example, if it is turned off), the DHCP server can cancel 
  185. the lease and that address becomes available to any computer needing a 
  186. lease. When the original computer again becomes available on the network 
  187. it is assigned an IP address that may be different from its previous IP 
  188. address.
  189.  
  190. For SQL Server, this means that on rare occasions the IP address of a 
  191. server might change (usually, only if the server was turned off at the 
  192. time the IP address lease expired). If you occasionally encounter problems 
  193. with dropped client-server connections when using the DHCP service on 
  194. Windows NT version 3.5, you can assign reserved IP addresses to the 
  195. computers running SQL Server. (This is necessary only for servers, not 
  196. clients.)
  197.  
  198. Instructions for setting a reserved IP address can be found in Chapter 
  199. 4, "Installing and Configuring DHCP Servers," in "Microsoft Windows 
  200. NT Server TCP/IP," available with Windows NT Server. 
  201.  
  202. Instructions for setting a reserved IP address are also available from 
  203. the DHCP Manager online Help file. You can start DHCP Manager on the 
  204. DHCP server by choosing its icon from the Network Administration Tools 
  205. group in Program Manager. View the online instructions by selecting the 
  206. Help menu, choosing Contents, choosing "Administering DHCP Clients," and 
  207. then choosing "Managing Client Reservations."
  208.  
  209. *****Using Dump Devices on a NetWare Server*****
  210.  
  211. The Client Service for NetWare allows a Windows NT 
  212. Server version 3.5 to access files on a NetWare file 
  213. server. If you want to use a file on a NetWare server 
  214. as a disk dump device for SQL Server, you must:
  215.  
  216. 1. Run SQL Server as a service under a Windows NT user 
  217.    account that matches the user ID and password of a 
  218.    valid NetWare user. You cannot run SQL Server as a 
  219.    service under the LocalSystem account. 
  220.  
  221.    For information on how to set this up, see "Configuring 
  222.    Network Permissions for SQL Server," in Chapter 2 of the 
  223.    Microsoft SQL Server Configuration Guide (page 64).
  224.  
  225. 2. Identify the network share point of the dump device 
  226.    using UNC naming rather than drive letters. For 
  227.    example, the following command would be valid:
  228.  
  229.     sp_addumpdevice 'disk','netware_dump',
  230.     '\\netware1\big_disk\dumpdir\dumpfile.dat', 2
  231.  
  232.    Note: In the above command, you cannot use a drive 
  233.    letter ("n:") in place of the UNC designation for the
  234.    drive and dump share ("\\netware1\big_disk").
  235.  
  236. *****Running SQLMail on Windows NT Server Version 3.5*****
  237.  
  238. With Windows NT Server version 3.5, SQL Server can 
  239. run as a service in a user account and use SQLMail 
  240. functionality. If you run SQL Server in the LocalSystem 
  241. account on Windows NT Server version 3.5, then in the Services 
  242. application in the Windows NT Control Panel, in the Startup 
  243. dialog box, you should select the option Allow Service To 
  244. Interact With Desktop.
  245.  
  246. ------------------------------------------------------------------------
  247. Installing or Upgrading
  248. ------------------------------------------------------------------------
  249. To install Microsoft SQL Server version 4.21A, run the 
  250. Setup program and choose the Install SQL Server And Utilities 
  251. option. To upgrade a previous version of Microsoft SQL Server 
  252. to version 4.21A, run the Setup program and choose the Upgrade 
  253. SQL Server option.
  254.  
  255. The CD-ROM disc contains three separate SETUP directories, 
  256. one for Intel-based computers (the \I386 directory), one for 
  257. MIPS-based computers (the \MIPS directory), and one for Alpha 
  258. AXP-based computers (the \ALPHA directory). SQL Server 
  259. must be installed from the directory containing the software 
  260. compatible with your hardware platform. You cannot use a 
  261. different processor architectureÆs Setup program to install SQL 
  262. Server.
  263.  
  264. For detailed installation instructions, see the Setup program's 
  265. online Help or the Microsoft SQL Server Configuration Guide.
  266. Note that the printed SQL Server documentation is the same 
  267. for versions 4.2, 4.21, and 4.21A.
  268.  
  269. ------------------------------------------------------------------------
  270. If You Have a Beta Version of SQL Server for the MIPS Platform
  271. ------------------------------------------------------------------------
  272. If you have a Beta version of Microsoft SQL Server for a 
  273. MIPS-based computer, you must newly install this release.
  274.  
  275. This release includes a CD-ROM disc for installing SQL Server for 
  276. Windows NT. Note that the CD-ROM disc contains three separate SETUP 
  277. directories, one for MIPS-based computers, one for Intel-based computers, 
  278. and one for Alpha AXP-based computers. Be sure you setup SQL Server 
  279. using the directory for MIPS-based computers (the \MIPS directory). You 
  280. cannot use a different processor architecture's Setup program to install 
  281. SQL Server.
  282.  
  283. ------------------------------------------------------------------------
  284. Migrating Data Between RISC and Intel Architectures
  285. ------------------------------------------------------------------------
  286. It is not possible to dump a database in one processor architecture and 
  287. load it in another. Even if the operation appears to succeed, serious 
  288. problems will subsequently result. You also should not run the Setup 
  289. program to perform an upgrade from a database environment that existed
  290. on a different computer. For example, you cannot dump a database from 
  291. an Alpha AXP-based computer and load it into an Intel-based computer. Nor 
  292. should you copy your MASTER.DAT from an Intel-based computer to a 
  293. MIPS- or Alpha AXP-based computer and run Setup to upgrade it. (However,
  294. you can use SQL Transfer Manager, provided with Microsoft SQL Server 
  295. version 4.21A, to transfer the data from one architecture to another.)
  296.  
  297. ------------------------------------------------------------------------
  298. Microsoft SQL Server Adds SQLMail Functionality
  299. ------------------------------------------------------------------------
  300. With version 4.21, SQL Server includes extended stored procedures that 
  301. allow SQL Server to send messages through the built-in mail application 
  302. programming interface (MAPI) client interface in Windows NT. These 
  303. messages can consist of short text strings, the output from a query, or 
  304. an attached file. You can send messages from within a trigger or a 
  305. stored procedure. (For example, you can send an alert when changes 
  306. occur in the database.) Mail functionality has also been integrated 
  307. with SQL Monitor and SQL Administrator scheduled backups. You can use 
  308. this capability with SQL Administrator's scheduled backup feature to 
  309. enable SQL Monitor to notify a list of recipients when backups occur 
  310. and if errors occur during a backup. In addition, you can use the 
  311. SQLMail feature to notify you when long-running processes, such as 
  312. data downloads, are complete. 
  313.  
  314. A new DLL, SQLMAPI.DLL, is installed with SQL Server and includes the 
  315. extended stored procedures necessary for mail enabling. You enable the 
  316. SQLMail functionality through the Set Server Options dialog box in the 
  317. Setup program. You can start and stop mail or send a message by using 
  318. the new extended stored procedures (documented below). You can also 
  319. automatically start mail when you start SQL Server by setting 
  320. AutoStart Mail Client in the Set Server Options dialog box. For more 
  321. information about enabling SQLMail, see the online Help included with 
  322. the Setup program. Note that before you enable SQLMail you should 
  323. ensure that the Mail client interface in Windows NT is set up and 
  324. working and that you can send an ordinary mail message to the 
  325. intended recipients of SQLMail messages. For more information 
  326. about the Mail client interface, see your documentation for
  327. Microsoft Windows NT.
  328.  
  329. *****SQLMail Extended Stored Procedures*****
  330.  
  331. This section explains the extended stored procedures for SQLMail:
  332.  xp_startmail, xp_stopmail, and xp_sendmail.
  333.  
  334. ----------------
  335. xp_startmail
  336. Starts a SQL Server Microsoft Mail client session.
  337.  
  338. Syntax:
  339. xp_startmail ['@user'] [, '@password']
  340.  
  341. where
  342.  
  343. @user
  344. Is an optional parameter that specifies the mail user name.
  345.  
  346. @password 
  347. Is an optional parameter that specifies the mail password.
  348.  
  349. Remarks:
  350. SQL Server attempts to log in to Microsoft Mail using the name and 
  351. password specified. If no name or password is supplied, SQL Server 
  352. uses the name and password specified in the Mail Login dialog box 
  353. under Set Server Options in Setup. If no name and password are specified
  354. in the Mail Login dialog box, or if they are incorrect, you will 
  355. receive error 17903 "MAPI login failure" in the Windows NT Event Log 
  356. and/or the SQL Server error log. 
  357.  
  358. Even if you don't use the Mail Login dialog box to save your Mail user 
  359. name and password, you must select the Copy SQLMail Configuration 
  360. From Current User Account option in the Mail Login dialog box to set up 
  361. SQLMail for the first time.
  362.  
  363. If Mail is already running on the workstation, SQL Server "piggybacks" 
  364. on that instance of Mail instead of starting one of its own.
  365.  
  366. Example:
  367. xp_startmail 'sqluser', 'sqlpassword'
  368.  
  369. Messages:
  370. Msg 17952 "Failed to start Microsoft Mail session. Check the errorlog 
  371. file in the SQL Server directory for details."
  372. The name and/or password you have typed (either in the Mail Login 
  373. dialog box, or as parameters to xp_startmail) could be incorrect. Check 
  374. that you are using the correct name and/or password and that you have 
  375. typed them correctly. Make sure that you can run a regular Microsoft 
  376. Mail session using that user name and password. Also make sure that 
  377. you have selected the Copy SQLMail Configuration From Current 
  378. User Account option in the  Mail Login dialog box after you have your 
  379. Microsoft Mail client session working.
  380.  
  381. "Microsoft Mail session is already started."
  382. A Microsoft Mail session is already started; SQL Server will not start 
  383. one of its own.
  384.  
  385. Permission:
  386. Execute permission defaults to the system administrator, who can grant 
  387. permission to others.
  388.  
  389. See Also:
  390. xp_sendmail, xp_stopmail
  391.  
  392. ----------------
  393. xp_stopmail
  394. Stops a SQL Server Microsoft Mail client session.
  395.  
  396. Syntax:
  397. xp_stopmail
  398.  
  399. Messages:
  400. Msg 17966 "Microsoft Mail session is not started."
  401. There is no existing SQL Server mail session to stop.
  402.  
  403. Permission:
  404. Execute permission defaults to the system administrator, who can grant 
  405. permission to others.
  406.  
  407. See Also:
  408. xp_sendmail, xp_startmail
  409.  
  410. -----------------
  411. xp_sendmail
  412. Sends a message, and/or a query result set, and/or an attachment to the 
  413. specified recipients.
  414.  
  415. Syntax:
  416. xp_sendmail @recipients, [@message] [, @query] [, @attachments] 
  417. [, @copy_recipients] [, @blind_copy_recipients] [, @subject] [, @type] 
  418. [, @attach_results] [, @no_output] [, @no_header] [, @width]
  419.  
  420. where
  421.  
  422. @recipients
  423. Is a required parameter specifying the names of the people you are 
  424. sending the mail to. If you specify more than one name, separate the
  425. names by semicolons (;).
  426.  
  427. @message
  428. Is an optional parameter that specifies the message to be sent. You 
  429. must specify @message, @query, or @attachments.
  430.  
  431. @query
  432. Is an optional parameter that specifies a valid SQL Server query, the 
  433. result of which will be sent in mail. You must specify @query, @message,
  434. or @attachments.
  435.  
  436. @attachments
  437. Is an optional parameter that specifies a file to attach to the mail. 
  438. You must specify @attachments, @query, or @message.
  439.  
  440. @copy_recipients
  441. Is an optional parameter that identifies other recipients you are 
  442. sending the mail to.
  443.  
  444. @blind_copy_recipients
  445. Is an optional parameter that identifies other recipients you are 
  446. sending a blind copy of the mail to.
  447.  
  448. @subject
  449. Is an optional parameter that specifies the subject of the mail. If you 
  450. do not specify a subject, "SQL Server Message" is used as the subject.
  451.  
  452. @type
  453. Is an optional parameter that sets a custom message type of the mail 
  454. message. Custom message types are of the form
  455.  
  456. IP<MIC>.VendorName.subclass
  457.  
  458. A message type beginning with IPM (interpersonal message) will appear 
  459. in the recipients' Inbox; a message type beginning with IPC will not 
  460. appear in the Inbox and must be read by a custom MAPI application. The 
  461. default is Microsoft Mail's IPM type. See the "Windows NT Resource Guide"
  462. or the "Microsoft Mail Technical Reference" (available separately) for 
  463. more information about using custom message types.
  464.  
  465. @attach_results
  466. Is an optional parameter that specifies that the results set of a query 
  467. should be sent in mail as an attached text file (.TXT) instead of 
  468. appended to the mail. The default association for a .TXT file is Notepad,
  469. but a different association can be specified using File Manager. 
  470. The default for this parameter is False, which means that the results 
  471. set is appended to the message.
  472.  
  473. @no_output
  474. Is an optional parameter that sends the mail but does not return any 
  475. output to the SQL Server client session that sent the mail. The 
  476. default value is False, which means that the SQL 
  477. Server client session receives output.
  478.  
  479. @no_header
  480. Is an optional parameter that sends the query results in mail but does 
  481. not send column header information with the query results. The default 
  482. is False, which means that column header information is sent with the 
  483. query results.
  484.  
  485. @width
  486. Is an optional parameter that sets the line width of the output text 
  487. for an @query message. This parameter is identical to the /w parameter 
  488. in ISQL. For queries that produce long output rows, use @width together 
  489. with @attach_results to send the output without line breaks in the 
  490. middle of output lines. The default width is 80 characters.
  491.  
  492. Remarks:
  493. The SQLMail session must be started prior to executing xp_sendmail. 
  494. Sessions can be started either automatically (using the Auto Start Mail 
  495. Client option in the Set Server Options dialog box of Setup) or with 
  496. xp_startmail. One SQLMail session supports all users on the SQL Server, 
  497. but only one user at a time can send a message. Other users will 
  498. automatically wait their turn until the first user's message is sent.
  499.  
  500. If @query is specified, xp_sendmail logs in to SQL Server as a client
  501. and executes the specified query. SQLMail makes a separate connection 
  502. to SQL Server; it does not share the same connection as the original 
  503. client connection that issued xp_sendmail. Note that the @query can be 
  504. blocked by a lock held by the client connection that issued xp_sendmail.
  505. For example, if you are updating a table within a transaction and you 
  506. create a trigger for that update that attempts to select the updated 
  507. row information as the @query parameter, the SQLMail connection will 
  508. be blocked by the exclusive lock held on that row by the initial client 
  509. connection. 
  510.  
  511. Examples:
  512. A. xp_sendmail 'user1', 'The master database is full.'
  513. This example sends a message to user1 that the master database is full.
  514.  
  515. B. xp_sendmail @recipients = 'user1;user2', @message = 'The master 
  516.     database is full.', @copy_recipients = 'user3;user4', 
  517.     @subject = 'Master Database Status'
  518. This example sends the message to user1 and user2, with copies sent to 
  519. user3 and user4. It also specifies a subject line for the message.
  520.  
  521. C. xp_sendmail 'user1', @query = 'sp_configure'
  522. This example sends the results of the stored procedure sp_configure 
  523. to user1.
  524.  
  525. D. xp_sendmail @recipients = 'user1', @query = 'select * from sysobjects', 
  526.     @subject = 'SQL Server Report', @message = 'The contents of sysobjects:', 
  527.     @attach_results = 'True', @width = 250
  528. This example sends the results of the query 'select * from sysobjects' 
  529. as a text file attachment to user1. It includes a subject line for the 
  530. mail and a message that will appear before the attachment. The @width 
  531. option is used to prevent line breaks in the output lines.
  532.  
  533. E. create table #texttab (c1 text)
  534.     insert #texttab values ('Put your long message here.')
  535.     declare @cmd varchar(56)
  536.     declare @tabname sysname(30)
  537.     select @tabname = name from tempdb.dbo.sysobjects
  538.         where name like '#texttab%' +
  539.         convert (varchar(5), @@spid) + '%'
  540.     select @cmd = 'select c1 from tempdb.dbo.' + @tabname
  541.     exec master.dbo.xp_sendmail
  542.         'user1', @query = @cmd, @no_header= 'True'
  543.     drop table #texttab
  544. This example shows how to send a message longer than 255 characters. 
  545. Because the @message parameter is limited to the length of a VARCHAR 
  546. (as are all stored procedure parameters), this example writes the long 
  547. message into a temporary table consisting of a single text column. The 
  548. contents of this temporary table are then sent in mail using  
  549. the @query parameter. The @query parameter makes a separate connection,
  550. so the name of the temporary table must be retrieved from the 
  551. sysobjects table in tempdb.
  552.  
  553. Messages:
  554. Msg 17914 "An invalid recipient was specified."
  555. One or more of the recipients you specified could not be found.
  556.  
  557. If SQL Server detects an error when executing the @query statement, you 
  558. will receive the full error message at the client, as if you had 
  559. executed the query directly. Possible errors include Msg 229 "SELECT 
  560. permission denied" and Msg 208 "Invalid object name." See the "Microsoft 
  561. SQL Server Transact-SQL Reference" for information on errors pertaining 
  562. to specific query statements.
  563.  
  564. Permission:
  565. Execute permission defaults to the system administrator, who can grant 
  566. permission to others.
  567.  
  568. See Also:
  569. xp_startmail, xp_stopmail
  570.  
  571. ------------------------------------------------------------------------
  572. Microsoft SQL Server Network Support
  573. ------------------------------------------------------------------------
  574.  
  575. *****Banyan(R) VINES(R) Support*****
  576.  
  577. Banyan VINES support for Windows NT-based clients and servers is 
  578. available only for SQL Server on the Intel platform; it is not 
  579. currently available on the MIPS or Alpha AXP platforms.
  580.  
  581. *****SQL Administrator Communication with SQL Monitor*****
  582.  
  583. SQL Administrator must communicate with SQL Monitor to complete tasks 
  584. such as scheduled backups. SQL Administrator uses configuration entries 
  585. to determine how to connect to SQL Monitor. If you use the default 
  586. Net-Library, SQL Administrator will usually be able to connect to 
  587. SQL Monitor using the defaults, and you will not need to adjust these 
  588. configuration entries. If you are connecting to SQL Server using a 
  589. logical server name (set up using the Advanced button of the SQL Client 
  590. Configuration Utility) you will need to configure these entries using a 
  591. text editor in Microsoft Windows(TM) or the Registry Editor in 
  592. Windows NT.
  593.  
  594. For clients running Windows, the SQL Server Setup program puts the 
  595. following default lines in the [SQLMONITOR] section of WIN.INI: 
  596.  
  597.     dbnmp3=?1:\\?1\pipe\winsql\backup
  598.     dbmsspx3=?1:?1_mon
  599.     dbmsvin3=?1@?2:?1_mon?2
  600.     dbmssoc3=?1,?2:?1,1434
  601.  
  602. For clients running Windows NT, the SQL Server Setup program puts the 
  603. following default REG_SZ values in the 
  604. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQLServer\Client\Monitor key 
  605. of the Windows NT Registry:
  606.  
  607.     dbnmpntw    ?1:\\?1\pipe\winsql\backup
  608.     dbmsspxn    ?1:?1_mon
  609.     dbmsvinn    ?1@?2:?1_mon?2
  610.     dbmssocn    ?1,?2:?1,1434
  611.  
  612. These entries describe the default rules for each Net-Library that 
  613. SQL Administrator uses to build a SQL Monitor connection string from 
  614. the SQL Server name. You can override these rules by using a 
  615. configuration entry that matches the SQL Server name. If 
  616. SQL Administrator finds an entry that matches the SQL Server name, it 
  617. will use that entry to attempt to connect to SQL Monitor. If no entries 
  618. match the SQL Server name, SQL Monitor will use the default rules.
  619.  
  620. To override the default rules for a specific SQL Server, directly 
  621. specify a SQL Monitor connection string using the following format:
  622.  
  623.     <servername>=<netlib_name>,<monitor_connection_string>
  624.  
  625.     where
  626.  
  627.     <servername>
  628.     Is the SQL Server name.
  629.  
  630.     <netlib_name>
  631.     Is the name of the Net-Library file (not including the .DLL
  632.     extension) used to communicate with SQL Monitor.
  633.  
  634.     <monitor_connection_string>
  635.     Specifies what value SQL Monitor is listening on.
  636.  
  637. For example, to use the default SQL Monitor named pipe when
  638. connecting to a SQL Server named GIZMO from Microsoft SQL 
  639. Administrator:
  640.  
  641.         gizmo=\\gizmo\pipe\winsql\backup
  642.  
  643. You can modify the default rules if they don't fit your environment. To 
  644. specify a rule for building the SQL Monitor connection string given a 
  645. specified SQL Server name, use the following format:
  646.  
  647.     <netlib_name>=<server_source_template>:<monitor_subst_template>
  648.  
  649.     where
  650.  
  651.     <netlib_name>
  652.     Is the name of the default Net-Library file (not including the .DLL
  653.     extension) used by the client.
  654.  
  655.     <server_source_template>
  656.     Is a string template for the SQL Server name. This template can
  657.     contain up to nine tagged expressions. Each tagged expression uses
  658.     the format:
  659.  
  660.         ?<n>[<string>]
  661.  
  662.         where
  663.  
  664.         <n>
  665.         Is a single digit 1 through 9.
  666.  
  667.         <string>
  668.         Is an optional case-sensitive string of zero or more
  669.         characters to be searched for in the SQL Server name. This
  670.         string terminates at the next '?' in the
  671.         <server_source_template> or at the end of the SQL Server name.
  672.  
  673.     The SQL Server name is parsed to build the tagged expressions.
  674.     All characters up to, but not including, <string> are included
  675.     in a tagged expression. Any subsequent portions of the
  676.     SQL Server name include <string>.
  677.  
  678.     For example, given the following <server_source_template>:
  679.  
  680.         ?1xxx?2
  681.  
  682.     If the specified SQL Server name is AAAxxxBBB, then the following
  683.     tags would be built:
  684.  
  685.         ?1 = AAA
  686.         ?2 = xxxBBB
  687.  
  688.     <monitor_subst_template>
  689.     Is the substitution template, used with the above tagged
  690.     expressions, to build the SQL Monitor connection string. This string
  691.     can contain tagged expressions using the format ?<n>.
  692.  
  693.     Each tagged expression is substituted with the corresponding
  694.     tags built from the <server_source_template>. Any characters
  695.     other than ?<n> are used directly to construct the SQL Monitor
  696.     connection string.
  697.  
  698.     Using the example above, and given the following
  699.     <monitor_subst_template>:
  700.  
  701.         ?1_mon@test_?2
  702.  
  703.     the resulting SQL Monitor connection string would be:
  704.  
  705.         AAA_mon@test_xxxBBB
  706.  
  707. *****TCP/IP Windows Sockets Client Support*****
  708.  
  709. For clients running Windows for Workgroups or Windows NT, 
  710. SQL Server supports client communication using standard 
  711. Windows Sockets as the IPC method across the TCP/IP protocol.
  712.  
  713. The following client Net-Library files, supported for connecting 
  714. only to Microsoft SQL Server, are provided with SQL Server:
  715.  
  716. - DBMSSOCN.DLL. Windows NT-based Windows Sockets client. 
  717.   The Windows Sockets Net-Library for Windows NT is supported 
  718.   on Windows NT Server version 3.5, Windows NT Workstation 
  719.   version 3.5, Windows NT Advanced Server version 3.1, and 
  720.   Windows NT version 3.1. 
  721.  
  722. - DBMSSOC3.DLL. Windows-based Windows Sockets client. The 
  723.   Windows Sockets Net-Library for Windows is supported on 
  724.   Windows for Workgroups version 3.11 with Microsoft TCP/IP 
  725.   for Windows for Workgroups version 1.0 and on Windows for 
  726.   Workgroups version 3.11 with the new Microsoft TCP/IP-32 for 
  727.   Windows for Workgroups 3.11.
  728.  
  729.   The Windows Sockets Net-Library for Windows is also supported 
  730.   on the Windows 3.1 environment (WOW) of Windows NT Server 
  731.   version 3.5, Windows NT Workstation version 3.5, Windows NT 
  732.   Advanced Server version 3.1, and Windows NT version 3.1
  733.  
  734.   Note: Windows clients running the new Microsoft TCP/IP-32 for 
  735.   Windows for Workgroups 3.11 stack and attempting socket 
  736.   connections to the server must upgrade to the newest 
  737.   DBMSSOC3.DLL, which is included with SQL Server version 4.21A.
  738.  
  739. - DBMSSOC.EXE. MS-DOS-based Microsoft TCP/IP socket client. The 
  740.   Microsoft TCP/IP socket Net-Library for MS-DOS is supported 
  741.   for MS-DOS-based applications running on Windows for Workgroups 
  742.   3.11 with Microsoft TCP/IP for Windows for Workgroups version 
  743.   1.0. It is not supported for the MS-DOS environment of Windows 
  744.   NT version 3.1, nor with the new Microsoft TCP/IP-32 for Windows 
  745.   for Workgroups 3.11 (because these environments support only the 
  746.   Windows Sockets specification).
  747.  
  748. The Windows Sockets Net-Libraries have been extensively tested on 
  749. the supported platforms for connecting to Microsoft SQL Server. 
  750. Support for other TCP/IP protocols that support Windows 
  751. Sockets is planned for future releases. Using these Net-Libraries 
  752. with other TCP/IP protocols or to connect to other than Microsoft 
  753. SQL Server has not been extensively tested, and 
  754. their use in these ways is not guaranteed. Any feedback you have 
  755. on the Windows Sockets Net-Libraries is welcome on the Microsoft 
  756. SQL Server (GO MSSQL) forum on CompuServe(R).
  757.  
  758. -----------------
  759. New TCP/IP-32 Protocol Stack for Windows for Workgroups Clients
  760.  
  761. A new client protocol stack, Microsoft TCP/IP-32 for Windows 
  762. for Workgroups 3.11, is distributed with Windows NT Server 
  763. version 3.5 (and will also be made available by Microsoft 
  764. from other distribution sources). It allows Windows for 
  765. Workgroups clients to upgrade to the improved 32-bit protected 
  766. mode stack and take advantage of new TCP/IP services provided 
  767. by Windows NT Server version 3.5 (such as the new DHCP and WINS 
  768. services).
  769.  
  770. Note: This protocol stack does not support the real-mode sockets 
  771. as implemented in earlier versions of TCP/IP for Microsoft LAN 
  772. Manager and Windows. All socket support is provided through the 
  773. Windows Sockets specification. Because of this, DBMSSOC.EXE 
  774. (the MS-DOS-based Microsoft TCP/IP socket client Net-Library) is 
  775. not supported in this configuration.
  776.  
  777. Windows clients running the new Microsoft TCP/IP-32 for 
  778. Windows for Workgroups 3.11 stack and attempting socket 
  779. connections to the server must upgrade to the newest 
  780. DBMSSOC3.DLL, which is included with SQL Server version 4.21A.
  781.  
  782. -----------------
  783. Simplified System Administration Using DHCP and WINS
  784.  
  785. Windows NT version 3.5 provides for easy administration 
  786. of large TCP/IP networks by offering the Dynamic Host 
  787. Configuration Protocol (DHCP) service for automatic TCP/IP 
  788. configuration, and the Windows Internet Name Service (WINS) 
  789. for dynamic mapping of network names and addresses. This 
  790. enables users to operate in large scale TCP/IP networking 
  791. environments with little administrative support. (For 
  792. information on configuring clients, see Client 
  793. Configuration, below.)
  794.  
  795. Note that to take advantage of the DHCP and WINS services 
  796. a Windows for Workgroups client must be using the new 
  797. TCP/IP-32 protocol stack and must have these services enabled.
  798.  
  799. -----------------
  800. Client Configuration
  801.  
  802. To configure a client running Windows or Windows NT to use 
  803. the Windows Sockets Net-Library, follow the steps under 
  804. "Setting Up Server Connections" in Chapter 3 of the Microsoft 
  805. SQL Server Configuration Guide (page 94). In the DLL Name box, 
  806. type the appropriate Windows Socket Net-Library name (DBMSSOCN for 
  807. Windows NT, DBMSSOC3 for Windows). The Connection String 
  808. uses the format:
  809.  
  810.    <ip_address>,[<socket_number>]
  811.  
  812. where <ip_address> is the IP address of the computer 
  813. running SQL Server, and <socket_number> is the optional 
  814. socket number that SQL Server is listening on.
  815.  
  816. It is also possible to configure a client running Windows 
  817. or Windows NT to use the Windows Sockets Net-Library by 
  818. default. From the SQL Client Configuration Utility, in 
  819. the Default Network box select TCP/IP Sockets. Using this 
  820. method, connections can be established by using the 
  821. <ip_address>,[<socket_number>] directly as the SQL Server 
  822. name, or by using a server name with the format:
  823.  
  824.    <host_name>,[<socket_number>]
  825.  
  826. where <host_name> is a TCP/IP host name that has been 
  827. defined in the client HOSTS file or on a Domain Name Service 
  828. (DNS), or is the machine name of a Windows NT Server 
  829. running SQL Server if WINS is enabled, and <socket_number> 
  830. is the optional socket number that SQL Server is listening 
  831. on. For a client running Windows for Workgroups, the HOSTS 
  832. file is located in the \WINDOWS directory by default. For 
  833. a client running Windows NT, the HOSTS file is located in 
  834. the \WINDOWS\SYSTEM32\DRIVERS\ETC directory by default. For 
  835. other TCP/IP protocols that support Windows Sockets, see 
  836. your TCP/IP documentation.
  837.  
  838. To configure a client running MS-DOS to use the Microsoft 
  839. TCP/IP sockets Net-Library, you use an environment variable 
  840. before loading the Net-Library TSR (DBMSSOC.EXE). The 
  841. environment variable <server> is a logical server name, 
  842. and is set using this format:
  843.  
  844.    set <server>=<ip_address>,[<socket_number>]
  845.  
  846. In all cases, if the <socket_number> is not specified, the 
  847. Net-Library uses 1433, the official Internet Assigned Number 
  848. Authority (IANA) socket number for Microsoft SQL Server. Because 
  849. this official IANA socket number was not available at the time, 
  850. SQL Server version 4.2 used a temporary TCP/IP 
  851. socket number of 3180 by default.
  852.  
  853. -----------------
  854. Memory Considerations Using TCP/IP for Windows for Workgroups Version 1.0
  855.  
  856. The Microsoft TCP/IP for Windows for Workgroups WINSOCK.DLL 
  857. requires 47K of low memory, 1.6K of low memory per socket 
  858. defined, and 32K of low memory per socket opened. If 
  859. available low memory becomes insufficient or fragmented, 
  860. you might see the error "There is not enough DOS memory 
  861. allocated for DOS buffers for all sockets" when attempting 
  862. to open a socket connection. If this error occurs, try closing 
  863. some applications, configuring your system to make more 
  864. conventional memory available, or reducing the number of 
  865. available sockets. Although Microsoft TCP/IP for Windows 
  866. for Workgroups supports up to 21 sockets, it is recommended 
  867. that you set this value to a realistic number of concurrent 
  868. SQL Server connections.
  869.  
  870. Note that this applies to clients using Microsoft TCP/IP for 
  871. Windows for Workgroups version 1.0. These considerations can 
  872. be avoided by upgrading to the new Microsoft TCP/IP-32 for 
  873. Windows for Workgroups 3.11.
  874.  
  875. *****Windows for Workgroups Clients on Novell NetWare Networks*****
  876.  
  877. Microsoft Windows for Workgroups version 3.11 enhances the network 
  878. integration available with Novell NetWare by offering peer network 
  879. functionality and connectivity to computers running Windows NT. 
  880. SQL Server clients running Windows for Workgroups can be configured 
  881. in several ways using the Network Setup application.
  882.  
  883. If only Windows support for Novell NetWare is installed (and Microsoft 
  884. Windows Network is not installed), then you are using the Novell NetWare 
  885. IPX protocol (IPXODI). This protocol supports SPX as the IPC method for 
  886. connecting to SQL Server. This means that you should use the SQL Client 
  887. Configuration Utility to set the default network to Novell IPX/SPX. 
  888. This configuration will allow Windows for Workgroups to use the IPX/SPX 
  889. Net-Library to connect to SQL Server for Windows NT running NWLink, and 
  890. to connect to SQL Server for OS/2 running the Microsoft Network 
  891. Integration Kit for Novell NetWare Networks.
  892.  
  893. If only the Microsoft Windows Network is installed (and Windows support 
  894. for Novell NetWare is not installed), you can still use IPX to 
  895. connect to SQL Server for Windows NT. Use the Drivers button to ensure 
  896. that the IPX/SPX Compatible Transport With NetBIOS network protocol 
  897. is installed. This IPX protocol is included with Windows for 
  898. Workgroups 3.11 and is similar to Windows NT NWLink. This protocol 
  899. supports named pipes as the IPC method for connecting to SQL 
  900. Server. This means that you should use the SQL Client Configuration 
  901. Utility to set the default network to Named Pipes. This 
  902. configuration will allow Windows for Workgroups to use the named 
  903. pipes Net-Library to connect to SQL Server running 
  904. NWLink. However, it will not connect to SQL Server for OS/2, because 
  905. Windows for Workgroups named pipes are not designed to interoperate 
  906. with Novell OS/2 Requestor named pipes.
  907.  
  908. If both the Microsoft Windows Network and Windows support for Novell 
  909. NetWare are installed, you can use either the named pipes or IPX/SPX 
  910. Net-Library to connect to SQL Server for Windows NT running NWLink, 
  911. or use the IPX/SPX Net-Library to connect to SQL Server for OS/2 running 
  912. the Network Integration Kit for Novell NetWare Networks.
  913.  
  914. It is recommended that the named pipes Net-Library be used, because 
  915. features such as integrated security and adjustable packet size are 
  916. available only with named pipes.
  917.  
  918. *****Updated Files Required for Windows for Workgroups 3.11-based Clients*****
  919.  
  920. Windows NT Server version 3.5 allows clients running Windows 
  921. for Workgroups version 3.11 to connect to the server via direct 
  922. host IPX.  However, a client running Windows for Workgroups 
  923. version 3.11 cannot establish named pipe connections over 
  924. NWLink to SQL Server on Windows NT Server version 3.5 unless 
  925. that client is provided with some updated Windows for 
  926. Workgroups files. These files include a new version of 
  927. the Windows for Workgroups redirector and other network 
  928. support files that provide improved performance. They are 
  929. distributed on the Windows NT Server version 3.5 CD, in the 
  930. \CLIENTS\WFW\UPDATE directory. The updated files are:
  931.  
  932.    NDIS.386
  933.    NET.EXE
  934.    NETAPI.DLL
  935.    NWNBLINK.386
  936.    VNETSUP.386
  937.    VREDIR.386
  938.  
  939. These files should be used only for Windows for Workgroups 
  940. version 3.11. They will allow named pipe connections to work 
  941. properly to Microsoft SQL Server over direct host IPX. To 
  942. install these new files on a computer running Windows for Workgroups:
  943.  
  944. 1. Copy all the files from the \CLIENTS\WFW\UPDATE directory 
  945.    on the Windows NT Server CD into the local C:\WINDOWS\SYSTEM 
  946.    directory of the Windows for Workgroups 3.11-based client.
  947.  
  948.    Note: Remember to use the Windows NT Server CD. The 
  949.    Microsoft SQL Server CD does not contain these files.
  950.  
  951. 2. On the Windows for Workgroups 3.11-based client, move 
  952.    the NET.EXE file from C:\WINDOWS\SYSTEM to C:\WINDOWS.
  953.    Because these files provide a general maintenance upgrade 
  954.    along with a number of fixes and improvements, copying 
  955.    the updated files is the preferred solution. However, 
  956.    there is an alternative solution. On any Windows for 
  957.    Workgroups 3.11-based client that does not have the 
  958.    updated files, you can edit the SYSTEM.INI file of the 
  959.    client to set:
  960.  
  961.       [network]
  962.       DirectHost=off
  963.  
  964. This allows that Windows for Workgroups 3.11-based client 
  965. to establish named pipe connections over NWLink to SQL Server 
  966. on Windows NT Server version 3.5.
  967.  
  968. *****Novell NetWare And Microsoft Windows 3.1 Software Patches*****
  969.  
  970. If you are experiencing occasional system hangs, black screens, frozen 
  971. mouse pointers, or EMM386 errors on your client workstations while 
  972. using SPX/IPX connections, several patches are available on CompuServe 
  973. to help eliminate or reduce the frequency of these problems.
  974.  
  975. The majority of these types of problems are solved by upgrading the Novell 
  976. client software. DOSUP9.EXE and WINUP9.EXE are distributed by 
  977. Novell in the Novell Software Library (GO NOVLIB).
  978.  
  979. A small percentage of these failures can be caused by a problem in the
  980. Windows virtual timing device. Microsoft is distributing a patch 
  981. (WW0863.EXE) for this problem in the Microsoft Software Library
  982. (GO MSL).
  983.  
  984. *****OS/2 2.1 Network Client Support*****
  985.  
  986. Installation of Microsoft LAN Manager version 2.2, IBM(R) LAN Server 
  987. version 2.0 (Entry System), or IBM LAN Server version 3.0 on 
  988. OS/2 2.1-based workstations is required to enable the use of named pipe 
  989. client connections. With these versions, named pipe clients are 
  990. supported in both native OS/2 2.1 and DOS-OS/2 environments.
  991.  
  992. Installation of the Novell NetWare Requester for OS/2 version 2.01
  993. on OS/2 2.1-based workstations is required to enable the use of IPX/SPX 
  994. client connections. With this version, IPX/SPX clients are supported in 
  995. both native OS/2 2.1 and DOS-OS/2 environments.
  996.  
  997. Installation of the Banyan VINES version 5.52(5) client software on 
  998. OS/2 2.1-based workstations is required to enable the use of VINES SPP 
  999. client connections. With this version, VINES SPP clients are supported 
  1000. in both native OS/2 2.1 and DOS-OS/2 environments.
  1001.  
  1002. It is recommended that you run Windows-based SQL Server client 
  1003. applications in their native environment, on Microsoft Windows 
  1004. version 3.1. However, Windows-based applications that access SQL Server
  1005. using named pipes will run on OS/2 version 2.1 if you are 
  1006. using Microsoft LAN Manager version 2.2 or IBM LAN Server version 3.0.
  1007. Internal testing has found the WIN-OS/2 environment to be unstable 
  1008. with other networking software.
  1009.  
  1010. ------------------------------------------------------------------------
  1011. Microsoft SQL Server for Windows NT Tools Enhancements
  1012. ------------------------------------------------------------------------
  1013.  
  1014. *****SQL Transfer Manager*****
  1015.  
  1016. Microsoft SQL Server version 4.21 includes 
  1017. SQL Transfer Manager. SQL Transfer Manager provides an easy, graphical 
  1018. way to transfer objects and data from a Microsoft-based SQL Server or a 
  1019. SYBASE(R)-based SQL Server to Microsoft SQL Server for Windows NT. (For
  1020. example, transferring data from Microsoft SQL Server running on an 
  1021. Intel-based server to a SQL Server on a different architecture, or 
  1022. transferring data from a SYBASE SQL Server on UNIX(R).) 
  1023.  
  1024. You can also use this tool to transfer data from a server with one sort 
  1025. order to a server with a different sort order. Note, however, that this 
  1026. tool does not convert extended characters, so you cannot use it for 
  1027. conversion from one code page to another. 
  1028.  
  1029. For detailed information about using SQL Transfer Manager, see the 
  1030. online Help provided with the utility.
  1031.  
  1032. *****SQL Administrator Compatibility*****
  1033.  
  1034. Although the version of SQL Administrator that runs against SQL Server 
  1035. for OS/2 4.2/4.2A will also work against SQL Server for Windows NT, 
  1036. it is recommended that you upgrade SQL Server client tools on any 
  1037. Windows 3.1-based clients that you plan to run against SQL Server for 
  1038. Windows NT. This enables you to use additional tools and features 
  1039. available with SQL Server for Windows NT (such as SQL Object Manager, 
  1040. ISQL/w, and the SQL Client Configuration Utility). SQL Server for OS/2 
  1041. version 4.2B contains these tools (version 4.2/4.2A does not). You can 
  1042. upgrade your tools to the very latest version, 4.21A, by using the 
  1043. Windows 3.1 Utilities disk provided with this release of SQL Server for 
  1044. Windows NT. If you use the Utilities disk, you must also upgrade the 
  1045. existing SQL Server for OS/2 installation if it is not version 4.2B 
  1046. (for example, it is  version 4.2 or 4.2A) by running INSTMSTR.SQL, 
  1047. INSTCAT.SQL, ADMIN2.SQL, and OBJECT2.SQL, which are found in the 
  1048. \SQL\INSTALL directory of the SQL Server for Windows NT installation.
  1049.  
  1050. *****SQL Monitor Enhancements*****
  1051.  
  1052. -----------------
  1053. SQL Monitor and Changing the SA Password
  1054.  
  1055. If you change the SA password in SQL Server and want to start 
  1056. SQL Monitor as a service (instead of starting SQL Monitor from the 
  1057. command line), you must change the SA password in SQL Monitor as 
  1058. well. To do this, use the /NEWPASSWORD = parameter in netsql start 
  1059. sqlmonitor. For example:
  1060.  
  1061. netsql start sqlmonitor /NEWPASSWORD=sqlsa
  1062.  
  1063. Note that starting SQL Monitor with the password parameter (/P=) 
  1064. overrides the set SA password.
  1065.  
  1066. -----------------
  1067. SQL Monitor is Now Mail Enabled
  1068.  
  1069. If you have configured SQL Server to be mail enabled, 
  1070. SQL Monitor can send mail messages to specified recipients about 
  1071. scheduled backup events. Use the Scheduled Backup Event Entry dialog 
  1072. box in SQL Administrator to specify a list of recipients. You can 
  1073. specify up to 60 characters; separate names by semicolons(;). After you 
  1074. have specified a list of recipients, those people will be sent mail 
  1075. whenever a backup occurs.
  1076.  
  1077. *****SQL Administrator Scheduled Backups*****
  1078.  
  1079. -----------------
  1080. Transaction Log Backups
  1081.  
  1082. In previous versions of SQL Administrator, when SQL Monitor attempted 
  1083. to perform a scheduled backup for a transaction log and SQL Monitor 
  1084. terminated sometime during the process, SQL Monitor would dump the 
  1085. transaction log again when restarted, regardless of whether the previous 
  1086. backup was successful. This posed a problem because SQL Monitor would 
  1087. overwrite the previous transaction log dump, even though it might have 
  1088. completed, so the chain of transaction log backups would be incorrect. 
  1089. To solve this problem, SQL Monitor now handles failure during a 
  1090. transaction log dump in the following order:
  1091.  
  1092. 1. SQL Monitor records a dump in progress while it is dumping the 
  1093. transaction log.
  1094.  
  1095. 2. If SQL Monitor fails and then starts up again and sees that a dump 
  1096. was in progress, but it does not know whether that dump completed, 
  1097. SQL Monitor records an error to the Event Log and also sends a mail 
  1098. message about the failure to a list of recipients (if SQL Server is mail 
  1099. enabled and SQL Administrator is set up to send messages to a list 
  1100. of recipients).
  1101.  
  1102. 3. Further dumps of the transaction log are suspended. After the user 
  1103. either dumps the full database or determines that the transaction log 
  1104. dump is complete, the user must reactivate the scheduled transaction 
  1105. log dumps. (This is done by selecting Yes under Enable in the Scheduled 
  1106. Backup Event Entry dialog box. )
  1107.  
  1108. Note that if the scheduled backup is a database backup, steps 1 and 2 
  1109. are followed, and the schedule for database backups will continue as is 
  1110. and not be disabled.
  1111.  
  1112. -----------------
  1113. Performing Long Scheduled Backups
  1114.  
  1115. If you are using SQL Administrator to perform scheduled backups of large 
  1116. databases (for example, those greater than 100 megabytes), you will likely 
  1117. need to increase the SQL Monitor /sqltimeout option to a length of time 
  1118. long enough to complete the backup.
  1119.  
  1120. *****SQL Object Manager and BCP*****
  1121.  
  1122. SQL Object Manager version 4.2 used bulk copy files based on the ANSI 
  1123. character set if AutoANSItoOEM was turned on, or based on the character 
  1124. set of the SQL Server if AutoANSItoOEM was turned off. The character 
  1125. mode BCP.EXE versions 4.20 and 4.21 utilities use bulk copy files based 
  1126. on the character set of the SQL Server. With version 4.21, 
  1127. SQL Object Manager now uses the OEM character set. If you used 
  1128. SQL Object Manager version 4.2 with AutoANSItoOEM turned on to bulk 
  1129. copy out character data that contained extended characters (character 
  1130. positions 128-255), the file is based on the ANSI character set; if you 
  1131. bulk copy the files back in using SQL Object Manager version 4.21, 
  1132. these extended characters will be converted incorrectly.
  1133.  
  1134. *****Additional Information About Database Backups*****
  1135.  
  1136. -----------------
  1137. Database Names When Dumping and Loading
  1138.  
  1139. When you dump a database to tape, only the first 17 characters of the 
  1140. database name are stored. If the database name is longer than 17 
  1141. characters and you try to restore the database, you will receive an 
  1142. error message indicating that the names are different. For this reason, 
  1143. it is recommended that you limit database names to 17 characters if you 
  1144. plan to back them up to tape. If you are using SQL Administrator to 
  1145. restore the database, you can choose to continue, even if the names are 
  1146. different, as long as you're sure that the actual databases are the 
  1147. same. If you are using ISQL, however, the restore process will be 
  1148. terminated.
  1149.  
  1150. -----------------
  1151. Performing Multivolume Backups Using a QIC Tape Drive
  1152.  
  1153. If you are using a QIC tape drive to perform multivolume dump or load 
  1154. operations using ISQL, you must have the console program running. 
  1155. Do not use a batch operation to perform multivolume tape operations 
  1156. with this drive.
  1157.  
  1158. *****Additional Information about BCP and ISQL*****
  1159.  
  1160. -----------------
  1161. Default Packet Size in ISQL and BCP
  1162.  
  1163. The documentation for the /a packet_size parameter of ISQL and BCP 
  1164. gives an incorrect value for default packet size. The correct default 
  1165. packet size for ISQL is 512. The correct default packet size for BCP on 
  1166. Windows NT is 4096; on MS-DOS and OS/2, the default packet size is 512.
  1167.  
  1168. -----------------
  1169. BCP Out
  1170.  
  1171. In addition to the BCP support documented in the "Microsoft SQL Server 
  1172. Transact-SQL Reference," the BCP utility now also supports copying 
  1173. data out of a view. This feature allows you to copy specific columns, 
  1174. add a WHERE clause, or perform special formatting such as changing 
  1175. data formats using the CONVERT function.
  1176.  
  1177. ------------------------------------------------------------------------
  1178. Cache Management Improvements
  1179. ------------------------------------------------------------------------
  1180. A new system process, Lazywriter, has been added to Microsoft SQL Server 
  1181. version 4.21. The Lazywriter's main task is to flush out 
  1182. batches of dirty, aged buffers (buffers that contain changes that must 
  1183. be written back to disk before the buffer can be reused for a different 
  1184. page) and make them available to user processes.
  1185.  
  1186. Previously, individual processes would search the data cache for an 
  1187. available buffer. If a clean buffer (a buffer that remained unchanged 
  1188. since the last read from disk) was not found, the user process would 
  1189. select a dirty buffer and be required to flush the contents of the 
  1190. buffer to disk before claiming it. In the case where most buffers in 
  1191. the data cache were dirty (due to extensive update activity), the 
  1192. overhead of searching for free data buffers and having to individually 
  1193. flush dirty buffers to disk caused degradation in performance. One way 
  1194. of avoiding this problem previously was to reduce the recovery interval 
  1195. and have checkpoint flush the buffer cache in batches more often so that
  1196. individual processes wouldn't have to do it one at a time.
  1197.  
  1198. With the introduction of Lazywriter, the need to checkpoint 
  1199. frequently for the purpose of creating available buffers has been 
  1200. eliminated. The batch I/O size used by Lazywriter can be set by the
  1201. max async io parameter of sp_configure. This parameter controls both 
  1202. the checkpoint's and Lazywriter's batch I/O size, and it can be tuned 
  1203. to maximize the I/O throughput for specific hardware platforms and I/O 
  1204. subsystems.
  1205.  
  1206. The Lazywriter process automatically starts flushing buffers when the 
  1207. number of available free buffers falls below a certain threshold, and it 
  1208. stops flushing buffers when this number goes ~5-6% above the threshold.
  1209. This threshold value is specified as a percentage of the total number 
  1210. of buffers in the buffer cache. The default threshold is set to 3% of 
  1211. the buffers in the data cache and should be sufficient in most situations.
  1212. However, if necessary, the Lazywriter threshold can be modified using 
  1213. the BLDMASTR utility with the -y switch, as follows:
  1214.  
  1215. bldmastr -dc:\sql\data\master.dat -yLRUThreshold=<x>
  1216.  
  1217. where x is a percentage of the size of the data cache (values 
  1218. between 1 and 40 are valid).
  1219.  
  1220. ***CAUTION: Be careful to type the command exactly as shown. The 
  1221. command should complete nearly immediately and not prompt for any 
  1222. input whatsoever. If you are prompted for input, you have made a 
  1223. syntactic error. Use CTRL+C to terminate the utility immediately. 
  1224. INCORRECT USE OF THE BLDMASTR UTILITY CAN INADVERTENTLY CHANGE 
  1225. YOUR MASTER DATABASE. The LRUThreshold argument is case-sensitive.
  1226.  
  1227. Because cache management has been enhanced, some meanings of the 
  1228. SQL Server counters in the Performance Monitor have changed. For the 
  1229. most up-to-date definitions of the SQL Server performance counters, 
  1230. see the Explain text in the Performance Monitor.
  1231.  
  1232. ------------------------------------------------------------------------
  1233. Enhanced NOCOUNT option of the SET statement
  1234. ------------------------------------------------------------------------
  1235. Previously, even if the NOCOUNT option of the SET statement was set (so 
  1236. that no messages about the number of rows affected by a SQL statement 
  1237. were displayed in a client session), the messages were still being sent 
  1238. across the network. For this release, the NOCOUNT option has been 
  1239. enhanced so that when it is set, no row count messages are sent across 
  1240. the network at all. This can reduce network traffic when executing a 
  1241. stored procedure containing a large number of SQL statements across a 
  1242. wide area network (WAN) or when using remote access or dial-up networks.
  1243.  
  1244. You can use this option from within a trigger or a stored procedure, or 
  1245. you can set it on a user basis. The system administrator can also set 
  1246. this option server-wide by using the trace flag 3640 when starting 
  1247. SQL Server. Note that when you use this trace flag, even if a client 
  1248. session wants to see the rows affected messages, the messages will 
  1249. not be sent.
  1250.  
  1251. -------------------------------------------------------------------
  1252. Acknowledgments
  1253. -------------------------------------------------------------------
  1254. Information in this document is subject to change 
  1255. without notice. Companies, names, and data used in 
  1256. examples herein are fictitious unless otherwise 
  1257. noted. No part of this document may be reproduced or 
  1258. transmitted in any form or by any means, electronic 
  1259. or mechanical, for any purpose, without the express 
  1260. written permission of Microsoft Corporation.
  1261.  
  1262. ⌐1990-1994 Microsoft Corporation. All rights reserved.
  1263.  
  1264. Microsoft, MS, Windows, Windows NT and Win32 are 
  1265. either registered trademarks or trademarks of Microsoft 
  1266. Corporation in the United 
  1267. States and/or other countries. 
  1268.  
  1269. Alpha AXP is a trademark of Digital Equipment Corporation.
  1270. Apple is a registered service mark of Apple Computer, Inc.
  1271. AppleTalk is a registered trademark of Apple Computer, Inc.
  1272. Banyan is a registered trademark of Banyan Systems, Inc.
  1273. DECnet is a trademark of Digital Equipment Corporation.
  1274. IBM is a registered trademark of International Business 
  1275. Machines Corporation.
  1276. Intel is a registered trademark of Intel Corporation.
  1277. Macintosh is a registered trademark of Apple Computer, Inc.
  1278. MIPS is a registered trademark of MIPS Computer Systems, Inc.
  1279. NetWare is a registered trademark of Novell, Inc.
  1280. Novell is a registered trademark of Novell, Inc.
  1281. SQL Server is a trademark of Microsoft Corporation. 
  1282. SYBASE is a registered trademark of Sybase, Inc.
  1283. VINES is a registered trademark of Banyan Systems, Inc.
  1284. VMS is a trademark of Digital Equipment Corporation.
  1285. UNIX is a registered trademark of UNIX Systems Laboratories.
  1286.  
  1287.