... with any protocol, the client and the server must be configured to use TCP/IP ToconnecttoSQLServer using an IP address, the TCP/IP network library must be used toconnectto the SQLServer This ... libraries for SQLServer 2000 include: AppleTalk ADSP Allows Apple Macintosh to communicate with SQLServer using native AppleTalk protocol Banyan VINES Supports Banyan VINES Sequenced Packet Protocol ... + Environment.NewLine + "ServerVersion = " + conn.ServerVersion + Environment.NewLine; conn.Close( ); resultTextBox.Text += "ConnectionState = " + conn.State; } Discussion SQLServer network libraries...
... both IIS and SQLServer computers In addition to the areas identified where IIS and SQLServer are on the same computer, the following additional items must be configured if the SQLServer is on ... has limited permissions and is local to the IIS computer and therefore not recognized as a user on remote computers To overcome this limitation when SQLServer is not on the same computer as ... mapped domain user has required privileges to run the web application Configure the web application to impersonate the domain user Add the following elements to the web.config file for the web application:...
... } #Close the connection $sth->finish(); $dbh->disconnect(); Unix If you are running your Perl script on a Unix platform, the DBD::Sybase package is required toconnectto a SQLServer database ... set up in advance To set up a System DSN you can access it at Control Panel > Administrative Tools > Data Sources To use your System DSN to connect, you simply need to alter the connect string in ... "Provider=sqloledb;Trusted Connection=yes;"; $dsn = "Server= $host;Database=$database"; my $dbh = DBI- >connect( "dbi:ADO:$dsn", $user, $auth, { RaiseError => 1, AutoCommit => 1} ) || die "Database connection...
... you’re working with many lines at once), you can return to the previous (mistyped) command in your history and then edit the command sequence using vi-style command- line editing You can also ... SCRIPTING FROM THE COMMANDLINE The last example is something I fairly regularly I often want to gather information from each system named in a list of machines This example shows how to get the ... touch $i$j$k > done > done > done I’ve used this type of script to create large numbers of empty files in a directory It is the result of an effort to test a monitor script that is supposed to...
... switches to open files stored on your computer's hard drive, not files that are stored in Outlook's folders In many cases, the following group of commands is more appropriate to use to programmatically ... /c IPM.Note.MyForm See Chapter 20, "Creating Custom Forms," to learn how to create and publish custom forms You can combine the /a and /c switches to open a form and add an attachment: "C:\Program ... way for the user to add an email address to a message You can use an email address or any resolvable name or distribution list in your address book Use it with the /c command- line parameter as...
... shows how to use of mixture of home-grown scripts, native SQLServer tools, and tools from the Red Gate SQL toolbelt (such as SQL Compare, SQL Source Control, SQL Prompt, and so on), to successfully ... equivalent tool to refactor the naming of all your SQL objects to conform to a given standard (though SQL Refactor will help you with renaming tables) Naming has to be done right, from the start ... you'll need access to any edition of SQLServer 2005 or later (except Compact Edition) A 2008 copy of SQLServer Express Edition, plus associated tools, can be downloaded for free from: http://www.microsoft.com/...
... Microsoft SQLServer equivalents Function Oracle Microsoft SQLServer Number to character TO_ CHAR CONVERT Character to number TO_ NUMBER CONVERT Date to character TO_ CHAR CONVERT Character to date TO_ DATE ... SQLServer Books Online Top of page Tuning Transact -SQL Statements This section provides information about several SQLServer tools you can use to tune Transact -SQL statements Microsoft SQLServer ... login accounts can be used toconnectto an instance of SQLServer 2000 Users logged in to Windows using these accounts can connecttoSQLServer 2000 without having to specify a separate database...
... Options How to Extract Information from an Image How to get Brief Information from Images How to get Detailed Information from Images How to get Customized Information from Images How to Get Information ... to Install from UNIX- like Binary Releases 17 17 How to Install from a Windows Binary Release How to Install ImageMagick from Source Installing from a UNIX- like Source 18 21 22 How to Verify the ... ImageMagick 199 How to call ImageMagick Command- line Utilities within PHP code How to Save the Result of an Online Image Processing Task How to Start Sessions for our Visitors Building a Confirmation-Code...
... Before you Create any Maintenance Plans… 29 How to Configure Database Mail 30 How to Configure a SQLServer Agent Operator 43 Summary 46 Chapter 3: Getting ... Guide toSQLServer Maintenance Plans By Brad M McGehee First published by Simple Talk Publishing 2009 Copyright Brad M McGehee 2009 ISBN 978-1-906434-33-5 The right of Brad M McGehee to be identified ... who does any unauthorized act in relation to this publication may be liable to criminal prosecution and civil claims for damages This book is sold subject to the condition that it shall not, by...
... 10: Execute SQLServer Agent Job Task 135 An Overview of the Execute SQLServer Agent Job Task .135 When and How Often to Run the Custom Job 137 Creating SQLServer Agent ... Overview of the History Cleanup Task 141 When and How Often to Clean Up MSDB 143 Configuring the History Cleanup Task 143 Selecting the Historical Data to Delete ... Configuring the Execute SQLServer Agent Job Task 138 Selecting the Job 138 Creating the Job Schedule 139 Summary 140 Chapter 11: History Cleanup Task...
... Microsoft SQLServer MVP, and was the founder of the popular community site SQL- Server- Performance.Com, which he operated from 2000 through 2006, writing over one million words on SQLServer topics ... Server topics Brad is a frequent speaker at SQL PASS, European PASS, SQL Connections, SQLTeach, devLINK, SQLBits, SQL Saturdays, TechFests, Code Camps, SQLServer user groups, and other industry seminars ... include How to Become an Exceptional DBA (2nd Edition), Brad's Sure Guide toSQLServer 2008, and Mastering SQLServer Profiler, all of which are available in PDF format at: http://www.sqlservercentral.com/Books/...
... Wizard is one of two tools that SQLServer provides to create Maintenance Plans A note on terminology SQLServer uses the term "Maintenance Plan" (note the capitalization) to refer to a database maintenance ... prepared to invest If an organization doesn't have the resources (or isn't willing to expend them) then, up to a point, it has to accept slower performance and lower availability from its SQL Servers ... the OS, and the physical box on which SQLServer runs Every part of the larger SQLServer environment needs to be carefully managed and maintained in order to assure a high level of performance...
... alien to many DBAs On top of this, the DBA still needs to know T -SQL and SQLServer internals, as well as SQLServer Management Objects (SMO), and the OS Object Model (assuming you decide to take ... version of SQLServer is released your scripts may need to be modified (sometimes substantially) to work with the new version Finally, aside from third-party tools, there is no easy way to automate ... an example of how to use T -SQL to create your own maintenance plans, should you decide to write your own T -SQL code to enhance your Maintenance Plans In addition, the Designer tool has the following...
... Maintenance Important? Remove Older Data from msdb The SQLServer msdb database stores historical data about various activities, such as details about backups, SQLServer Agent jobs, and Maintenance ... backup files, your SQLServer' s hard drives will quickly fill up, causing all sorts of problems It is the job of the DBA to ensure that unneeded backups are removed from a SQLServer on a regular ... are good and can be restored 27 Chapter 1: Why is Database Maintenance Important? • monitoring performance • monitoring SQLServer and operating system error messages • monitoring remaining disk...
... one or more SMTP accounts that can be used by SQLServerto send messages In other words, when SQLServer wants to send a message, the message is sent to the profile, and then the profile is responsible ... administrator for the SMTP settings, you also need to request that a special e-mail account be set up for use by SQLServer For example, you might have an account set up called sqlserver@myorganization.com ... own e-mail address, just in case someone should respond to an e-mail received fromSQLServer • Server name – the name of the SMTP mail server It generally looks something like mail.myorganization.com...
... (with access to msdb) to send mail To keep your setup as simple as possible, make the Maintenance Plan profile public, by selecting the checkbox under Public then clicking Next to move on to the Configure ... made to send an e-mail If the SMTP server should be down when an e-mail is to be sent, and there are no alternative SMTP accounts available, then the e-mail won't be delivered If you want to add ... to add some robustness to Database Mail, and help ensure that the mail is delivered should the SMTP server go down for a short time, you can choose to increase this value to a higher number, such...
... open SSMS, navigate to the SQLServer instance you wish to configure, open up the SQLServer Agent folder, navigate to the Operators folder, right-click on it and select New Operator, as shown in ... we need to learn how to create them, because a Maintenance Plan cannot be configured to use an operator until the operator has first been created and configured To create a new operator, open ... able to enter an e-mail address directly into the Maintenance Plan Instead, we configure e-mails to be sent to an operator 43 Chapter 2: Before you Create any Maintenance Plans… An operator is...
... Potential of the Wizard If you decide to use the Maintenance Plan Wizard to create Maintenance Plans for a given server or set of servers, my advice would be to take advantage of as many of its ... The contents of the Management folder vary between SQLServer 2005 and SQLServer 2008 However, in either version, any current plans will be stored in the Maintenance Plans subfolder If it's empty, ... don't perform all the tasks you want them to perform, then you may want to delete them and start from scratch Often, starting over is easier to than trying to fix ill-conceived Maintenance Plans...
... want to use, you will have to delete your existing Maintenance Plan and recreate it from scratch (or you could correct the problem with the Maintenance Plan Designer, but it's a lot of work) To ... While we will discuss why it is not a good idea to automatically shrink a database in Chapter 6, the point to keep in mind is that, if you ever need to shrink a database, it should be done manually ... prevents the potential problem of overlapping tasks, which could result in your SQLServer slowing down This is harder to achieve using the Separate schedules for each task covered next, but it can...
... available to us from within the Maintenance Plan Wizard, let's take a closer look at the Select Maintenance Tasks screen, which allows you to select the specific maintenance tasks that you'd like to ... (see Chapter 17) However, if you want to use the Maintenance Plan Wizard exclusively to delete all three file types, you must create three different plans to accomplish your goal Selecting Core ... but we don't have it So, what is the best way to delete old BAK, TRN, and TXT files? One way is to use the Maintenance Plan Designer, which allows you to create three separate subplans that will...