Tuesday, April 29, 2008

Tips For Success -- The Resume

A resume is a brief, written summary of your skills and experience. It is an overview of who you are and a tool to present yourself to employers. The goal of a well-written resume is to gain a job interview. Job interviews may lead to employment!

Employers and personnel managers are very busy and tend to rapidly review resumes. Therefore, your resume must quickly catch the employer's attention. Writing a brief, to the point description of your experience and skills can do this. Tell the truth on your resume. Write your resume to describe how your skills will meet the employer's needs.

When applying for a job, read the job advertisement or announcement very carefully. Then customize your resume by writing up your skills to describe and match what the employer is looking for. It is helpful to describe your experience and skills by using some of the same words the employer used in the job advertisement.

Read each of the WorkSmart resume sections for helpful suggestions, before getting started on writing your resume.

Preparing to Write Your ResumeWriting a resume requires a little time and planning. However, it is well worth the effort. It is a good idea to begin by writing a master resume. Having an attractive resume on hand that stresses your strongest skills, better prepares you to attend job fairs and respond to a large number of jobs advertised in newspapers and on the Internet.

Get organized! Before beginning to write your resume:
  • Gather information on your past employment: employer names and addresses, and dates of employment.
  • Gather information for personal references: names and addresses.
  • Research information on the employer. (See "Research the Employer" under "How to Find a Job.")
  • Select a quiet area to gather your thoughts and begin working on your resume.
  • Decide what type of resume suits you best: chronological, functional, or automated. (See "Resume Types" below.)

    Resume Tips
  • Make your resume short (one page, if possible, two pages at most).
  • Use white or ivory paper.
  • Type your resume on a computer, when possible. (If you do not have access to a computer visit your local Job Service office, One-Stop Career Center, or local public library for help.)
  • Use action words to describe your work skills. (See "Action Words" below.)
  • Stress skills, knowledge, and abilities that fulfill the job requirements.
  • Be specific about accomplishments, but do not stretch the truth.
  • Provide information about career goals.
  • Make it attractive.
  • Emphasize most recent jobs.
  • Proofread it for grammar, punctuation and spelling errors.
  • If possible, have someone else check your resume for errors.
  • Save references and personal data for the interview.
  • Avoid date of birth.
  • Avoid salaries or the reason for leaving the last job.
  • Ask yourself "Would I interview this person?"
  • Keep your resume current.
  • Finally, prepare a cover letter to introduce your resume. (See "Cover Letter" below.)

    Resume Types
  • When preparing to write your resume, it is very important to select the type of resume that best suits your past work history, and presents your experience and skills in the best light.
  • Review the resume types listed below to choose the resume type that will work the best for you.
  • Chronological Resume
    A chronological resume lists your most recent job duties and employment dates first. This type of resume tends to be fact-based and may be easily skimmed. It works for those with experience and a steady job history. It is difficult for career changers and those who lack on-the-job experience. Employers tend to prefer a chronological resume because it is easier to read and review the work history dates and work experience. However, this resume type displays flaws more easily, such as employment gaps.
  • Functional Resume
    A functional resume focuses on skills, experience, and accomplishments. A functional resume works best for the following conditions:
  • Your work history is not related to the job
  • Your related experience is not your most recent job
  • You have gaps in your work history
  • You have not worked recently
  • You are just entering the job market


In a functional resume you are advertising your specific qualifications, not the order in which you obtained them. Functional resumes let you emphasize volunteer or civic experience, training, or education.
The functional resume is not usually the favorite resume type among employers, as it is a little more difficult to read. The work history and career paths are not as clear. However, it is important to select the resume type that displays your special qualities to the best advantage.

  • Automated Resume (Keyword, or Scannable)
    An automated, keyword, or scannable resume is formatted to read well when scanned by a computer system. The resume is scanned and entered in a database that can then be searched by keywords so that the applicant's qualifications are matched with the employer's needs. (Keywords describe skills that are commonly used in the career field.) Generally, it is the larger employers (with 100 or more employees) who scan resumes to retain information in databases for future use.
  • Cover Letter
    A cover letter is a short introduction letter that accompanies your resume. The cover letter should persuade the employer to read your resume. It is especially important to use a cover letter when mailing a resume to an employer.

    Resume Action Words
    When writing a resume it is a good idea to describe your skills and responsibilities with action words. Write up your skills in brief bulleted lists that begin with action words that emphasize your strong points.
  • The following list provides a small sampling of common action words to get you started:
    Various Skills
  • Achieved
  • Arranged
  • Built
  • Collected
  • Contributed
  • Delivered
  • Designed
  • Dispatched
  • Examined
  • Improved
  • Increased
  • Informed
  • Maintained
  • Organized
  • Performed
  • Purchased
  • Prepared
  • Scheduled
  • Supervised
  • Trained


