473,385 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Performance : Stored Pocedure taking more parameters

Hi,
Currently I am developing ASP.Net 2.0 application using SQL Server 2005
I need to create a stored procedure that upadates 10 Tables with parameters around 500. I use Microsoft Data Application Block for DAL.

Database db = DatabaseFactory.CreateDatabase("Con");
DbCommand cmd = db.GetStoredProcCommand("spI_SiteDetails");

db.AddInParameter(cmd,"@SiteId",DbType.String,Prop erties.SiteId);
db.AddInParameter(cmd,"@Client",DbType.Int16,Prope rties.Client);
db.AddInParameter(cmd,"@Country",DbType.Int16,Prop erties.Country);
db.AddInParameter(cmd,"@Circle",DbType.Int16,Prope rties.Circle);
db.AddInParameter(cmd,"@Region",DbType.String,Prop erties.Region);
db.AddInParameter(cmd,"@SiteName",DbType.String,Pr operties.SiteName);
if (Properties.SiteType == "0")
{
db.AddInParameter(cmd, "@SiteType", DbType.String, null);
}
else
{
db.AddInParameter(cmd, "@SiteType", DbType.Int16, Convert.ToInt16(Properties.SiteType));
}
db.AddInParameter(cmd, "@SiteAddress", DbType.String, Properties.SiteAddress);
db.AddInParameter(cmd,"@TowerHeight",DbType.Int16, Properties.TowerHeight);
if (Properties.EquipType == "0")
{
db.AddInParameter(cmd, "@EquipType", DbType.String, null);
}
else
{
db.AddInParameter(cmd, "@EquipType", DbType.Int16, Convert.ToInt16(Properties.EquipType));
}
db.AddInParameter(cmd,"@Latitude1",DbType.Int16,Pr operties.Lat1);
db.AddInParameter(cmd,"@Latitude2",DbType.Int16,Pr operties.Lat2);
db.AddInParameter(cmd,"@Latitude3",DbType.Decimal, Properties.Lat3);
db.AddInParameter(cmd,"@Longitude1",DbType.Int16,P roperties.Long1);
db.AddInParameter(cmd,"@Longitude2",DbType.Int16,P roperties.Long2);
db.AddInParameter(cmd,"@Longitude3",DbType.Decimal ,Properties.Long3);
db.AddInParameter(cmd,"@IntimGivenPln",DbType.Date Time,Properties.IntimPln);
......
db.ExecuteNonQuery(cmd);
errormsg = db.GetParameterValue(cmd, "ErrorMsg").ToString();
Please help me to increase the perfomanace of this DAL.

Thanks,
Uma Ramiya
Mar 28 '07 #1
0 1353

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
6
by: AC Slater | last post by:
Hi All, Out of nowhere my udb system (v8) performance has went terrible. Its gotten about 10x worse, (some tests that used to take 2 seconds to run now take 20)... I'm not sure what happened. ...
5
by: Andrew Werden | last post by:
I've inherited some code that calls SYSIBM.SQLPROCEDURES to validate user provided parameters and text prior to executing a stored procedure. This code was written on an early UDB release (V6?)...
7
by: andrew | last post by:
Does anyone know if there are any plans to address SQLprocedures() API performance in UDB 8.1 client/server? 8.1 SQLprocedures() API call is implemented through SYSIBM.SQLPROCEDURES(?,?,?,?)...
2
by: Mark | last post by:
I created a test to check the execution time difference between executing a SQL Server stored procedured using explicit parameters versus not. In one case I created new SqlParameters in the code,...
6
by: SandySears | last post by:
I am trying to use a stored procedure to insert a record using VS 2005, VB and SQL Server Express. The code runs without errors or exceptions, and returns the new identifer in the output...
5
by: ric_deez | last post by:
Hi there, I would like to create a simple search form to allow users to search for a job number based on a number of parameters. I think I understand how to use parameteres associated with Stored...
9
by: Frank | last post by:
Hi, imagine there's a WEB application reading data from an Oracle database to visualize in using DataGrids in the clients browser. Yes, sounds simple, just create OracleConnection + OracleCommand...
7
by: Otto Carl Marte | last post by:
I have noticed an incredible difference in performance between DB2 LUW v8.2.5 and V9.1.1 with regards to CLOBs. I will sketch the scenario i have tested. I created a table with 1 Integer column,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.