Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

Friday, December 30, 2011

ERROR "MSDTC" DURING SUBMIT OF ACCOUNT IN SQL2008


First login to the system with Administration previleges and do the following
To allow the network transaction, you must enable MSDTC. To do this, follow these steps:
a. Click Start, and then click Run.
b. In the Run dialog box, type dcomcnfg.exe, and then click OK.
c. In the Component Services window, expand Component Services, expand Computers, and then expand 
    My Computer.
d. Right-click My Computer, and then click Properties.
e. In the My Computer Properties dialog box, click Security Configuration on the MSDTC tab.
f. In the Security Configuration dialog box, click to select the Network DTC Access check box.
g. To allow the distributed transaction to run on this computer from a remote computer, click to select the Allow Inbound check box.
h. To allow the distributed transaction to run on a remote computer from this computer, click to select the Allow Outbound check box.
i. Under the Transaction Manager Communication group, click to select the No Authentication Required option.
j. In the Security Configuration dialog box, click OK.
k. In the My Computer Properties dialog box, click OK.
Note:
After following the above steps configure the servernames in treasury and Point of Sale.
If the problem is not solved configure the servernames using ip address of sql server.

Sunday, December 18, 2011

Scheduling of Database Backup in SQL Server 2008 Express

Scheduling of backups not possible in SQL server 2008 express editiion, because sql server agent is not present in SQL express eidition. The daily back up of database is important in post office environments. A disaster plan is the type of document you hope you never need. But a disaster plan is a key element of systems administration strategy because of the risk of disaster presented by hardware failures, natural catastrophes, network intrusions, and human error. The risk of disaster is particularly high for databases.

Simple tool for scheduling of database in SQL server 2008 can be downloaded from the following site

Sunday, August 28, 2011

Set SA Password in SQL Server Management Studio Express


During the installation of SQL Server,we select mixed mode authentication and give complex password for sa. Sometime we may need to change the password of sa.
To change the password of sa follow the below steps.
1.Open SQL Server Express Management Studio.
2.Connect to SQL Server using windows authentication.
3. Expand the server and choose security and expand logins.
4. Right click on sa, from properties modify the password and confirm password
5. Uncheck Enforce password policy.
6.Click OK

Sunday, August 21, 2011

SQL Server 2008 - Interview Questions and Answers



1. What are the basic functions for master, msdb, model, tempdb and resource databases?
1.     The master database holds information for all databases located on the SQL Server instance and is theglue that holds the engine together. Because SQL Server cannot start without a functioning masterdatabase, you must administer this database with care.
2.     The msdb database stores information regarding database backups, SQL Agent information, DTS packages, SQL Server jobs, and some replication information such as for log shipping.
3.     The tempdb holds temporary objects such as global and local temporary tables and stored procedures.
4.     The model is essentially a template database used in the creation of any new user database created in the instance.
5.     The resoure Database is a read-only database that contains all the system objects that are included with SQL Server. SQL Server system objects, such as sys.objects, are physically persisted in the Resource database, but they logically appear in the sys schema of every database. The Resource database does not contain user data or user metadata.
2. What is Service Broker?
Service Broker is a message-queuing technology in SQL Server that allows developers to integrate SQL Server fully into distributed applications. Service Broker is feature which provides facility to SQL Server to send an asynchronous, transactional message. it allows a database to send a message to another database without waiting for the response, so the application will continue to function if the remote database is temporarily unavailable.
3. Where SQL server user names and passwords are stored in SQL server?
They get stored in System Catalog Views sys.server_principals and sys.sql_logins.