Technical Skills

  • Assembled
  • Balanced
  • Built
  • Calculated
  • Cut
  • Designed
  • Detected
  • Developed
  • Formed
  • Generated
  • Inspected
  • Installed
  • Maintained
  • Molded
  • Operated
  • Packaged
  • Processed
  • Remodeled


Sales Skills

  • Accomplished
  • Arbitrated
  • Budgeted
  • Computed
  • Consulted
  • Demonstrated
  • Dissuaded
  • Exceeded
  • Forecasted
  • Generated
  • Increased
  • Influenced
  • Marketed
  • Ordered
  • Persuaded
  • Produced
  • Projected
  • Promoted
  • Realized
  • Saved
  • Sold


Communication Skills

  • Addressed
  • Authored
  • Clarified
  • Created
  • Demonstrated
  • Drafted
  • Presented
  • Persuaded
  • Proofread
  • Reported


Clerical Skills

  • Assigned
  • Balanced
  • Catalogued
  • Charted
  • Compiled
  • Composed
  • Distributed
  • Edited
  • Followed up
  • Identified
  • Ordered
  • Planned
  • Prepared
  • Recorded


Helping Skills

  • Assisted
  • Attended
  • Comforted
  • Consoled
  • Encouraged
  • Facilitated
  • Guided
  • Helped
  • Nursed
  • Reassured
  • Served
  • Supported
  • Tutored

How to Handle Difficult People

A bully at your work is difficult for you to face. He is demanding you do part of his job without pay or credit. How do you handle it?

Your neighbors are constantly fighting. They wake you up in the middle of the night with their screams and curses. What do you say to them?

Your father is unhappy about your career choice. He constantly criticizes your work and points out what he thinks you should do. How do you deal with him?

Difficult situations are part of everyone’s life. Employers and employees can’t get along. Partners clash over money. Spouses cannot resolve disagreements.

If you ignore these situations, they always get worse. Employees get fired, partnerships and marriages break up, everyone is miserable.

Waiting and worrying, the most common "solution," also allows the problem to get worse while giving you stress and shortening your life span.

If you attack the person, at least you are trying to fix the problem. But attacks, rage or irrational anger gives you a bad name, makes people afraid of you and reduces honest communication.
Disconnecting from the problem or from the person is not always wise or practical. Losing employees, supporters and friends because you needlessly disassociate from them may reduce your stress, but you might also become lonely and poor.

The Best Solution Is to Confront and Handle People

"The ability to stand up to and confront and handle whatever comes the way of the organization depends utterly on the ability of the individuals of the organization to stand up to, confront and handle what comes the individual's way." — L. Ron Hubbard

When you face and resolve the problem yourself, you feel wonderful. You are in control of your life. You not only conquer the opposition, you conquer your fear. Few accomplishments are more satisfying than confronting someone who is difficult to face and handling the conflict.

How to Confront and Handle Someone

By getting organized and working out a plan of action, confronting and handling people becomes much easier. The key is your preparation.

"THE SUCCESS OF ANY EVENT IS DIRECTLY PROPORTIONAL TO THE TIMELY PREPARATION." — L. Ron Hubbard

Follow these seven steps to prepare yourself for dealing with the difficult people in your life.

1. Make the decision to face up to the person directly and by yourself.

2. Write down the exact problem you need to handle and your goal for the confrontation.

Examples of problems to be confronted that you might write down:
"Joe is refusing to pay me despite our agreement."
"Chris is hurting office morale and causing me stress with her continual complaining."
"Bob is supposedly telling people that my work is inferior and I am dishonest."
Once you specifically name or identify the problem, write down a goal for the meeting. "By the end of the meeting, I want . . . ."
Examples of goals or objectives you might want as a result of a confrontation:
"Joe pays me in full."
"Chris stops complaining or leaves."
"Learn the truth about Bob’s comments and if true, get him to stop it."
In some cases, your objective may also state:
"Figure out if I want this person as a partner/employee/boss/friend."

3. Write down a Plan or List of Points You Need to Make to Support Your Goal: Facts, Reasons and explanations you may need the other person to understand. List the points in order of priority or importance.

For example, to get Joe to understand why he must pay you, you might make these points:
A. Joe requested the service.
B. Joe signed an agreement to pay for the service.
C. We provided the service as promised.
D. Joe was happy with the service.
E. Etc.

4. Write down objections, reactions or disagreements the other person may have. Include everything you are afraid might happen during the meeting. Putting specific concerns and fears in writing reduces their impact on you.
For each objection, reaction or disagreement you expect will happen, write a solution of how you will deal with each.

5. Organize your notes and gather supportive documents.

6. Arrange the meeting where you will not be disturbed, preferably in a space you control.

7. Start the meeting.

A. Look the person directly in the eye.
B. Explain the specific problem you want to resolve as you noted in Step 2.
C. Go over your first point on the list from Step 3.
D. Listen carefully to the other person and make certain they feel understood.
E. Hold a position on your points.
F. Use your solutions to their reactions as you worked out in Step 4.
G. Continue describing your points and listening to the person's side.
H. Do not give up. Communicate and persist for as long as it takes to reach your goal.


