Search
647 articles

Database

SQL Server, MySQL and Oracle database design, queries, backup and performance tutorials.

Related sections: WebsiteWindows AzureWindows Phone

How to Fix Left Truncation, ConceptuallyFigure 1 shows several customers throughout time, on the line of time of calendar. Two dates are accentuated; the more is the left date of truncation early and the more is the day of the…Mar 17, 2015Oracle SOA Suite 11g R1 : Unit-testing the Composite Application - Automated unit testing (part 5) - Testing the applicationAfter the test has completed, the Test Runs tab opens. Select Search if your test run is not showing. You see that the overall status is marked as FailedFeb 17, 2015Oracle SOA Suite 11g R1 : Unit-testing the Composite Application - Automated unit testing (part 4) - Setting the assertion for failureFor Assert Value enter 9999. Normally you set the assert value to what you expect the value to be but this example is to show you what happens when your test fails. You know this…Feb 17, 2015Oracle SOA Suite 11g R1 : Unit-testing the Composite Application - Automated unit testing (part 3) - Setting the simulated message, Setting the assertion for successClick on Generate Sample to have a sample response created automatically for you and edit the XML fragment to change the response value to VALID to simulate what the web service would…Feb 17, 2015Oracle SOA Suite 11g R1 : Unit-testing the Composite Application - Automated unit testing (part 2) - Setting the inbound messageIn the Initiate Messages dialog that appears, insert the following payload (copy from the c:\po\input\po-unittest.txt file).Feb 17, 2015Oracle SOA Suite 11g R1 : Unit-testing the Composite Application - Automated unit testing (part 1) - Creating the unit testNotice that the composite view changes slightly to show you are in Unit Test creation mode now. The swim lanes on the left and right are yellow. You can return to the normal composite…Feb 17, 2015SQL Server 2012 : Using SQLdiag Configuration Manager (part 4) - Adding Your Own Custom Collectors,Saving and Using a SQLdiag ConfigurationNow that you know how to configure the SQLdiag collection based on the data you need to collect, this section describes how to save the configuration package, as this tool was released…Feb 1, 2015SQL Server 2012 : Using SQLdiag Configuration Manager (part 3) - Feature-Specific Custom Diagnostics, Capturing Extended EventsThe Diag Manager also provides you with some feature-specific custom collectors that can be very helpful when you are troubleshooting a particular SQL Server scenario or feature.Feb 1, 2015SQL Server 2012 : Using SQLdiag Configuration Manager (part 2) - Backing Up Diagnostic Data Already Available, Analysis Services Custom CollectorsNormally, Profiler trace filters are added to a SQL Server data collection to reduce the amount of diagnostic data that is collected by SQLdiag.Feb 1, 2015SQL Server 2012 : Using SQLdiag Configuration Manager (part 1) - Configuring SQLdiag Data Collection Using Diag ManagerIf you forget to select the platform or the SQL Server version and need to make a change later or post the customizations made, you will lose any changes made and the options will…Feb 1, 2015SQL Server 2012 : Native File Streaming - Storing and Retrieving FILESTREAM DataTo start, you’ll use plain T-SQL to cast simple string data into and out of the varbinary(max) data type of the Photo column.Jan 20, 2015SQL Server 2012 : Native File Streaming - Creating a FILESTREAM-Enabled DatabaseBehind the scenes, SQL Server will store all your pictures as files in the Photos subdirectory, and will transparently associate those files and the relational tables that they logically…Jan 20, 2015SQL Server 2012 : Native File Streaming - Enabling FILESTREAMLike many other features, FILESTREAM is disabled by default in SQL Server 2012, and you must first enable it before the feature can be used. Enabling FILESTREAM is slightly more involved…Jan 20, 2015SQL Server 2012 : Native File Streaming - Traditional BLOB Strategies, Introducing FILESTREAMPrior to SQL Server 2008, there were two traditional solutions for combining structured table data with unstructured BLOB data: either keep BLOBs in the database (with all your…Jan 20, 2015SQL Server 2012 : Other PerfMon Log Analysis Tools - Using SQL Server to Analyze PerfMon LogsAnalyzing large quantities of performance logs with SQL Server can be a useful solution when data analysis through other methods could be cumbersome and labor intensive.Jan 20, 2015SQL Server 2012 : Performance Analysis of Logs - Getting Started with PALThe Performance Analysis of Logs (PAL) tool is a free utility for analyzing PerfMon counter logs and creating reports highlighting important areas by severity. The report color-codes…Jan 20, 2015SQL Server 2012 : Getting More from Performance Monitor (part 2) - Disk or Storage-Related Problems, SQL Server Performance ProblemsSometimes server hardware resources do not cause bottlenecks, but application performance is still bad. In this situation, it’s possible that internal SQL Server resources can become…Jan 20, 2015SQL Server 2012 : Getting More from Performance Monitor (part 1) - Investigating CPU Problems, Investigating Memory-Related ProblemsThe availability of CPU cycles to service SQL Server in a timely manner is critical to database server performance. Configuration-based CPU bottlenecks may include max degree of…Jan 20, 2015SQL Server 2012 : Performance Monitor Overview (part 5) - Remotely Running PerfMonLike many server management tools, an instance of PerfMon can be connected to a remote server for remote monitoring. This avoids the need to connect via Remote Desktop and may reduce the…Jan 4, 2015SQL Server 2012 : Performance Monitor Overview (part 4) - Working with Data Collector SetsUser-defined Data Collector Sets in Windows Server 2008 replace the Performance Logs and Alerts from Windows 2000/2003 but the principle is the sameJan 4, 2015SQL Server 2012 : Performance Monitor Overview (part 3) - Getting Started with PerfMon - Monitoring Real-Time Server Activity, Starting Out with Data Collector SetsPerfMon is a component of Reliability and Performance Monitor which can be launched from Start ⇒ All Programs ⇒ Administrative Tools. Alternatively, just type perfmon into the Run box…Jan 4, 2015SQL Server 2012 : Performance Monitor Overview (part 2) - New PerfMon Counters for SQL Server 2012As shown in Table 1, a number of new PerfMon counters are available in SQL Server 2012. Some of these provide logging for new features such as AlwaysOn and FileTable, and some are more…Jan 4, 2015SQL Server 2012 : Performance Monitor Overview (part 1) - Reliability and Performance MonitorPerfMon in Windows Server 2008 brings a new look and a new name for the parent snap-in, Reliability and Performance Monitor, although real-time performance monitoring retains the PerfMon…Jan 4, 2015SQL Server 2012 : Knowing Tempdb - Configuration Best Practices (part 2) - Tempdb Initial Sizing and Autogrowth , Configuring Multiple Tempdb Data FilesA default installation of any SQL Server edition will create a tempdb database with an 8MB data file and a 1MB transaction log file. For a lot of SQL Server installations these file…Jan 4, 2015SQL Server 2012 : Knowing Tempdb - Configuration Best Practices (part 1) - Tempdb File PlacementIt’s quite a well-known best practice to separate data, transaction logs, and tempdb, and if you knew that already, are you sure you know why? The origin of this recommendation lies with…Jan 4, 2015SQL Server 2012 : Consolidating Data Capture with SQLdiag - Getting Friendly with SQLdiag (part 2) - Using SQLdiag as a ServiceThe third way you can collect data using SQLdiag is with a Windows service. You can use the /R parameter to register the utility as a service, and /U to unregister the tool as a service.Jan 1, 2015SQL Server 2012 : Consolidating Data Capture with SQLdiag - Getting Friendly with SQLdiag (part 1) - Using SQLdiag as a Command-line ApplicationBefore looking at the basics of running a SQLdiag data collection, you should first understand the anatomy of the SQLdiag configuration file in order to appropriately configure the…Jan 1, 2015SQL Server 2012 : Consolidating Data Capture with SQLdiag - The Data Collection Dilemma, An Approach to Data CollectionOne of the biggest issues a SQL Server professional faces when troubleshooting a complex SQL Server problem is the data collection task.Jan 1, 2015SQL Server 2012 : Troubleshooting Methodology and Practices - Data Analysis, Validating and Implementing ResolutionAfter data collection, data analysis is the second iterative activity required to identify the problem’s root cause. It may be necessary to perform data analysis multiple times for a…Jan 1, 2015SQL Server 2012 : Troubleshooting Methodology and Practices - Data CollectionWhen the problem is defined and well understood, and the success criteria have been agreed upon, the next step is to gather data. What data you should gather depends on the problem and…Jan 1, 2015SQL Server 2012 : Troubleshooting Methodology and Practices - Defining the ProblemInvesting time to understand the problem and application environment often leads to a higher-quality and faster problem resolution. While it is tempting to focus on immediately resolving…Jan 1, 2015SQL Server 2012 : Troubleshooting Methodology and Practices - Approaching ProblemsDeveloping a professional methodology to managing problems will lead to a less stressful time at work, help make work more rewarding, and differentiate you from others.Jan 1, 2015Two Is Better Than One - WD My Cloud MirrorAs we have noted in our May issue, cloud storage is getting more popular. To capitalize on this and to offer users an alternative to services like Google Drive and Dropbox, Western…Sep 21, 2014Data In A Pinch - Kingston Mobile Lite Wireless G2The Kingston Mobile Lite Wireless G2 is described as a ‘wireless media reader’—it says so right on the box, but that’s selling it short. It’s actually a ‘wireless media reader that is…Sep 14, 2014SQL Server 2012 : Policy Based Management - Evaluating PoliciesOf course, policies would be purely academic if they never actually executed and evaluated any objects. Policies may be set for On Schedule, On Demand, On Change, or Log Only. Policies…Jul 24, 2014SQL Server 2012 : Defining Policies (part 3) - Creating PoliciesIf the facet property is the fact and the condition the brain, the policy is the muscle. Policies define how and where the condition is applied and enforced.Jul 24, 2014SQL Server 2012 : Defining Policies (part 2) - ConditionsConditions are the second step in the chain and provide the logical connection between facet properties and policies. Most of the key policy design decisions are made while creating…Jul 24, 2014SQL Server 2012 : Defining Policies (part 1) - Management FacetsA brilliant-cut diamond has 58 facets. PBM has 84 management facets.. The easiest way to see all the facets is to open the Facets node under Management → Policy ManagementJul 24, 2014SQL Server 2012 : Validating Server Configuration (part 2) - Evaluate the Policy, Using the Central Management ServerHaving created a policy, you should evaluate it to see whether your server is in compliance. If you select Evaluate from the context menu of the Server Security Policy policy, you will…Jul 19, 2014SQL Server 2012 : Validating Server Configuration (part 1) - The Need for a Policy, Create Policy on a Local ServerChances are if you work for a company that has gone through a compliance certification, you realize that it takes a lot of time and effort. Once you are considered compliant, staying in…Jul 19, 2014