4. What is Policy Management?
Policy Management in SQL SERVER 2008 allows you to define and enforce policies for configuring and managing SQL Server across the enterprise. Policy-Based Management is configured in SQL Server Management Studio (SSMS). Navigate to the Object Explorer and expand the Management node and the Policy Management node; you will see the Policies, Conditions, and Facets nodes.
5. What is Replication and Database Mirroring?
Database mirroring can be used with replication to provide availability for the publication database. Database mirroring involves two copies of a single database that typically reside on different computers. At any given time, only one copy of the database is currently available to clients which are known as the principal database. Updates made by clients to the principal database are applied on the other copy of the database, known as the mirror database. Mirroring involves applying the transaction log from every insertion, update, or deletion made on the principal database onto the mirror database.
6. What are Sparse Columns?
A sparse column is another tool used to reduce the amount of physical storage used in a database. They are the ordinary columns that have an optimized storage for null values. Sparse columns reduce the space requirements for null values at the cost of more overhead to retrieve nonnull values.
7. What does TOP Operator Do?
The TOP operator is used to specify the number of rows to be returned by a query. The TOP operator has new addition in SQL SERVER 2008 that it accepts variables as well as literal values and can be used with INSERT, UPDATE, and DELETES statements.
8. What is CTE?
CTE is an abbreviation Common Table Expression. A Common Table Expression (CTE) is an expression that can be thought of as a temporary result set which is defined within the execution of a single SQL statement. A CTE is similar to a derived table in that it is not stored as an object and lasts only for the duration of the query.
9. What is MERGE Statement?
MERGE is a new feature that provides an efficient way to perform multiple DML operations. In previous versions of SQL Server, we had to write separate statements to INSERT, UPDATE, or DELETE data based on certain conditions, but now, using MERGE statement we can include the logic of such data modifications in one statement that even checks when the data is matched then just update it and when unmatched then insert it. One of the most important advantages of MERGE statement is all the data is read and processed only once.
10. What is Filtered Index?
Filtered Index is used to index a portion of rows in a table that means it applies filter on INDEX which improves query performance, reduce index maintenance costs, and reduce index storage costs compared with full-table indexes. When we see an Index created with some where clause then that is actually a FILTERED INDEX.

For more : SQL Server 2008 - Interview Questions and Answers - Download

Friday, August 19, 2011

Compatibility With SQL Server 2005



The ntwdblib.dll module is associated with the Microsoft SQL Server program. This is an essential file and should not be removed if you have SQL Server installed on your computer.
It is essential for Sanchaypost With SQL2005
Copy ntwdblib.dll into c:\Windows\System32 folder in the server & nodes having SQL 2005. 


Download

Friday, January 28, 2011

SQL Error - MMC cannot open the file


MMC cannot open the file C:\Program Files\Microsoft SQL Server\80\Tools\BINN\SQL Server Enterprise Manager.MSC.
Upon clicking on the SQL Server Enterprise Manager shortcut the following error occurs:
MMC cannot open the file C:\Program Files\Microsoft SQL Server\80\Tools\BINN\SQL Server Enterprise Manager.MSC.
This may be because the file does not exist, is not an MMC console, or was created by a later version of MMC. This may also be because you do not have sufficient access rights to the file.
The msc file did exist and I definately has permissions to it.  So I can only assume it some how got corrupt.
The solution to this is fairly simple... either get another copy of this file, or create one, as follows:
1.     Select Start - Run.
2.     At the Open prompt enter: mmc
3.     Click OK
4.     Select File - Add/Remove Snap-in...
5.     Click Add...
6.     Select Microsoft SQL Enterprise Manager
7.     Click Add, then Close
8.     Click Ok to return to the mmc.
9.     Select File - Save As...
10.  Delete or rename the original (offending) file out the way.
11.  Save the new msc file as C:\Program Files\Microsoft SQL Server\80\Tools\BINN\SQL Server Enterprise Manager.MSC
Now your original shortcut should work.
Alternatively you can always access Enterprise Manager from within the Computer Management mmc.

Alternate Method
at command-line:

RegSvr32 MSXML.DLL
RegSvr32 MSXML2.DLL
RegSvr32 MSXML3.DLL 

or

regsvr32 C:\Windows\system32\msxml.dll
regsvr32 C:\Windows\system32\msxml2.dll
regsvr32 C:\Windows\system32\msxml3.dll

Friday, August 14, 2009

SQL Backup & database Maintenance Plan

For Taking SQL backup
Backup Database ( Single Database )