The more frequently you confront and handle difficult people, the easier it becomes. The amount of time it takes to prepare for a confrontation decreases. You become strong and tough.
When you confront and handle everyone around you, people respect you for your courage, your honesty and your control. Your associates, employees or coworkers follow your example and become more productive. Your enemies either become harmless or become friends.
Taking positive organized action, despite fear, is the kind of courage all successful people must have to succeed.

Wednesday, April 9, 2008

The Power Of Positive Attitude

Positive attitude manifests in the following ways:
  • Positive thinking.
  • Constructive thinking.
  • Creative thinking.
  • Expecting success.
  • Optimism.
  • Motivation to accomplish your goals.
  • Being inspired.
  • Choosing happiness.
  • Not giving up.
  • Looking at failure and problems as blessings in disguise.
  • Believing in yourself and in your abilities.
  • Displaying self-esteem and confidence.
  • Looking for solutions.Seeing opportunities.

A positive attitude leads to happiness and success and can change your whole life. If you look at the bright side of life, your whole life becomes filled with light. This light affects not only you and the way you look at the world, but also your whole environment and the people around you. If it is strong enough, it becomes contagious.

The benefits of a positive attitude:

  • Helps achieving goals and attaining success.
  • Success achieved faster and more easily.
  • More happiness.
  • More energy.
  • Greater inner power and strength.
  • The ability to inspire and motivate yourself and others.
  • Fewer difficulties encountered along the way.
  • The ability to surmount any difficulty.
  • Life smiles at you.People respect you.

Negative attitude says:
you cannot achieve success.

Positive attitude says:
You can achieve success.

If you have been exhibiting a negative attitude and expecting failure and difficulties, it is now the time to change the way you think. It is time to get rid of negative thoughts and behavior and lead a happy and successful life. Why not start today? If you have tried and failed, it only means that you have not tried enough.

Developing a positive attitude that will lead you to happiness and success: -
  • Choose to be happy
  • Look at the bright side of life.
  • Choose to be and stay optimistic.
  • Find reasons to smile more often.
  • Have faith in yourself and in the Power of the Universe.
  • Contemplate upon the futility of negative thinking and worries.
  • Associate yourself with happy people.
  • Read inspiring stories.
  • Read inspiring quotes.
  • Repeat affirmations that inspire and motivate you.
  • Visualize only what you want to happen.
  • Learn to master your thoughts.
  • Learn concentration and meditation.
Following even only one of the above suggestions, will bring more light into your life!

Tuesday, April 8, 2008

Sql Server and Regular Expressions Questions

1) What are different normalization forms?
1NF: Eliminate Repeating GroupsMake a separate table for each set of related attributes, and give each table a primary key. Each field contains at most one value from its attribute domain.2NF: Eliminate Redundant DataIf an attribute depends on only part of a multi-valued key, remove it to a separate table.3NF: Eliminate Columns Not Dependent On Key If attributes do not contribute to a description of the key, remove them to a separate table. All attributes must be directly dependent on the primary keyBCNF: Boyce-Codd Normal FormIf there are non-trivial dependencies between candidate key attributes, separate them out into distinct tables.4NF: Isolate Independent Multiple RelationshipsNo table may contain two or more 1:n or n:m relationships that are not directly related.5NF: Isolate Semantically Related Multiple Relationships There may be practical constrains on information that justify separating logically related many-to-many relationships.ONF: Optimal Normal FormA model limited to only simple (elemental) facts, as expressed in Object Role Model notation.DKNF: Domain-Key Normal FormA model free from all modification anomalies.
Remember, these normalization guidelines are cumulative. For a database to be in 3NF, it must first fulfill all the criteria of a 2NF and 1NF database.

2) What is Stored Procedure?
A stored procedure is a named group of SQL statements that have been previously created and stored in the server database. Stored procedures accept input parameters so that a single procedure can be used over the network by several clients using different input data. And when the procedure is modified, all clients automatically get the new version. Stored procedures reduce network traffic and improve performance. Stored procedures can be used to help ensure the integrity of the database.e.g. sp_helpdb, sp_renamedb, sp_depends etc.
3)What is Trigger?A trigger is a SQL procedure that initiates an action when an event (INSERT, DELETE or UPDATE) occurs. Triggers are stored in and managed by the DBMS.Triggers are used to maintain the referential integrity of data by changing the data in a systematic fashion. A trigger cannot be called or executed; the DBMS automatically fires the trigger as a result of a data modification to the associated table. Triggers can be viewed as similar to stored procedures in that both consist of procedural logic that is stored at the database level. Stored procedures, however, are not event-drive and are not attached to a specific table as triggers are. Stored procedures are explicitly executed by invoking a CALL to the procedure while triggers are implicitly executed. In addition, triggers can also execute stored procedures.Nested Trigger: A trigger can also contain INSERT, UPDATE and DELETE logic within itself, so when the trigger is fired because of data modification it can also cause another data modification, thereby firing another trigger. A trigger that contains data modification logic within itself is called a nested trigger.

