|
|
All your Url are belong to us.
We are the Dot of B0rg.
We take Dot at the end of Url.
var question = (_2b || !(_2b));
|
|
|
|
|
Hi All
I am facing SQL Server Timeout exception.
try
{
SetStoredProcCommand(SPRetrieveIntSchedReport, DatabaseConfigKey);
AddInParameter("@FromDate", DbType.DateTime, schedule.FromDate);
AddInParameter("@ToDate", DbType.DateTime, schedule.ToDate);
AddInParameter("@ApplnType", DbType.String, schedule.ApplnType);
IDataReader dataReader = ExecuteReader();
while (dataReader.Read())
{ .....}
}
When the control reaches the data reader its taking much time to enter the WHILE loop, and some times its getting in and its done fine,but sme times facing this SQL SERVER TIMEOUT EXCEPTION.
please help.
Thanks in advance.
Reagrds
Pavan
|
|
|
|
|
You can increase the timeout on your connection/command, or better still optimise your proc as you may be doing a table scan or something similar - no way to tell from your code.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi
i have increased the timeout duration, and optimized the query as simple as i can.
Any settings to be changed in the IIS ?
Thanks
pavan
|
|
|
|
|
pavan.kumar,sai wrote: i have increased the timeout duration,
Set it to 0 to run the query indefinately .ie until you get the result.
When you fail to plan, you are planning to fail.
|
|
|
|
|
where to do that and how to do that ??
|
|
|
|
|
use the sqlcommand CommandTimeOut property....
ie
your_cmd_obj.CommandTimeOut=0
When you fail to plan, you are planning to fail.
|
|
|
|
|
I am using a datareader ...and not using it through commands, so we cant set it ...
|
|
|
|
|
In which case I suggest you consider some of the followng:
- do you need to return all the data at once?
- could the underlying data be denormailised into reporting tables?
- could some of the data be cached?
- could the indexing be improved?
I am fairly certain that if the query times out, and you are displaying the data on a web page it will be pointless, as nobody wants to wait ages for a page to load.
Hopefully this may guide you to a solution
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi
it is something like report grnearion,based on the user input a report is generated.
yes i am trying to display in the format of tables only.
But sometimes i can get it perfectly, and sometimes it throws the timeout exception ?
any case related to IIS ?
Thanks
Pavan
|
|
|
|
|
What about load on the sql server? Any locking causing problems, that sort of thing? Without actually being there its difficult to pinpoint where the problem is.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
How to display text in status bar in all browers using javascript
Am using window.status="text message" to display the in status bar, its working fine in IE6, but its not working in IE7 and in other browers.
Anyone please help me out to solve this problem.
beula
CMOTS INFOTECH
|
|
|
|
|
antony beula wrote: Am using window.status="text message" to display the in status bar, its working fine in IE6, but its not working in IE7 and in other browers.
Here you Go.
How To Enable window.status in Firefox[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Thanks a lot for your reply.
Its not possible for me to enable window.status in client machine.
Is there any other solution to display text in status bar using asp.net or javascript
beula
CMOTS Infotech
|
|
|
|
|
Hi all,
I am generating drop down list boxes for every row of the gridview using the itemTemplate in template Field, i want to give different ID's for each drop down list, how can i do it???
Please help.........
scarface
|
|
|
|
|
Hi,
if you placed dropdown list inside the item templage, i think it is not possible to give the different ids for each dropdownlist.
|
|
|
|
|
Hi,
I want to know wheather a Repeator Control:
1. can accept data from the database instead of XML files?
2. can hold an image control?
If yes plz get me some sampples.
|
|
|
|
|
Subin Alex wrote: Hi,
I want to know wheather a Repeator Control:
1. can accept data from the database instead of XML files?
2. can hold an image control?
Here[^]You Go
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi,
"I want that my website should be viewable to 10,000 persons at the same time.
Also they might insert, or delete data from the database.
How will you do it".
This was one of the questions posed in an interview.
Apart from poolsize, what should I answer for the above question.
Regards
cmrhema
|
|
|
|
|
cmrhema wrote:
"I want that my website should be viewable to 10,000 persons at the same time.
Also they might insert, or delete data from the database.
How will you do it".
Hmm..
Did you ever check top left corner of in Codeproject Sites, that 6,006,898 members and growing! (24,514 online)
It means all online user may view the sites same times and can insert post, replying on post [ AS I am doing ], etc....
cmrhema wrote: This was one of the questions posed in an interview.
Apart from poolsize, what should I answer for the above question.
This is very common behavior of web sites, for large number of user you many need a strong backend server and all user need to maintain by session only
You can also set the maximum number of request in IIS. Create Separate Application Pool for the Site, assign that Application pool, change the Application pool Maximum Request Limit.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
hi there! I need to have a map of USA which can be clickable and depending from the state selection, to display different data. Can someone give me some example how I can do this or guide me to some address where I can see some example. Thanks
|
|
|
|
|
|
in my web app when update link is clicked at the page load it fill the textboxes with current user detail, and then these data can be changed. after changing the data when click on the update button the page refresh and load the previous data replacing new data, how can i over come this problem can i stop the page being refreshed when the button clicked
|
|
|
|
|
actually if you are filling that data on page load then you are not using page.ispostback check there... thats why your older data gets filled in texboxes you dont need to stop refresh behaviour of server side button...
its a logical problem not the control related..
Government Dyal Singh College Lahore.
|
|
|
|