Thursday, July 11, 2013

SETUP AND DEPLOYMENT IN VISUAL STUDIO 2010:

SETUP AND DEPLOYMENT IN VISUAL STUDIO 2010:

INTRODUCTION:


What happens if an architect designs a lot of architectural drawings and then does nothing with them? I mean no implementation, no building, just secured inside files. Your code inside your computer are going to be the same as unimplemented design if at the end of the day they are just debugged for errors and then no use in friends computers or just yours seeing its icon in the desktop.
You can make your code and design to the real use and not just debugging by building it to create an assembly file where someone can double-click it and become happy. But for larger commercial applications, this simple approach might not be enough; customers would like you to install the files in the appropriate directories, set up shortcuts and have it in start menu list.
OK! Just make them happy by creating .msi installer files using Setup and deployment projects in Visual Studio, and this is what we are going to show in this tutorial.

DEPLOYMENT PROJECT:

Visual Studio provides extensive help for deployment where by you can create a setup project for your application. In Visual Studio 2010, Microsoft has extended its windows installer, Click Once technology and added Install Shield 2010 limited edition. These three available templates in VS2010 are going to be the discussion in this post.

1. Windows installer:

Windows Installer deployment enables you to create installer packages to distribute to users. Windows Installer deployment is updated in Visual Studio 2010 Professional for the latest .NET Framework versions. You can target the .NET Framework 4 or ASP.NET 4 versions in your windows and Web applications. Additionally, you can check that any version of the .NET Framework is installed on the end-user computer, rather than checking for a specific version of the .NET Framework.
To create a setup project go to create new project>other project type> setup and deployment> visual studio installer. Let us look at these available templates from the picture below;

Resized to 75% (was 670 x 302) - Click image to enlargeAttached Image


Setup project/ setup wizard:

Builds an installer for a Windows application, setup projects will install files into the file system of a target computer. In addition, a Setup Wizard is available to simplify the process of creating a Setup or Web Setup project.

Web setup project;
Builds an installer for a Web application, the files for a Web Setup Projects are installed into a Virtual Root directory on Web servers. The distinction between Setup and Web Setup projects is where the installer will be deployed.

Merge module project;
A merge module (.msm file) is a single package that contains all files, resources, registry entries, and setup logic necessary to install a component. Merge modules cannot be installed alone, but must be used within the context of a Windows Installer (.msi) file. Merge modules allow you to capture all of the dependencies for a particular component, ensuring that the correct versions are installed. Much the same as dynamic-link libraries allow you to share code between applications; merge modules allow you to share setup code between Windows Installers.

CAB project;
Creates a CAB file for downloading to an earlier Web browser. You can use CAB projects to package ActiveX components that can be downloaded from a Web server to a Web browser.
Unlike the other deployment project types, there are no editors provided for working with Cab projects. Files and project outputs can be added to a Cab project in Solution Explorer, and properties can be set in the Properties window or in the Project Property pages.

Customizing an installer:

If you are using a wizard, things are easy, just don’t forget to put your eye in these two pages;

Attached Image
Resized to 77% (was 655 x 261) - Click image to enlargeAttached Image

After the wizard has finished, now you have completed to create an installer for your application. Now save all changes and start to build your application, if building completed successfully, build the installer. Go to where you have saved the solution and you will see an installer file inside the debug folder in your setup project directory.
But I think this is not enough for you! You need to go deeper in customization, so follow me in the following issues:

Deployment editors: 

The deployment editors are used to configure an installer that you create with a deployment project. Each deployment project includes six editors: File System Editor, Registry Editor, File Types Editor, User Interface Editor, Custom Actions Editor, and Launch Conditions Editor. To open an editor, select a deployment project and the buttons will appear as shown below or alternatively, right-click your deployment project, point to View, and then click the name of the editor that you want to open 

Resized to 68% (was 740 x 269) - Click image to enlargeAttached Image