3)What is View?
A simple view can be thought of as a subset of a table. It can be used for retrieving data, as well as updating or deleting rows. Rows updated or deleted in the view are updated or deleted in the table the view was created with. It should also be noted that as data in the original table changes, so does data in the view, as views are the way to look at part of the original table. The results of using a view are not permanently stored in the database. The data accessed through a view is actually constructed using standard T-SQL select command and can come from one to many different base tables or even other views.

4)What is Index?
An index is a physical structure containing pointers to the data. Indices are created in an existing table to locate rows more quickly and efficiently. It is possible to create an index on one or more columns of a table, and each index is given a name. The users cannot see the indexes, they are just used to speed up queries. Effective indexes are one of the best ways to improve performance in a database application. A table scan happens when there is no index available to help a query. In a table scan SQL Server examines every row in the table to satisfy the query results. Table scans are sometimes unavoidable, but on large tables, scans have a terrific impact on performance.
Clustered indexes define the physical sorting of a database table’s rows in the storage media. For this reason, each database table may have only one clustered index.Non-clustered indexes are created outside of the database table and contain a sorted list of references to the table itself.

5) You are creating a procedure that will update two tables within a transaction. The code looks similar to the following (line numbers are included for reference only):1 BEGIN TRANSACTION23 BEGIN TRY4 UPDATE . . .56 END TRY78 BEGIN CATCH9 IF . . .1011 END CATCH12
Answer :- After Line 10
For eg:- begin catch
if @@TRANCOUNT>0
rollback
end catch

6) You are building a scientific application that will store data in a SQL Server 2005 database. The application does not store data until a final process is complete. One of the procedures you are currently working with performs many processor-intensive calculations. Which of the following would accommodate the situation?

Answers:-
a) A standard T-SQL stored procedure
b) A T-SQL stored procedure that uses a cursor
c) A CLR-integrated stored procedure (Correct)
d) A CLR-integrated stored procedure that uses a cursor

7) You need to add a column to a table that will hold a unique value. Which of the following would accommodate the situation?
Answers:-
a) An identity column with an integer data type (Correct)
b) A timestamp data type (Correct)
c) A uniqueidentifier data type with a default value of NewID() (Correct)
d) A column set as the primary key (Correct)


8) You would like to add an additional column to a table. The new column will be used to hold a seven-character serial number for assets and will be a mandatory element of data in the future. How would you implement the process?

Answers:-
a) Create a new NOT NULL column. (Correct)
b) Set a default value of N/A. (Correct)
c) Create the new column as an identity column.
d) Enter serial numbers for all existing records.


9) For producing a report from a random selection of records within a SQL Server database. There are 20,000 records in the table, and you would like to include 4,000 of them in the process. How would you implement the process?

Answers:-
a) Use CURSOR and process every 10th record.
b) Use the TOP clause to get 4,000 records.
c) Set the ROWCOUNT to 4000.
d)Use TABLESAMPLE to get 20% of the records. (Correct)

Answer Description: Processing a random sample of records is exactly what TABLESAMPLE accomplishes. The answer for previous SQL Server versions may have been B, as using the TOP clause to get 4,000 records would sort of accomplish the goal. Answers A, B, and C would not give you truly random selection, although they would be able to limit the output to 4,000 records. RND is a random number generator and would not accomplish random selection of records


10) While producing a grouped report of sales, by city, you only want to include report groups that have sales within the year 2007. Which of the following query elements would you use to solve the problem?
Answers:-
a) GROUP BY (Correct)
b) WHERE (Correct)
c) HAVING
d) BETWEEN (Correct)

11) During the major system upgrade, multiple data changes are going to be made. You would like to implement various changes without disturbing any of the existing data. Which of the following operations do not affect any existing data values?

Answers: -

a) Insert (Correct)
b) Update
c) Changing column name (Correct)
d)Increasing column length (Correct)

12) In your development environment number of individuals creates databases regularly. You would like to log the database creation activity so that the username, time, date, and details of the creation are recorded. How would you achieve this?

Answers: -
a) Use a DDL trigger (Correct)
b) Use a DML Trigger
c) Use a constraint
d ) Use a UDF.



13) Your accounting application using SQL Server database that is accessed by 100 users on your organization. When a user inserts or updates a record, you want to make sure that all the required columns have appropriate values. Which of the following would be best for this situation?

Answers: -
a) A stored procedure and a trigger
b) A batch and a trigger
c) An UPDATE Trigger and an INSERT trigger
d) One trigger by itself (Correct)

