StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Issues
»
HELP!!!! SQLEXPRESS and Connection Issue
HELP!!!! SQLEXPRESS and Connection Issue
Post Reply
Like
2
HELP!!!! SQLEXPRESS and Connection Issue
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
posted 14 Years Ago
ANSWER
HOT
Topic Details
Share Topic
Group: Forum Members
Posts: 153,
Visits: 462
I was using the 6 month trial on SQL 2008 and had to create the same database in SQL Express 2008. Both are identical with the same user ID and password to get into that database for both. When I set the default connection to SQL 2008 and start my application the log in appears instantly. When I set the default connection to SQL Express when I start the app there is a 60 second delay and then the Connect Manager appears. I simply SELECT the default connect of SQL Express and the login instantly appears. What can be going on? It is almost as though the delay is some kind of a timeout in relation to SQL EXpress that then causes the Connect Manager to appear. I am running the latest version of StrataFrame
Reply
Like
2
Replies
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 153,
Visits: 462
I want to try to set the timeout on the connection to see if this helps. How do you do this in the program.cs file? I think I need to increase the timeout somewhere in the framework related to:
SFSPreferencesBO.RetrieveSecurityPreferences(); This may be causing my problem above.
I also have SQL Express tools loaded on the client workstation. When I tried to connect to the SQL Express database, it times out. Then if I try immediately again it connects. I noticed the default connection timeout was 30 seconds on the SQL Manager Tools login. I changed this to 60 secons and it connected the first time with no time out. So from this I am assuming there is some setting at startup of the SF Frameout that needs to be changed to allow a greater amount of time before timeout.
Edited
14 Years Ago by
Ross L. Rooker, Sr.
Reply
Like
2
Ivan George Borges
Ivan George Borges
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame MVPs
Posts: 1.9K,
Visits: 21K
It looks like you are getting a timeout while filling a BO, as it shows on your stack trace:
at visualOfficeNet.frmMain.tblUCompany_ParentFormLoading() in C:\visualOfficeNet\visualOfficeNet\frmMain.cs:line 525
If you would like to try to change the timeout prior to the filldatatable, you can use the CommandTimeout, increasing it or even telling it to wait forever:
'-- Establish locals
Dim loCommand As New SqlCommand()
'-- Create the command
loCommand.CommandText = "SELECT * FROM YourTable"
'-- if you want to wait as long as it takes, set CommandTimeout to zero
loCommand.CommandTimeout = 0
'-- if you want to wait like 60 seconds, set CommandTimeout to 60
loCommand.CommandTimeout = 60
'-- Execute the command
Me.FillDataTable(loCommand)
Reply
Like
2
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
HELP!!!! SQLEXPRESS and Connection Issue
Ross L. Rooker, Sr.
-
14 Years Ago
Hi Ross, Check your connection string which may be pointing to the SQL...
Edhy Rijo
-
14 Years Ago
Yup... sounds like it is trying to use your old connection string....
Keith Chisarik
-
14 Years Ago
I already tried deleting the connection.dat files and the first time...
Ross L. Rooker, Sr.
-
14 Years Ago
[quote][b]Ross L. Rooker, Sr. (2/5/2012)[/b][hr] ... then before the...
Ivan George Borges
-
14 Years Ago
Yes in the programs.cs there is this code: So it appears as though...
Ross L. Rooker, Sr.
-
14 Years Ago
Also, I did not delete the localization file from the Documents and...
Ross L. Rooker, Sr.
-
14 Years Ago
I basically just commented out this section of code which was written...
Ross L. Rooker, Sr.
-
14 Years Ago
After I commented out the code above, the login screen instantly...
Ross L. Rooker, Sr.
-
14 Years Ago
On the post above when commenting out those lines, it seems that the...
Ross L. Rooker, Sr.
-
14 Years Ago
Well, the most obvious thing to me is that you are trying to make a...
Trent L. Taylor
-
14 Years Ago
I want to try to set the timeout on the connection to see if this...
Ross L. Rooker, Sr.
-
14 Years Ago
It looks like you are getting a timeout while filling a BO, as it...
Ivan George Borges
-
14 Years Ago
I did as you suggested: Go back to your program.cs and open the...
Ross L. Rooker, Sr.
-
14 Years Ago
Post Reply
Like
2
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search