Re: SQL Timeout Error
- From: Accesshelp <Accesshelp@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 Jun 2009 10:31:02 -0700
Robert,
First of all, I am using Express versions of SQL Server 2005 and SQL Server
Management Studio. Currently, SQL Server 2005 Express is installed on my
hard drive. I am just playing around with it while I am waiting for my IT
department to create a regular version of SQL Server 2005 for me. Therefore,
I don't think I have a .net client application. If I do, where do I go to
debug it? Plus, I don't think I have the things (SqlDataSource, etc.) that
you are asking for. If I do, where can I find them?
I don't know it will relate to what you are looking for. When I finish with
this project, I will have SQL Server as my back-end database and Access as my
front-end database.
Below is the code for my View that I am getting the error:
USE [Database]
GO
/****** Object: View [dbo].[View] Script Date: 06/23/2009 13:12:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[View]
AS
SELECT tblField
FROM dbo.Table
GROUP BY tblField
Thank you for your helps and your patience.
"Robert Lakinski" wrote:
.
Thanks for your response. How can I check whether SqlConnection object is
estiablished
By debugging your .net client application. Can you post some code?
Which version of Visual Studio are you using ?
What kind of data access objects are you using: SqlDataSource,
SqlDataAdapter or SqlCommand, linq ...?
Robert Lakinski
, and how do I set the CommandTimeout property? I am sorry I am
still new to SQL Server.
Thanks.
"Robert Lakinski" wrote:
Hi, AccessHelp
If you are using .net client app to select data from the view, check the
following:
1. Whether SqlConnection object establishes connection to the sql server
successfully - check ConnectionString, ConnectionTimeout property
(default
= 15 sec)
2. If the connection was established, you may need to set the
CommandTimeout
property of the SqlCommand object to a value > 30 sec (default = 30 sec)
Robert Lakinski
"Accesshelp" <Accesshelp@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8C19B329-0148-4EDE-A1EC-A2E3A3674C47@xxxxxxxxxxxxxxxx
Good morning all,
I just created a View, and when I tried to run it, I received the
following
error message:
error message: timeout expired. the timeout elapsed prior to
completion
of
the operation or the server is not responding.
error source: .Net SqlClient Data Provider
When I researched the above error message via Google, the solution is
to
run
the CommandTimeout, and I don't know how to run it.
First of, if the CommandTimeout is the solution to the error, can you
tell
me how to run it?
If the CommandTimeout is not the solution, can you help me with the
error?
Thanks.
- References:
- SQL Timeout Error
- From: Accesshelp
- Re: SQL Timeout Error
- From: Robert Lakinski
- Re: SQL Timeout Error
- From: Accesshelp
- Re: SQL Timeout Error
- From: Robert Lakinski
- SQL Timeout Error
- Prev by Date: Re: SQL Timeout Error
- Next by Date: Re: Multiple databases performance
- Previous by thread: Re: SQL Timeout Error
- Next by thread: Use view or sp?
- Index(es):
Relevant Pages
|