14) Your database contains several FOREIGN KEY and CHECK constraints. Users are facing problems while data entry on the database because the data they are adding is constantly in violation of the CHECK constraints. You can not change the database design, so you decide to implement your changes via a trigger. Which types of triggers would be best suited for this task?
Answers: -
a) UPDATE, DELETE, and INSERT Triggers
b) Just UPDATE and INSERT triggers
c) INSTEAD OF Triggers (Correct)
d) Triggers cannot be used in this circumstance.

Answer Description: INSTEAD OF triggers are required for this task because you must check for constraint violations before the update occurs. You need to implement INSTEAD OF INSERT or INSTEAD OF INSERT and UPDATE triggers. When trigger actions are listed, such as an INSERT Trigger, you cannot know for sure whether it is an INSTEAD OF or AFTER trigger, but you should assume that it is a FOR or AFTER Trigger if not specifically mentioned. For more information about the order in which triggers and constraints are applied see the information on sp_settriggerorder in SQL Server Books Online.


15) You are creating a new index on a table that has 1,700 rows. 20 rows are added to this table almost every day. The table already has a primary key, and the new index does not represent the order in which data in the table is to be stored. Updates to the table occur periodically but are infrequent. Which type of index would you create?
Answers: -

a) Use a clustered index with a high FILLFACTOR setting
b) Use a clustered index with a low FILLFACTOR setting
c) Use a non-clustered index with a high FILLFACTOR setting
d) Use a non-clustered index with a low FILLFACTOR setting (Correct)
Answer Description: The primary key is usually creates the clustered index on the table. The clustered index indicates the physical order of the data. A low fill factor leaves more room for updates.

16) How to create Full text Indexing on a database?

Answer: -
As you can probably guess, there's a certain amount of overhead involved in passing data back and forth between SQL Server and the Search Service. To speed things up, SQL Server doesn't pass any data to the Search Service unless you explicitly tell it to do so. After all, you might never want to do any full-text searches, in which case it would be silly to spend time indexing your data for them.
To get started, you need to add a full-text catalog to your database. The easiest way to do this is to open SQL Server Enterprise Manager and expand the node for your database to find the Full-Text Catalogs node (if that node isn't present, check to make sure that the Microsoft Search Service is installed on the server). Right-click on the node and select New Full-Text Catalog. SQL Server will prompt you for a name and location for the catalog (and it will supply a default location). Name the catalog anything you like and click OK to create it.
Next you need to tell SQL Server what data to include in the catalog. Again, you can do this in Enterprise Manager. Right-click on a table and select Full-Text Index Table, Define Full-Text Indexing on a Table. This will launch the SQL Server Full-Text Indexing Wizard. You need to make these choices to complete the wizard:
Select a unique index on the table
Select the columns to index. You can optionally specify a language to use for word breaking.
Select the catalog to contain the index, or create a new catalog.
Create a schedule to repopulate the index on a regular basis (this is also optional).
When you finish the wizard, it will create the index for the table. But the index won't have any entries in it yet. Right-click on the table again anfd select Full-Text Index Table, Start Full Population to build the actual index


17) How to call nested stored procedure and save the output in Temporary Table?
Answer:-
Suppose you have stored procedure named sp_FirstProcedure and sp_SecondProcedure
Code for sp_ FirstProcedure
Create Procedure sp_FirstASBEGIN Create Table #tempTable ( City varchar(255), EmployeeName varchar(255) ) Insert into #tempTable Values (’Alabama’,'Rana’)
Insert into #tempTable Values (’Alabama’,'John’)
Insert into #tempTable Values (’Alabama’,'Richard’)
Insert into #tempTable Values (’Alabama’,'Kash’)
Select * from #TempTable
Drop Table #TempTableENDGO
Output is :

Here is the second stored procedure where I will call first procedureBy using these steps.
Create Procedure sp_SecondProcedureAS
BEGINCreate table #tempCityEmp( City varchar(255), EmployeeName varchar(255)
)Insert into #tempCityEmpExec sp_First
– here you can Manuplate your temporary table like I want to —– take only the record with Rana’s name
Select * from #tempCityEmp where EmployeeName like ‘Rana’
ENDGo
Output would be
This is how you call nested stored procedure and insert the out put in a temporary table.

18) You create a Web application to process XML documents. The Web application receives XML document files from several sources, reads them, and stores them in a Microsoft SQL Server database. The Web application parses all incoming data files to ensure that they conform to an XML schema. You need to find all validation errors in the XML document. What should you do?

Answers: -
a) Load the XML data by using an instance of the XmlDocument class and specify a location for the application schema.
b) Configure the ValidationEventHandler in the XmlReaderSettings of the XmlReader object. (Correct)
c) Read the XML file into a DataSet object and set the EnforceConstraints property to True.
d) Read the XML file into a DataSet object. Handle the DataSet.MergeFailed event to parse the data that does not conform to the XML schema.


19) You need to set up security on Microsoft SQL Server 2005 Enterprise Edition to allow access to the employees of the company. The Microsoft SQL Server 2005 will contain several databases, some of which contain sensitive information. How do you configure access to the server?
Answers: -

