Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi everyone,

In enterprise library 5 when i'm using App.Config with incorrect connectionString with name "test" and use this line:
C#
Database DB = DatabaseFactory.CreateDatabase("test");

DB created successfully but when the following line executed there is a substantial delay followed by exception:
C#
DataTable dt = DB.ExecuteDataSet(SPName, Params).Tables[0];

i'm asking about the substantial delay why ??!!!
Posted

1 solution

the delay is because it's trying to connect to a database that doesn't exist, at least i'm assuming that since you say the connection string is incorrect.
 
Share this answer
 
Comments
AhmedYehiaK 30-Dec-12 6:58am    
I know that the delay because of incorrect connection string but it's not ordinary delay it's substantial delay that reach 1 min !!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900