by http://webgeektutorials.blogspot.com

Wednesday, March 7, 2012

SAP Best Practices and Advantages with SQL Server

The advantages of using SAP with SQL Server  include:
  •  Improves performance. Enhancements in SQL Serverenable tune-up and auto-administration features on SAP application deployments.
  • Supports very large databases. mySAP and R/3 installations running on SQL Server  can accommodate larger and more complex databases. Multi-terabyte (TB) databases and 45,000 tables in a single mySAP database are becoming increasingly more common.
  • Offers advanced capabilities as standard features. Customers can take advantage of SQL Server  advanced capabilities such as Database Mirroring, Online Index Create, Database Snapshots, etc.
  • Contains comprehensive data management features. These data management features include advanced data mining, integration services, Extraction Transformation and Loading (ETL), BI, high availability, manageability, and security.
  • Runs on standard commodity servers and storage. SAP customers have two options for licensing SQL Server . When SQL Server is licensed through Microsoft and is used for more than one application, the database is licensed per processor, not per core, as is common with some competitors. This reduces the cost by a factor of three or greater. When SQL Server is licensed through SAP and is used for one application only, even greater savings can be realized.

Friday, March 2, 2012

Download Windows 8 Consumer Preview

Well Microsoft has released Windows 8 Consumer Preview and in a single day reached 1 million download.

Windows 8 Consumer Preview is prerelease software that may be substantially modified before it’s commercially released. Some product features and functionality may require additional hardware or software. If you decide to go back to your previous operating system, you'll need to reinstall it from the recovery or installation media that came with your PC. 

Microsoft says  Your Windows, everywhere , now it is cloud supported and once Sign in to any of your devices running Windows 8 your personalized settings and apps are right there. Windows 8 has two modes. One is called Metro-style and is built on a new "Windows Runtime", a modern mobile operating system in which apps are installed from an online store, sandboxed from one another and from the system for security, and easy to operate with your fingers. The other is the old Windows desktop, still needed by Microsoft for applications like Office and by the rest of us for all our existing applications.

Metro-style Windows follows a different philosophy than desktop Windows. Apps run full-screen (though with an option to have two tiled side by side) and are typically small and simple to use. Microsoft also designed the new runtime to make heavy use of asynchronous functions, which means that applications should remain responsive rather than freezing sulkily when performing long operations.

You can download Windows 8 right here : 



Hope you will like new interface and new experience with Windows 8.

Thursday, March 1, 2012

What happens when SQL Server executes a stored procedure or query ?

SQL Server performs a couple of internal steps before executing a query or stored procedure. The steps that interest us here are compilation and execution.
When SQL Server receives a query for execution, its execution plan may already be present in memory (the procedure cache); if not, SQL Server will have to compile the query before executing it.
The compilation process is divided into four parts: parsing, normalization, compilation and optimization.

Parsing

During this stage, SQL Server checks the query for syntax errors and transforms it into a complier-ready structure that it will use later to optimize the query. It does not check for object names or column names.

Normalization
At this stage, SQL Server checks all references to objects in the query. This is where we typically get the “Object not found” message when an object referenced in the query is not found in the database. SQL Server also checks to see if a query makes sense. For example, we cannot execute a table or select from a stored procedure.
Bear in mind that while we can optimize select, insert, and update statements, there is no way to optimize if, while, and for operators.

Tuesday, February 28, 2012

Detecting IPhone Device

There are few ways you can detect Iphone Device, and tell browser to behave accordingly. The iPhone launched with this user agent:

Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3

Todetect User Agent
Using ASP code
For those on a Windows Server, create a file called user-agent.asp and put the following lines of code in:
<%
Response.Write Request.ServerVariables (“HTTP_USER_AGENT”)
%>
Using PHP Code
For those on Linux based servers
<?php

Friday, February 17, 2012

Data Pump in Oracle Database 10g

Oracle Data Pump is a newer, faster and more flexible alternative to the "exp" and "imp" utilities used in previous Oracle versions. In addition to basic import and export functionality data pump provides a PL/SQL API and support for external tables.

Getting Started

For the examples to work we must first unlock the SCOTT account and create a directory object it can access:
CONN sys/password@db10g AS SYSDBA
ALTER USER scott IDENTIFIED BY tiger ACCOUNT UNLOCK;
GRANT CREATE ANY DIRECTORY TO scott;
 
CREATE OR REPLACE DIRECTORY test_dir AS '/u01/app/oracle/oradata/';
GRANT READ, WRITE ON DIRECTORY test_dir TO scott;

Table Exports/Imports

The TABLES parameter is used to specify the tables that are to be exported. The following is an example of the table export and import syntax:
expdp scott/tiger@db10g tables=EMP,DEPT directory=TEST_DIR 
dumpfile=EMP_DEPT.dmp logfile=expdpEMP_DEPT.log
 