a) Allow access to the Domain Users group and assign users to appropriate applications roles.
b) Allow access to everyone group and assign appropriate permissions to associated SQL logins.
c) Allow access to Active Directory groups of company and assign permissions according to those groups. (Correct)
d) Disable guest access and assign minimal permissions to the Public role in the sensitive databases. (Correct)



Answer Description: Never deny permissions to the Public role because, in essence, you would be denying the ability for any user. Instead, assign a minimal, base level of permission to this role. Leverage Active Directory groups to ease administration, but you need to be cautious in using the Domain Users group, which in this example would be invalid. You should never use the Everyone group.


20) On an existing Microsoft SQL Server 2005 instance, you have to prevent non-management individuals from accessing the Microsoft SQL Server. How do you configure access to the server?
Answers: -
a) Disable guest access; grant access to a network group containing the management individuals; deny access to the Public group in each database.
b) Disable guest access and grant access to a network group containing the management individuals; ensure that no other access has been granted to other groups. (Correct)
c) Disable guest access and grant access to the Domain Users group; deny database access to anyone not in management.
d) Disable guest access and grant access to a network group containing the management individuals; grant access to all other network groups and assign them to the db_denydatareader role in all databases
Answer Description:
Never deny permissions to the Public role because, in essence, you would be denying the ability for any user. Instead, assign a minimal, base level of permission to this role. Leverage existing Active Directory groups to ease administration, as long as they contain the appropriate individuals.

21) While installing Microsoft SQL Server 2005, how you will check configuration is suitable for the installation. Which tool would you use?
Answers: -
a) System Configuration Checker (Correct)
b) SQL Server Analysis Services
c) SQL Server Migration Assistant
d) SQL Server Profiler

Answer Description: The System Configuration Checker (SCC) can notify issues that will prevent a successful installation. The Migration Assistant, on the other hand, is used to migrate from other systems such as Access or Oracle. SQL Server Analysis Services provides online analytical processing (OLAP) and data mining functionality. SQL Server Profiler is used for monitoring an existing instance of the database engine or Analysis Services.


22) SQL Server Full-Text Search Performance Tuning and Optimization
Answer: -
The SQL Server Full-Text Search service can affect the overall performance of SQL Server when it is indexing text in your tables. Indexing large amounts of text uses up server resources, reducing the CPU time and memory that could be used by your users running their SQL Server-based applications. If you find that the Full-Text Search service is negatively affecting your server's performance, and impacting your users, you can change a setting, telling the service to back off, and not use so much of your server's resources.
To change this setting, right-click on the Full-Text Search service in Enterprise Manager and click on "Properties". This displays the "Full-Text Search Service Properties" dialog box. Here, click on the "Performance" tab. On this tab is a "System Resource Usage" option that has a slider bar you can use to change the effect this service has on SQL Server.
The slider bar has five position, and the default setting is at the third setting. If you want to reduce the impact of this service on your SQL Server, move the slider bar to the left one or two steps. This will proportionally reduce the affect of the service on SQL Server. It will also cause the full-text service to run longer to perform the same task, but now with less impact on the server. Conversely, if you want to dedicate this SQL Server to this service, you can boost the resource usage by sliding the slider bar to the right. But don't do this unless your SQL Server is dedicated to the Full-Text Search Service.

The SQL Server Full-Text Search service can affect the overall performance of SQL Server when it is indexing text in your tables. Indexing large amounts of text uses up server resources, reducing the CPU time and memory that could be used by your users running their SQL Server-based applications. If you find that the Full-Text Search service is negatively affecting your server's performance, and impacting your users, you can change a setting, telling the service to back off, and not use so much of your server's resources.
To change this setting, right-click on the Full-Text Search service in Enterprise Manager and click on "Properties". This displays the "Full-Text Search Service Properties" dialog box. Here, click on the "Performance" tab. On this tab is a "System Resource Usage" option that has a slider bar you can use to change the effect this service has on SQL Server.
The slider bar has five position, and the default setting is at the third setting. If you want to reduce the impact of this service on your SQL Server, move the slider bar to the left one or two steps. This will proportionally reduce the affect of the service on SQL Server. It will also cause the full-text service to run longer to perform the same task, but now with less impact on the server. Conversely, if you want to dedicate this SQL Server to this service, you can boost the resource usage by sliding the slider bar to the right. But don't do this unless your SQL Server is dedicated to the Full-Text Search Service.


23) Write a regular expression for email id?
Answer: - \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

Some Interview Questions in Oracle

