Programming Tutorials on XHTML, CSS, JavaScript, JQuery, JSON, Python, Django, Amazon Web Services, ASP.NET, Web Forms, and SQL
Monday, January 28, 2013
ORA-00056 DDL lock on object 'string.string' is already held in an incompatible mode
Error Code
ORA-00056
Description
DDL lock on object 'string.string' is already held in an incompatible mode
Cause
A possible cause of this error is that an attempt was made to acquire a DDL lock that is already locked.
Action
This happens if you attempt to drop a table that has parse locks on it.
reference
Tuesday, December 18, 2012
Consume ASMX web Service in ASP.NET 4.0
In last tutorial, we learn How to Create ASMX web Service in ASP.NET 4.0. This tutorial guides how to consume it.
- Add new aspx page. Right click on Website and click 'Add New Item'. A new window will appear.
- Select 'Web Form' and name it according to your choice.
- Create new object of web service by writing following code:
- Call web service method by writing following code:
Labels:
.Net,
c#,
web service
Saturday, November 24, 2012
How to Create ASMX web Service in ASP.NET 4.0
Asmx Web Services are easy and simple to Create and use. This tutorial guides you how to write a ASMX Web Service step by step.
In next tutorial, we will learn how to use this Web Service.
- Open Visual studio and create new Website.
- Right Click on Website and Click on 'Add New Item'.
- A New Window will Open, select 'Web Service' , name it and click 'Add'.
- When you click 'Add' Button, new files ( with .asmx and .cs extensions ) will be added to Project.
- Visual Studio will add some code in it.
- A default Web Method named 'Helloworld' will also be added in it.
- You have created ASMX Web Service Successfully.
- Replace 'Helloworld' Web Method with following code.
- This is Custom Web Method we created for our ASMX Web Service.
In next tutorial, we will learn how to use this Web Service.
Labels:
.Net,
c#,
web service
Monday, July 23, 2012
Advantages of Stored Procedure in Microsoft SQL Server
There are many advantages of using stored procedures in Microsoft SQL Server. These are :
- Easier to maintain and troubleshoot as they are modular.
- Stored procedures enable better tuning for performance.
- While using stored procedures is much easier from a GUI end than building complex queries.
- Stored procedures help in reducing network usage.
- Stored procedures provide more scalability to an application.
- Reusable and hence reduce code.
- Stored procedures can be part of a separate layer which allows separating the concerns. Hence Database layer can be handled by separate developers proficient in database queries.
How to Code Efficient Transactions in Microsoft SQL Server
To Code efficient transactions in Microsoft SQL Server, We must take care of following things :
- Don't allow input from users during a transaction.
- Don't open transactions while browsing through data.
- Keep the transaction as short as possible.
- Use lower transaction isolation levels.
- Access the least amount of data possible while in a transaction.
Subscribe to:
Posts (Atom)