• File system editor;
When the project is added to the solution, the first thing to be displayed is the file system editor. The picture above shows file system editor. There are three files in it including Application folder where your program will be installed, user`s desktop where a shortcut are placed and a User’s program menu where files in it are shown in start menu.
To add a file to any of these folders right click on it and select add> file. To put shortcut of your application in start menu or desktop go toapplication folder, right click on primary output from… (Or any other files which you want to create shortcut for them), select create shortcut to… then the shortcut will appear, cut it and paste to the folder where you want a shortcut to appear. Also you can add project outputs in the target folder using the same way explained below just select project output... instead of a file.

• User interface editor;
The user interface editor helps you to customize the installation wizard interface.

Resized to 59% (was 857 x 200) - Click image to enlargeAttached Image


The User Interface Editor is a tree control containing two sections: Install and Admin. The Install section contains dialog boxes that will be displayed when the end user runs the installer; the Admin section contains dialog boxes that will be displayed when a system administrator uploads the installer to a network location. You may change the statements that appear during installation categorized in the three predefined dialog boxes (Start, progress & end).

• Registry editor;
The Registry Editor allows you to specify registry keys and values to be added to the registry of the target computer. By default the Registry Editor displays a standard set of registry keys that correspond with the standard Windows registry keys: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, and HKEY_PER_USER. For Setup projects, additional keys that match the Manufacturer property for the project are displayed under HKEY_CURRENT_USER\Software and HKEY_LOCAL_MACHINE\Software.
Playing with registry need more experienced person otherwise it may course some trouble in target computer, but you can add or remove keys according to what your project needs.

Attached Image

To add a registry key select a top level node, in the action menu click new key, then type the new name and edit properties of the key in theproperties window as necessary.
To add a sub key select a key node, in the action menu point to new and then key and you can edit its properties from the properties window. Also you can remove a key by selecting it and then click Delete from Edit menu. Also you can add string, binary, and DWORD values. During installation the values will be written to the registry and any existing values will be overwritten by the values that you specify.

• Custom actions editor;
Here you can specify additional actions to be performed on the target computer at the end of an installation. Five predefined custom actions are included in Visual Studio to install Event Log, Message Queue, Performance Counter, Service, and Service Process components. When these components are configured as installation components, they are wrapped in an installer class and are recognized by the deployment system as a custom action.

Attached Image
Resized to 93% (was 538 x 382) - Click image to enlargeAttached Image


The editor contains four folders, each corresponding with a phase of installation: Install Commit, Rollback, and Uninstall which are run in the same order that they are displayed in the editor.
To add custom actions first must be compiled as a .dll, .exe file or .NET framework component and added to a project as a script or assembly before they can be added to a deployment project. Then right click on one of the four folders and chose Add custom action then select your item to be added. If the item hasn't previously been added to the deployment project, click the Add File, Add Output, or Add Assemblybutton to add the item as a custom action. This also adds the item to your project. To add a custom action to all four folders, select theCustom Actions node in the editor, and choose Add Custom Action.

• File Types editor;
File Types editor allows you to specify document types and associate them with file extensions. In addition, you can specify the verbs or actions for each document type and specify MIME types for the document types for use in browsers.
The File Types Editor contains a single pane with hierarchical list of file types and actions. By default, the File Types Editor contains a single File Types on Target Machine node; new file types may be added beneath that node. There are three steps involved in associating a file type with your application: adding a document type, associating a file extension, and associating an executable file.
To add a document type, right click on File Type on Target Machine and select Add File Type and give it a name. Then you can associate it with file extension by going to its properties and type the extension without precede it by a period (separate multiple extensions by ; ). Then you can set a command by selecting a .exe file associated with.
• Launch conditions editor;
The Launch Conditions Editor allows you to specify conditions that must be met in order to successfully run an installation. For example you may check for the OS version, windows installer components, registry key or even a file if it exists in a target machine.
To add an item to search right click on Search Target Machine and then select an item you want to be searched in the target machine and then set its properties from the properties window. The following pictures from MSDN summaries the properties available:

Resized to 49% (was 1021 x 630) - Click image to enlargeAttached Image
Resized to 51% (was 999 x 338) - Click image to enlargeAttached Image

Resized to 51% (was 984 x 216) - Click image to enlargeAttached Image
Resized to 50% (was 1012 x 292) - Click image to enlargeAttached Image


To make your application run in any version of .NET framework, right click on Requirement on Target Machine and then click Add .NET Framework Launch Condition, in properties window change Version to Any. There are editors available in setup project in visual studio.

Choosing prerequisites to install:

Sometimes your application may depend on components that must be available in target computer before the installation can take place. If one of those dependent components is not available, an error message will be raised and installation will be aborted! 
You can make your user fill happy without a list of error messages, by including some prerequisites to be installed if not available in target computer.
To choose which one to be included in your package, right click on your deployment project and select properties, in the Property Pages dialog box, expand the Configuration Properties node, and then select the Build property page. Click the prerequisite button and make sure that the Create setup program to install prerequisite components box is checked. Then select the prerequisites that you want to install from theChoose which prerequisites to install list.

Resized to 74% (was 682 x 503) - Click image to enlargeAttached Image


Here you can select example the .NET framework version and windows installer version and other prerequisites from the dialog box.
Down the dialog there is specify the install location for prerequisite, and three radio buttons are available:

Resized to 48% (was 1045 x 193) - Click image to enlargeAttached Image


This capability to automatically detect the existence of components during installation and install a predetermined set of prerequisites is referred to as bootstrapping and the component that performs it is called the generic bootstrapper which uses bootstrapper packages to install the prerequisite components on the target computer. 
The default location of the bootstrapper packages is stored in the registry keyHKEY_LOCAL_MACHINE\Software\Microsoft\GenericBootstrapper\4.0\Path. Changing this path will change the location in which the Prerequisites Dialog Box looks for bootstrapper packages.

Creating installer for 64 bit platform:

The deployment tools in Visual Studio allow you to create installers for 64-bit applications and components. The TargetPlatform Property of a deployment project determines whether an installer will target a 32-bit or a specific 64-bit platform. The target platforms are x86 for 32-bit platforms, x64 for computers supporting the AMD64 and EM64T instruction sets, and Itanium for the 64-bit Itanium processor.
In general, 32- and 64-bit Microsoft Installer (MSI) packages are treated in the same way except for how Windows Installer treats folder variables such as Program Files and System Folder, and how it writes components into the registry or GAC. To create a 64 bit installer select your setup project and in the properties window change TargetPlatform to either Itanium for an Intel Itanium 64-bit platform, or x64 for any other 64-bit platform (such as AMD64 and EM64T instruction sets).

Attached Image

Security in windows installer:

Windows Installer can use digital signatures to detect and correct corrupted resources. In Windows XP, Windows Installer is integrated with Software Restriction Policy to restrict both administrators and non-administrators from running program files based on the path, URL zone, hash, or publisher criteria.
Also you can sign an assembly which gives an application a unique identity that other software can use to identify and refer explicitly to it (process also called strong-name signing). A strong name consists of its simple text name, version number, culture information (if provided), plus a public/private key pair. This information is stored in a key file; this can be a Personal Information Exchange (PFX) file or a certificate from the current user's Windows certificate store.
To sign an assembly, right click on project and click properties, from the project form click the signing tab and then select the sign the assembly. From a Choose a strong name key file drop-down list, select either <new…> if you want a new key file or <browse…> for an existing file. For new file enter a name and password in the Create strong Name key.

Resized to 72% (was 704 x 441) - Click image to enlargeAttached Image


Now rebuild your application and then a setup project to get a .msi file ready for installation.

2. ClickOnce technology:

To make a ClickOnce application available to users, you must publish it to a Web server, file share, or removable media. You can publish the application by using the Publish Wizard; additional properties related to publishing are available on the Publish page of the Project Designer.

Resized to 66% (was 760 x 507) - Click image to enlargeAttached Image


Publish properties can be set using the Publish Wizard but only a few of the properties are available in it, all other properties are set to their default values. Now let’s look at the properties that can be changed in this Publish page:

• Publish location;
You can publish the application to a Web site, FTP server, or file path. Type the location as a disk path, file share, FTP site, or Web site URL, or click the Browse button to browse for the location.
• Disk path: Specify a local disk path from which you can copy the application to a CD-ROM or DVD-ROM. The path can be a relative or absolute path in standard Windows format, for example: C:\Deploy\DIC.
• File share: Specify a file share by using a Universal Naming Convention (UNC) path from which the application will be deployed, for example: \\ServerName\DIC\.
• FTP server: Specify the path of a Web site from which the application can be downloaded by using FTP, for example:ftp://ftp.fileServer.com/DIC.
• Web site: Specify the URL of a Web site from which the application can be downloaded by using HTTP, for example:http://www.website.com/DIC.

• Install mode and settings;
First you have to say if the application is available offline or not (online only). If you select The application is available online only, then it will be run directly from the publish location without creating a shortcut on the start menu. Otherwise the application will be available even if a user is disconnected from the network and a shortcut will be available on start menu.
Also you can click on Prerequisites.. button to specify which prerequisite to be included. The prerequisite dialog is the same as the one explained above in windows installer.
Father more, if you set your application to be available offline, you can set application updates either automatically or programmatically. Also you can configure the application to check for updates automatically before the application starts, or at set intervals after the application starts. In addition you can specify a minimum required version; that is, an update is installed if the user's version is lower than the required version.

• Publish version;
To increase publish version, increase major, minor, build or revision version number according to what updates you have made! Changing the number in these fields causes the application to be published as an update. Also you can clear the Automatically increment revision with each publish if you don’t want visual studio to automatically increment the clickOnce publish version.
Then click on Publish Now to publish your application after making sure that all settings of your application have already been set correctly.

Security in ClickOnce:

ClickOnce security relies on Authenticode certificates to determine whether an application should be installed, a step known as a trust decision. Application and deployment manifests that describe an application can be signed with a certificate to prevent tampering. Domain administrators can configure certificates to be trusted at the enterprise or machine level. If certificates are not trusted at the time of installation, ClickOnce deployment can be configured to ask users to make trust decisions. Once an application is installed, ClickOnce restricts the application permissions and actions as defined by the Internet, Local Intranet, or custom zones.

3. InstallShield 2010 Limited Edition:

Microsoft has partnered with Flexera, makers of InstallShield to create InstallShield LE for Visual Studio 2010. This is a Visual Studio extension you can download and use today to build Windows installer-based deployment packages for your application that can be deployed on the Windows platform. It provides comparable functionality to the Visual Studio Installer project but in addition, you get the easy to use, modern, graphical development environment of InstallShield, as well as the ability to build your deployment projects using Team Foundation Server.
First time users need to enable InstallShield LE by downloading and installing it. Go to create new project and select InstallShield. After creating the project the template will bring you to registration page and then the download link. Once you have installed the product, the new project dialog will provide an option to create an installShield LE project. Now after creating a new project, the first form is where we start now:

Resized to 46% (was 1090 x 555) - Click image to enlargeAttached Image


At the bottom of the screen are the steps to the installation project and I am going to talk a little on them. (Using the next button will make sure you have passed on all steps)

Application information;
Here you will feel the basic information about the application including application name and version.

Installation requirements;
Specify the prerequisites that must be installed including version of OS and .NET framework. Customer prerequisites can be defined undercreate a custom software condition

Installation architecture;
This step is disabled in the Limited Edition. In the other editions different features can be defined for users to choose what sections they want installed.

Application files;
The application files such as project output can be added here (don’t forget to add primary output).

Attached Image

Application shortcuts;
Here you can define shortcuts for Start menu and desktop. Click on New, on the dialog select programFilesFolder>your company name>product name and you will find the primary output of your application, then tick on where you need the shortcut to be available and an icon if any.

Application registry;
If the application requires any registry entries, they can be defined here.

Installation interview;
This defines the user interface by specifying which dialogs should be displayed to users and which should not. Also you can create a custom dialog but this feature is not available in limited edition.
Also in solution explorer, there are many other features and explanation about advanced issues in deployment. You can view them for more information and customization.

Attached Image

Now you can build it to get a .msi file for installation which can be found from SetupName\SetupNama\Express\DVD-5\DiskImages\DISK1. 
NOTE: If you made any changes to your application, first rebuild your application before building the installer.
I finally installed my application in my computer;

Resized to 98% (was 511 x 384) - Click image to enlargeAttached Image


This is the end of this tutorial about setup and deployment in VS2010. Good to say is that many concepts from this tutorial I studied them fromMicrosoft Developer Network Library. Thanks, and for any comments just feel free to help the DIC community! :bigsmile: 

Monday, July 8, 2013

Hide File in Picture

Hide File in Picture



If you’re looking to hide files on your PC hard drive, you may have read about ways to encrypt folders or change the attributes on a file so that they cannot be accessed by prying eyes. However, a lot of times hiding files or folders in that way requires that you install some sort of software on your computer, which could then be spotted by someone else.
I’ve actually written quite a few articles on how you can hide files and folders in Windows XP and Vista before, but here I’m going to show you a new way to hide files that is very counter-intuitive and therefore pretty safe! Using a simple trick in Windows, you can actually hide a file inside of the JPG picture file!
You can actually hide any type of file inside of an image file, including txt, exe, mp3, avi, or whatever else. Not only that, you can actually store many files inside of single JPG file, not just one! This can come in very handy if you need to hide files and don’t want to bother with encryption and all that other technical stuff.

Hide File in Picture

In order to accomplish this task, you will need to have either WinZip or WinRAR installed on your computer. You can download either of these two off the Internet and use them without having to pay anything. Here are the steps for creating your hidden stash:
  • Create a folder on your hard drive, i.e. C:\Test and put in all of the files that you want to hide into that folder. Also, place the image that you will be using to hide the files in.
hide file in jpg

  • Now select all of the files that you want to hide, right-click on them, and choose the option to add them to a compressed ZIP or RAR file. Only select the files you want to hide, not the picture. Name it whatever you want, i,e. “Hidden.rar”.
add to archive

  • Now you should have a folder that looks something like this with files, a JPG image, and a compressed archive:
hidden rar

  • Now here’s the fun part! Click on Start, and then click on Run. Type in “CMD” without the quotes and press Enter. You should now see the command prompt window open. Type in “CD \” to get to the root directory. Then type CD and the directory name that you created, i.e. “CD Test“.
cd test

  • Now type in the following line: “copy /b DSC06578.JPG + Hidden.rar DSC06578.jpg” and press Enter. Do not use the quotes. You should get a response like below:
hide files in jpg

Just make sure that you check the file extension on the compressed file, whether it is .ZIP or .RAR as you have to type out the entire file name with extension in the command. I have heard that some people say that they have had problems doing this with a .ZIP extension, so if that doesn’t work, make sure to compress to a .RAR file.
And that’s it! The picture file will have been updated with the compressed archive inside! You can actually check the file size of the picture and see that it has increased by the same amount as the size of the archive.
You can access your hidden file in two ways. Firstly, simply change the extension to .RAR and open the file using WinRAR. Secondly, you can just right-click on the JPG image and choose Open With and then scroll down to WinRAR. Either way, you’ll see your hidden files show up that you can then extract out.
winrar

That’s it! That is all it takes to hide files inside JPG picture files! It’s a great way simply because not many people know it’s possible and no one even thinks about a picture as having to the ability to “hide” files. Enjoy!

How do i set up log off,shut down , restart in windows time setup

How do i set  log off,shut down , restart, Sleep in windows System  time setup

Before Application Run

After Application logoff time set 


Click Here to Download  System Timer





Friday, July 5, 2013

How can I open an .MDF file in SQL Server? (Attach Tutorial & Troubleshooting)

Let’s say someone wants to give you their SQL Server database. Maybe they want you to manage it, troubleshoot it, or learn from it. So they hand you a .MDF file and .LDF file and tell you that you need SQL server 2008 R2 to open them. So you

install SQL Server 2008 R2 Express (which, to your relief, is free). You open SQL Server Management Studio(SSMS), and you try to open the .MDF file. You get the following error:




There is no editor available for 'C:\Temp\MyDatabase.mdf'. Make sure the application for file type (.mdf) is installed.
The Solution:

.MDF files are SQL Server database files and .LDF files are the associated log files. But you can’t really “open” them. Instead, you have to “attach” to them. Once you attach, you’ll see the database in the object explorer of SSMS.
If you’re thinking, “Why wasn’t the Backup and Restore process used instead of passing around these database files?” It’s a valid question, but it doesn’t help the reader staring at .MDF and .LDF files with no clue how to access them. However, if you need to move a database around, you should do a search on “backup restore attach detach sql server” (without the quotes) in your favorite search engine. You’ll get lots of opinions to help you decide the best approach.

How to Attach in a Perfect World:


Click here to watch a video on this...

There’s a couple of different methods. I’ll give you the “easy” way through SQL Server Management Studio (SSMS) and then point you to other methods using T-SQL queries.
Launch SSMS.
Connect to your SQL Server Instance.
Right-click on Databases in the Object Explorer.
Click Attach.
In the Attach Databases window, click the Addbutton.
Navigate to the directory containing the .MDF and .LDF files.
Select the .MDF file, and press OK.
Press OK again to attach the database.

You should see the database appear in the Databases node (press F5 if you don’t). You can now explore the data using SSMS. These same steps are documented in the MSDN here. I’m just summarizing to make it easier for you.

There are two ways to accomplish the same thing in a T-SQL script. First, you can use thesp_attach_db stored procedure. This is shown here. Or you can use the CREATE DATABASE command with the FOR ATTACH argument.
So, the World isn’t Perfect

If your database is successfully attached, then stop reading and go use it. But if you see any errors or unexpected behaviors, I’ll try to share some troubleshooting suggestions.

First, you may get a generic error like the following..


An error occurred when attaching the database(s). Click the hyperlink in the Message column for details.

You might be asking, “Where’s the hyperlink?” I’ll show you in the next screenshot (circled in red), and it will also be our first example.
1. Access Denied:
Attach database failed for Server ###. (Microsoft.SqlServer.Smo) Unable to open the physical file “####”. Operating system error 5: “5(Access is denied.)”. (Microsoft SQL Server, Error 5120)

This access denied error could have a few different causes. Basically, you don’t have the required access to the .MDF or .LDF files. This can happen if you get the file from someone else. When they detach the database file, the file permissions are changed to give only that user full control. Also, even if you see that the file has full control for the Administrators group, it may not be enough. Remember in Windows 7/Vista, those permissions are often only realized when you’re running an application as an Administrator.

So here are several choices to fix it:
The easiest solution is to close SSMS and then run it as an Administrator. Perform the attach as an Administrator, and it’s likely going to work.
Another solution is to explicitly grant full control to the .MDF and .LDF files to your user account. This can be done by right-clicking the files, selecting Properties, and modifying the Security tab.
A final solution is to copy the files to the default directory for your other database files. To find out what that is, you can use the sp_helpfile procedure in SSMS. On my machine it is: C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA. By copying the files to this directory, they automatically get permissions applied that will allow the attach to succeed.
2. Access Denied Variation 2

There is another variation of the Access Denied message that has a simple solution:


Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc) CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file '####'. (Microsoft SQL Server, Error: 5123)

This error means that the file is already opened exclusively by another application. The most likely cause is that this database file is already attached to an instance of SQL Server. Double-check your list of databases to see whether it is already in the list. It’s also possible for applications to use .MDF files directly with a feature called User Instances. If an application is using a .MDF file in this way, then it would have to close before you could attach the to that database file.
3. Database is Read-only
This is not so much an error as an undesired result. When you load the database, it is in a read-only state. You can tell by the gray shading of the databasee icon (not to mention the “Read-Only” label next to it).



The most probable cause is that the .MDF file you attached to is read-only. Just right-click on the .MDF and .LDF files, select properties, and then uncheck the Read-only check box.


4. Unable to Downgrade

The next error happens when you try to attach a database of a higher version of SQL Server (like SQL Server 2008 R2) to a SQL Server Instance of a lower version (like SQL Server 2005).


Attach database failed for Server '####'. (Microsoft.SqlServer.Smo) An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) The database '####' cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported. Could not open a new database '####'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 948)

This has never been supported. You can attach a database of an older version of SQL Server to a newer version, but you can’t go the other direction. If you want to verify the version of SQL Server you’re running, see this post.
A Parting Word on Detach:

This post is just covering the scenarios of, “How do I open this .MDF file” and “Oh, I have to attach it, why am I getting errors?”. But how were these files obtained in the first place? The answer is that there is a corresponding Detach feature in SQL Server. You can find it by right-clicking on the database in SSMS, selecting tasks, and looking for Detach. Before you do this, though, run the sp_helpfile procedure in a query window in the context of your database. This will tell you *where* the detached .MDF file will be located. After you’ve detached the file, you can attach it to any SQL Server instance. Although this post was about Attach, I think it’s worth mentioning this for completeness.

How to Improve our Resume

In a slowing economy, you may need an effective resume to help you to obtain a telephone or in person interview. You may only have one chance to have your resume read by a given employer, so you may want to make a great impression the first time.
These tips, which cover how well your resume reads, looks, and presents relevant content, will help give you the best possible opportunity to land an interview, the next step you’ll need to complete to secure a position.
  • Objectives section. Some potential employers will tell you that a clearly written objectives section which shows how your skills and experiences map to the employers needs is ‘critical’ to gaining an interview. Other individuals, such as the original writers of this article will tell you If you have an Objective section, delete it. It rarely helps and can easily hurt you by needlessly pigeonholing you. Thus, you, the job applicant need to decide if you should have an objectives section. If you do have such a section, please be 100% sure that the section clearly maps your skills and experiences to the employers needs. A section simply stating: Seeking entry level position where I can learn… will not help you.
  • Keep the Skills section clear, brief and concise, especially on a technical resume. Hiring managers will usually skip it because they’re more interested in seeing your skills in context, which is in the bullet points of your Experience section.
  • For some positions, experienced employees may wish to place their Education section at the end of their resumes, where some hiring managers look for it. If you’re a recent graduate without extensive work experience, you should plan to put it at the top. If you have had more than one career relevant professional position, you need to consider the relative importance of your job experience vs. your academic experience in deciding where to place the Education section. If applying for an academic job, the Education section should, most likely, always remain at the top of your resume.
  • Use as few pages as possible (the actual length will depend on your profession). Extraneous information will divert attention from the heart of your resume. Be objective when deciding what information is truly relevant to the hiring manager. 1-2 pages is a great target for many non-academic resumes.
  • Do not mix future and past tenses. Bullet descriptions for your current job should be in the present tense (unless it’s describing a completed project) and descriptions for past jobs should be in the past tense.
  • Be consistent in your formatting. Do not bold one job title and italicize another. Do not italicize one former employer’s name and underline it for another. Pick a single style for each element and stick with it. If you make changes, check to make sure the changes are done consistently across the board.
  • Choose a clean, subtle font that’s easy to read and look at. For example, Garamond is a crisper, more refined font than Times New Roman. Also, make certain to choose a font that most PCs and Macs will have installed. See this list of fonts common to most PCs and Macs [1]. TIP: If you choose an uncommon font, you can save your file as a PDF and embed that font in the PDF document. You should also choose your font based on how your resume will be presented; sans serif fonts like Arial are best for viewing a resume on a monitor, where serif fonts like Garamond look better when printed on paper.
  • To increase readability and comprehension fine-tune your spacing. Studies have shown that maximum reading comprehension is attained when spacing is set at around 1.15x of the font size. For example, an 11 point font should have 13 point spacing. TIP: To automatically adjust line spacing in MS Word, select the text you want to adjust, then go to Format > Paragraph… Then, in the Paragraph window, change ‘Line Spacing:’ to ‘Multiple’ and then set ‘At:’ to 1.15 (you can tweak this number a bit if you are having trouble fitting a resume onto 1 or 2 pages). This method will give you perfect spacing regardless of what font size you choose.
  • Convert your resume to PDF format. Many potential employers require that your resume and cover letter be emailed or uploaded in PDF format. PDF stands for Portable Document Format; this type of document is widely requested because it maintains its appearance both on-screen (of nearly any computer) and in print. Documents may be saved in PDF format from many editors including Microsoft word. One might also buy Adobe Acrobat software or other conversion software such as Tweak Word To PDF 3.0. To start the conversion, you can either from the converter or from the file by the button.
  • Information on a resume should be listed in order of importance to the reader – your strengths, accomplishments should come first. Title/Position is most important so always list that first, then Company, Location, Dates.
  • Create a personal branding statement that describes who you are, your greatest strength, and what benefit you bring to your future employer.
  • Identify what makes you uniquely qualified for a position – a qualifications summary can catch a recruiter’s eye and get them to read more carefully.
  • Keep it short and pithy to catch a recruiter’s eye.
  • Use strong concrete verbs to describe what you did.
  • Use a bulleted, easy to read format rather than a paragraph style. It will make your strengths stand out.
  • Write your resume for the job you want – highlight past skills and experience that fit what you want to do.
  • Keep it to 2 pages, maximum.
  • Make your resume accomplishments driven, not responsibilities driven. Quantify wherever possible.
  • Focus on the last 10-15 years of experience; you don’t need to list early jobs unless they show skills and achievements that apply to the job you want – then only include those key facts.
  • Put jobs in reverse chronological order – most recent first.
  • Don’t put anything on your resume that you did not personally do.
  • Use a clear font – like Arial/Times New Roman/Georgia at an 11 point size. Avoid fluff, extra words, run on descriptions, and redundancy. Keep it clean and easy to read.
  • Include you education – school, program, any relevant classes that directly relate to the position you are applying for.
  • Be sure that any jargon you use in your resume is common knowledge. For students – if you are part of campus organizations you may need to explain more than just the name. For tech workers – make sure you use all acronyms consistently – don’t use UNIX and later Unix.
  • Do not use italics, script, shading, colors; do use bold and indents sparingly.
  • Do not use internal product names, use descriptions but make them brief.
  • Spell check your resume by printing it and reading it aloud. Have a friend proofread it to catch any mistakes you may have overlooked.
  • Edit and format carefully. You can even hire someone to do it for you, it’s worth the expense.
  • Name drop – if you worked with major customers include their names and how you supported those customers.

Resume Words

Achieved Analyzed Assembled Awarded Certified Composed Controlled Coordinated Created Delivered Designed Developed Devised Directed Educated Established Exceeded Founded Fully Credentialed Implemented Improved Increased Leadership Managed Minimized Monitored Negotiated Operated Organized Originated Oversaw Owned Prepared Problem Solving Programmed Published Reduced Reorganized Researched Reviewed Saved Simplified Supervised Tested Trained
Oral / Written Communications

Core Resume Components

  • Contact Information – name, address, phone number and email address. Include certification logos in the upper left or right corners.
  • Skills Summary/Branding Statement/Objective – The skills summary is recommended for experienced professionals. Branding statement is recommended for mid to senior level professionals with specific strengths companies are looking for. The objective statement is better suited for recent graduates.
  • Work Experience – Show progression and promotions. List titles, company name, location and dates
  • Education and Training – List highest degree first. Include continuing education.
  • Skills – Incorporate throughout resume. Resume should reflect the skills listed in the summary.
  • Activities – List only those activities that are relevant to the target job and non-controversial.
  • Organizations – relate affiliations in terms of marketable skills, knowledge and achievements.
Honors/Awards – Add only if relative to work, otherwise do not include. Technical certifications can be included here

Thursday, July 4, 2013

Auto Start Program on Windows Logon

Auto Start Programs on Windows Logon

How to enable / disable auto start program in vb.net and c#





enable auto start

Disable Auto start



Click Here to Download Auto- Start Program on C#