1. What is an Oracle instance?
Overview of an Oracle Instance :-
Every running Oracle database is associated with an Oracle instance. When adatabase is started on a database server (regardless of the type of computer),Oracle allocates a memory area called the System Global Area (SGA) and startsone or more Oracle processes. This combination of the SGA and the Oracleprocesses is called an Oracle instance. The memory and processes of an instancemanage the associated database’s data efficiently and serve the one or multipleusers of the database.
The Instance and the Database
After starting an instance, Oracle associates the instance with the specifieddatabase. This is called mounting the database. The database is then ready to beopened, which makes it accessible to authorized users.
Multiple instances can execute concurrently on the same computer, each accessingits own physical database. In clustered and massively parallel systems (MPP),the Oracle Parallel Server allows multiple instances to mount a single database.
Only the database administrator can start up an instance and open the database.If a database is open, the database administrator can shut down the database sothat it is closed. When a database is closed, users cannot access theinformation that it contains.
Security for database startup and shutdown is controlled via connections toOracle with administrator privileges. Normal users do not have control over thecurrent status of an Oracle database.
2)What is a view?
View:-
A view is a tailored presentation of the data contained in one or more tables(or other views). Unlike a table, a view is not allocated any storage space, nordoes a view actually contain data; rather, a view is defined by a query thatextracts or derives data from the tables the view references. These tables arecalled base tables.
Views present a different representation of the data that resides within thebase tables. Views are very powerful because they allow you to tailor thepresentation of data to different types of users.
Views are often used to:
• provide an additional level of table security by restricting access to apredetermined set of rows and/or columns of a table• hide data complexity• simplify commands for the user• present the data in a different perspective from that of the base table• isolate applications from changes in definitions of base tables• express a query that cannot be expressed without using a view
What is referential integrity?Rules governing the relationships between primary keys and foreign keys oftables within a relational database that determine data consistency. Referentialintegrity requires that the value of every foreign key in every table be matchedby the value of a primary key in another table.

3)Name the data dictionary that stores user-defined constraints?
USER_CONSTRAINTS

4)What is a collection of privileges?user_tab_privs_madeuser_tab_privs_recd
Snapshot: A snapshot is a read-only copy of a table or a subset of a table.

5)What is a cursor?
cursor is a private sql work area used to perform manipulations on data using pl\sql.adv:1.mainly used for multiple row manipulations and locking columns.note: data which is populated into the cursor is known as active dataset.
cursors are of two types1.implicit2.explicitimplicit———attributes or properties for implicit cursor1.sql%is open:attribute returns a boolean value stating wether the cursor is open or closed.2.sql % found: returns boolean value stating whether the record is found in the cursor.3.sql%notfound : returns a boolean value stating whether the record is not found in the cursor4.sql %rowcount :returns a pneumeric value stating no.of rows executed in the cursor.
explicit cursors—retrives multiple rows.************adv: users can perform locks on th data in the cursorattributes1.% is open2.% found3.% not found4.% rowcount
Note: DATA which is populated in the cursor is known as active data set.
WE CAN WRITE TWO CURSORS IN ONE PROGRAM
WE CAN WRITE A CURSOR SPECIFYING PARAMETERS
CURSOR WITH UPDATE CLAUSE IS USED TO PERFORM LOCKS ON DATA.

6)What is a sequence?
Ans:It is a database object to auto generate numbers.

7)Name the data dictionary that stores user-defined Stored procedures?
ans :- user_objects

8)Why Use Sql* Loader in Oracle Database?
Answer: The Sql Loader module of the oracle database Management System loads data into an existing ORACLE table from an external files.It is available locally only on CMS and PCs with oracle version 5. Throughout this documentation the CAR database described in Referance A is used for illustration.There are several methods others than using SQL *Loader of inserting data into a table.1. The Sql insert command may be used from the SQL * Plus module,for Example :insert into CAR values(…)where the values to be inserted into a row of the table are listed inside the parentheses. Dates and Characters data must be Surrounded by single quotes; items are seperated by commas.2. Sql*Forms allows you to add rows interactively using forms. The forms may contain default values and checks for invalid data.3. ODL loads the table from a control file and separate fixed format data file. ODL is available on all versions of ORACLE . SQL * Loader is much more flexible than ODL and will eventually supersede it on all systems.
We can execute a function in sql query
select functionname(paramaters) from dual;
Suppose i am created a function add which returns the addition of two numbers then
select add(3,4) from dual;7
ODBC stands for open database connectivity
trigger is a stored procedure which auotomatically fired on a table whenever any dml operation is affected in the table.we can create ddl trigger,database trigger(logon,logoff,startup,startoff),audit triggers
pseudo column the column which does not exist in a tableex;rownum,rowid,level etc

9)what is a synonym ?
Ans. A synonym is an alternative name for tables,views,procedures and other database objectsgenerally when we have more than one schema and we wish to access an object of a different schema then we create synonyms for that object in the schema where we wish to access the object.
Syntax:create synonym synonym-name for schemaname.object-name