impdp scott/tiger@db10g tables=EMP,DEPT directory=TEST_DIR 
dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log


For example output files see expdpEMP_DEPT.log and impdpEMP_DEPT.log.

The
TABLE_EXISTS_ACTION=APPEND parameter allows data to be imported into existing tables.

Schema Exports/Imports

The OWNER parameter of exp has been replaced by the SCHEMAS parameter which is used to specify the schemas to be exported. The following is an example of the schema export and import syntax:
expdp scott/tiger@db10g schemas=SCOTT directory=TEST_DIR 
dumpfile=SCOTT.dmp logfile=expdpSCOTT.log
 
impdp scott/tiger@db10g schemas=SCOTT directory=TEST_DIR 
dumpfile=SCOTT.dmp logfile=impdpSCOTT.log
For example output files see expdpSCOTT.log and impdpSCOTT.log.

Friday, January 6, 2012

Quick intro to SQL Server 2008


What is SQL Server 2008 RDBMS?

SQL Server 2008 is primarily thought of as a Relational Database Management System (RDBMS). It is certainly that, but it is also much more.SQL Server 2008 can be more accurately described as an Enterprise Data Platform. It offers many new features and even more enhanced or improved features from previous editions of the product. In addition to traditional RDBMS duty, SQL Server 2008 also provides rich reporting capabilities, powerful data analysis, and data mining, as well as features that support asynchronous data applications, data-driven event notification, and more.


Database Engine

The Database Engine is the primary component of SQL Server 2008. It is the Online Transaction Processing (OLTP) engine for SQL Server, and has been improved and enhanced tremendously in this version. The Database Engine is a high-performance component responsible for the efficient storage, retrieval, and manipulation of relational and Extensible Markup Language (XML) formatted data.
SQL Server 2008’s Database Engine is highly optimized for transaction processing, but offers exceptional performance in complex data retrieval operations. The Database Engine is also responsible for the controlled access and modification of data through its security subsystem. SQL Server 2008’s Database Engine has many major improvements to support scalability, availability, and advanced (and secure) programming objects.

SQL Server database : Regular maintenance

If you are a DBA it is very important for you to know maintenance plan in SQL Server. Generally we use SQL Enterprise Manager to perform regular maintenance of SQL database.

The information below does not cover everything you can do to maintain your SQL database in SQL Enterprise Manager. Before you must See your SQL documentation for details on what else you can do to maintain your database.

Backing up the transaction log is not compatible with simple recovery. If you have multiple databases with different recovery models, you can create separate database maintenance plans for each recovery model. In this way you can include a step to backup your transaction logs only on the databases that do not use the simple recovery mode.

Change recovery model to simple

Simple recovery mode is recommended because it prevents the transaction logs from swelling. In simple recovery, once a checkpoint is complete, the transaction logs for the time before the checkpoint are dropped from the active database. A checkpoint automatically occurs when the backup is made. We recommend having a database maintenance plan that performs a backup of the ePO database, together with "Simple Recovery". In this way, once a backup is successfully created, the portion of the transaction log in the active database will be dropped as it is no longer needed since a backup file exists.

Saturday, December 31, 2011

Photoshop CS5 best features demo

Adobe Creative Suite (CS) is a collection of graphic design, video editing, and web development applications made by Adobe Systems. The collection consists of Adobe's applications (e.g., Photoshop, Acrobat, InDesign), that are based on various technologies (e.g., PostScript, PDF, Flash). The latest version, Adobe Creative Suite 5.5 (CS5.5), was released on April 12, 2011.

Creative Suite 5 and I thought I would share with you Top 5 Favorite Features in Photoshop CS5. There are certainly many more new features than you'll see here, but these are definitely among my favorites.

Photoshop Convert photo to sketch/line draw

This tutorial is just the first video of a multi video session that will show how to turn a photo into a drawing and adding a lil jazz to the image.



Friday, December 23, 2011

TOP 5 Sql Server Scripts


/* 1 -------------------------------Script------------------------------

This script captures CPU Utilization Percent using TSQL. It uses system functions @@CPU_BUSY and @@IDLE
to see what is the CPU Utilization % at a particular instant. You can then use this number in a table or variable
to trigger other events.


@@CPU_BUSY  shows the time SQL Server has been busy
@@IDLE shows the time SQL Server has been idle


--------------------------------------------------------------------*/


DECLARE @CPU_BUSY int
DECLARE @IDLE int

SELECT @CPU_BUSY = @@CPU_BUSY, @IDLE = @@IDLE

WAITFOR DELAY '000:00:01'

SELECT
(@@CPU_BUSY - @CPU_BUSY)/((@@IDLE - @IDLE + @@CPU_BUSY - @CPU_BUSY) * 1.00) *100 AS CPU_Utilization_Pct