Sri Lanka .NET Forum
a mission and a vision with .NET

Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • Re: How can i write error tracking code to store procedure

    Hi Lakmal, If you are using SQL Server 2005: Try using a Try-Catch block within the loop and increment the loop counter in the Catch block. If you are using SQL Server 2000: Try using the following code after each statement in the loop: IF @@ERROR != 0 GOTO ErrHandler Then at the end of the loop write...
    Posted to SQL Server (Forum) by Gogula G. Aryalingam on 05-18-2009
  • Re: How to do Transaction Lock

    As I know; You don't have to lock tables manually, you just need to use a SqlTransaction in C# as below, SqlTransaction tran; SqlConnection con = new SqlConnection("<connectionString>"); SqlCommand com = new SqlCommand(con,""); try { tran = con.BeginTransaction(); com.Transaction...
    Posted to SQL Server (Forum) by SAP on 01-08-2009
  • Re: problem in Stored procedures

    SP: http://www.hasmeer.blogspot.com/
    Posted to SQL Server (Forum) by Hasraj on 12-19-2008
  • Re: Choose best one

    Using Stored procedures is a more standard way and easy to maintain, but it initially take time but long time worth. Using SQL statements is more easy and can apply more security in application leve, but difficult to maintain and read. It is up to you to mix it up with your requirements.
    Posted to SQL Server (Forum) by SAP on 11-24-2008
  • Re: What are the writting standards for writting SQL Queries

    I have few reasons for this answer. Database should be running on a server. Stored procedures are saved on the database and purpose of the stored procedures is executing some sql commands within the database. So Stored procedures doesn't transfer through the network ( According to myknowledge) So...
    Posted to SQL Server (Forum) by chaminLanerole on 07-24-2008
  • Re: IF Condition inside where clause

    I wants to avoid repeating same codings . for a example BEGIN IF (@InteractionID > 0 and @MainTypeID > 0 and @CallTypeID = 0 AND @ActionTypeID = 0) BEGIN set @RestCoding = 'where H_CustomerCallLog.CallInteractionTypeID = @InteractionID and H_CustomerCallLog.CallMainTypeID = @MainTypeID '...
    Posted to SQL Server (Forum) by wasundara on 07-07-2008
  • IF Condition inside where clause

    I need to use IF condition inside Where clause for a Stored procedure . Please send me sample codings for that. Thank you.
    Posted to SQL Server (Forum) by wasundara on 07-07-2008
  • Re: Storedprocedure and Triggers

    Stored procedures and triggers are both sets of SQL statements that are stored on the SQL Server with a given name. A stored procedure can be called explicitly, which would in turn execute the code defined within it. Whereas, a trigger is created for a particular table and is executed implicitly when...
    Posted to SQL Server (Forum) by Gogula G. Aryalingam on 04-21-2008
  • Re: for loop in sp

    Hi, You can perform the required operation without using loops using set-based operations (which T-SQL is all about). I have tried to understand your problem and have come up with an SP. See if this is what you want: CREATE PROCEDURE UpdateInventory @strItemNumber varchar ( 10 ) AS BEGIN DECLARE @fltActualPrice...
    Posted to SQL Server (Forum) by Gogula G. Aryalingam on 04-03-2008
  • Restore,Change the current DB within SP,Disable trigger

    Im restoring a database every month-end to another server and its executing this task within a stored proc. for an example, April DB name is ABC200804 (Last 6 digits are vary). after restoration completed, I need to change some sensitive data (Like credit card information) in to dummy numbers. to do...
    Posted to SQL Server (Forum) by xDep on 04-01-2008
Page 1 of 2 (14 items) 1 2 Next >
This space is available for you to advertise. Please contact admin@dotnetforum.lk for more details on how to advertise on the .NET Forum.
Copyright © Sri Lanka .NET Forum. All Rights Reserved. Terms of Use | Privacy Policy