10)what is an exception ?
Exception is an event that causes suspension of normal program execution.In oracle there are serveral types of exceptions1) Pre-defined exceptions like NO_DATA_FOUND,TOO_MANY_ROWS2) User-defined exceptions which would validate the business logic3) unnamed system exceptions which are raised due to errors in the application code .. you can name these exceptions using PRAGMA EXCEPTION_INIT4)Unnamed programmer-defined exceptions. Exceptions that are defined and raised in the server by the programmer. In this case, the programmer provides both an error number (between -20000 and -20999) and an error message, and raises that exception with a call to RAISE_APPLICATION_ERROR.
for all the exceptions raised oracle fills in sqleerm and sqlcode variable which provide the error message and error code for the exception raised.

11)What are pseudo-columns in SQL? Provide examples?
A pseudocolumn behaves like a table column, but is not actually stored in the table. You can select from pseudocolumns, but you cannot insert, update, or delete their values.
Examples:CURRVAL,NEXTVAL,ROWID,LEVEL

12)What is a schema ?
A)Dabase user account is called a schema.
A) A schema is a collection of logical objects owned by a user. A user in that regard is an account registered with the Oracle server.
Once u login into ur account/user, u can access other user’s schema objects like i can write scott.emp, if at all i’ve acces to scott user’s emp table.A) schema is a logical collection of database objects like tables, views, pkgs, procedures, triggers, etc. It usually has an associated database user.

13)What is a co-related sub-query?
It is very similar to sub-queries where the parent query is executed based on the values returned by sub-quries. but when come’s to co-related subqueries for every instance of parent query subquery is executed and based on the result od sub-query the parent query will display the record as we will have refernce of parent quries in su-queries we call these as corelated subquries.
so, we can define co-related sub query as for every record retrival from the sub query is processed and based on result of process the parent record is displayed.

14)what is trigger?
Trigger is an event. It is used prevent the invalid entries of the data.Therehas a different types of trigger are available.1)rowlevel triggerbefore insert,before delete,before updateafter insert,after delete,after update2)statement level triggerbefore insert,before delete,before updateafter insert,after delete,after update3)INSTEAD OF trigger4)Schema level Triggers5)System level Triggers

Links for Learning Linq

http://www.codeproject.com/vista/LINQ_1.asp
http://www.codeproject.com/useritems/UnderstandingLINQ.asp
http://dotnetslackers.com/articles/csharp/IntroducingLINQ1.aspx

Search IT Jobs At US




ITJobCafe, The home page for IT professionals, provides you an opportunity to share your jobs and resumes free of cost.It will help you in not generating/receiving hundreds of email lists.Visit the site and experience the ease of use and other features like – tech forums, classifieds, IT News, resources for Program certification, IT conferences etc.Feel free to share the information with your friends and contacts.
http://www.itjobcafe.com/

Thursday, April 3, 2008

A Positive Attitude Can Make A World Of Difference

A positive attitude will work wonders in how you feel about yourself. Instead of always looking for what's wrong in yourself and in your life, you will gain a newfound appreciation for everything that is good in both. You will find that you like your life more than you did before - and that you like yourself better, too.


You probably know someone who has a negative attitude and often displays it. If so, you are already familiar with the complications which usually result from this - people do not like to be around him, and it can even interfere with his job. It can affect one's work obligations, social life, and basic interpersonal relating.
What if you are a person like this? What if you have a negative outlook, and it is spilling over into various aspects of your life? Even if your job performance has been suffering, or if people are no longer welcoming your company, you do not need to live with these consequences - because you do not need to hold onto the attitude which has caused them!
A positive attitude can make a world of difference! Soon after you have begun to apply this principle, you will see this for yourself!
Negativity will only hold you down; a positive attitude will help bring you back up. Negativity will keep you focused on everything that is wrong, everything that has ever been wrong; but a positive attitude will bring your focus to everything that is right and better. The very best way to look at the subject, though, is to remind yourself that while a negative attitude will limit you, a positive attitude will go a long way in getting rid of those limits. If you think about how much a negative attitude has limited you, this in itself should be a great motivating factor!
Most people do not like to acknowledge that they are limiting themselves and their prospects with their own attitudes and behavior. When you start to replace the "cannot" with "can," you will see how much power there is in your own attitude! You will feel that you have more potential, as well as the ability to reach your potential - while the only thing that has actually changed is your own attitude! Goal-setting and making plans will become much easier, and you will find that you can accomplish much more than you had previously thought you could!
When you take on a new, positive attitude, you will experience wonderful results with other people. Instead of shying away from a chronic complainer who rarely had anything uplifting to say, people will appreciate your company when your positive attitude makes itself apparent in your personal interactions.
A positive attitude will work wonders in how you feel about yourself, also. Instead of always looking for what's wrong in yourself and in your life, you will gain a newfound appreciation for everything that is good in both. You will find that you like your life more than you did before - and that you like yourself better, too!
If you are not yet convinced, perhaps you would like to give it a try! Whenever you sense one of those old negative thoughts, feelings, or ideas preparing to creep in, let them go and replace them with something good, upbeat, and positive. It will not be long before you experience results!