Start -> programes -> Microsoft SQL Server -> Enterprise Manager ->
Server -> Database -> ( Select Database) All Task -> Backup Database -> Add -> Give Backup Path & filename -> Ok ->
----------------------------------------------------------
Restore Database ( Single Database Eg. Database Name as xxx )
Start -> programes -> Microsoft SQL Server -> Enterprise Manager -> Server -> Database ->
(Due to Security Problem it is not explained here)
Ok
----------------------------------------------------------
Database Maintenance Plan (Database Backup)
Management -> Database Maintenance Plan ->
New Maintenance Plan -> Select Databases
( All or user or Selected )
Next -> Next -> Next ->
Specify the database Backup Plan (Apply Tick )
Specify the Transaction log Backup Plan (Remove Tick)
Change the Job Time
Specify the DB Backup Disk Directory
Option : Use This Directory
( eg. E:\BACKUP for Local Backup
(eg file://CLIENT/BACKUP for Network Backup )
Next -> Next -> Next -> Next -> Plan Name
( eg. SERVER DAILY 16.00 HRS )
Finish

The Schedule has Starts in the correct time if the system is in ON condition

Database Maintenance Plan ( Transaction log File Backup )

Management -> Database Maintenance Plan ->
New Maintenance Plan -> Select Databases
( All or user or Selected )
Next -> Next -> Next ->

Specify the database Backup Plan (Remove Tick )
Specify the Transaction log Backup Plan (Apply Tick)

Change the Job Time
Specify the DB Backup Disk Directory
Option : Use This Directory
( eg. E:\BACKUP OR file://CLIENT/BACKUP)

Next -> Next -> Next -> Next -> Plan Name
( eg. SERVER DAILY 16.00 HRS )
Finish
Alasan Memilih Bergabung di Pulsagram Allowances Announcements APLIKASI HP APLIKASI PC Banking bisnis internet BISNIS ONLINE BOLA BSNL Business Cara Buat Akun Liberty Reserve (LR) Cara Daftar Di Neobux Cara kerja Copy Paste Cara mendapatkan uang dari duitbux Cara Mendapatkan Uang dari Facebook Melalui Like To Cash Cara Mudah Cari Dollar Via Donkeymails Cara mudah dapat uang melalui internet dengan Dollarsincome CEA CGHS Computer Guidelines Customer Care dapat dollar gratis Dollar Dari Clicksense Dollar Dari Neobux dollar gratis DOP News DOP Orders DOPT Orders DOWNLOAD Education Employees News Employment News Entertainments Events Exam / Result Exam / Syllabus FACEBOOK FAQ For System Administrators Forms GDS General Informations General Knowledge GOVT Orders Guidelines Hardwares Health Tips Holiday Home Honorarium / Incentives Income Tax INFO KITA Info Lowongan Kerja Internet Tips IPO JOB COPAS Jual KERJA COPY PASTE Kerja Sampingan Kode Bank Indonesia Latest Software Updates Leave Rules Lowongan kerja aman Lowongan kerja copy paste LOWONGAN KERJA ONLINE LTC MACP Mails MASTER BURUNG Membuat Account PayPal Menaikkan atau menurunkan berat badan dengan Herbalife Menghasilkan Uang dari PTC Lokal Wisbux Mobile Tips National Pension System (NPS) Network Trouble shooting News Obat Pemutih Gigi Membuat Gigi Putih Berseri Pay Commission Pension Persmin Pie Susu Bali Paling Enak dan Asli Yah Merek Kami... PLI and RPLI PointOfSale Postal Informations Postal Savings Schemes Printer Trouble shooting Printing Tips Project Arrow ptc terpercaya Questions / Answers Railway Recovery Tips Registry Tips Registry Tools Reimbursement rental mobil di surabaya RMS Rulings SanchayPost Savings Scheme SB Orders SBCO Security Guidelines Security Tips sewa mobil di surabaya Software Tips Softwares SQL Staffs and Welfare Tanya - Jawab Technology TEMPLATE Testimoni Tips and Tricks TN - தமிழ்நாடு Tools Training Transfer / Postings Trouble shooting UnCategorized Union News Useful Softwares Utilities Verifikasi PayPal tanpa Credit Card Virus Solutions Websites windows 7 Windows Server Windows Tips Windows Vista wootekh biolo slimming capsule wsc biolo world slimming capsule biolo