StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
More control over ConnectionManager
More control over ConnectionManager
Post Reply
Like
1
More control over ConnectionManager
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Leonard P.
Leonard P.
posted 15 Years Ago
ANSWER
HOT
Topic Details
Share Topic
Group: Awaiting Activation
Posts: 65,
Visits: 306
Hi,
I have a few questions regarding connection manager.
First I need to be able to "purge" all connections stored on user machine in Connections.dat.
This is what I came up with so far:
private static void PurgeConnections()
{
try
{
string connectionDat = Path.Combine(ConnectionManager.ConnectionDataFolder, "Connections.dat");
File.Delete(connectionDat);
}
catch
{ }
}
Does this make sense?, or is there something within SF that I could use? Also my concern is when this code runs on the machine where loged user is not in admin or power user roles. Would this code work?
Second, is there a way to write a new connection string to Connection.bat without calling .SetConnection or .ShowAvailableConnectionsWizard (i.e. without user interaction), my FS application reference other assemblies that manager their own connection strings, and I wont to be able to store them in ConnectionManager.
Thanks
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
More control over ConnectionManager
Leonard P.
-
15 Years Ago
This will work fine. They should already have permissions to this...
Trent L. Taylor
-
15 Years Ago
Hi Trent, Thanks for Replying,
Could you comment on the...
Leonard P.
-
15 Years Ago
The simple answer is no, ConnectionManager requires user interaction....
Greg McGuffey
-
15 Years Ago
[quote][codesnippet]' In SetDataSources, in AppMain.vb (program.cs)......
Leonard P.
-
15 Years Ago
[quote][b]Trent L. Taylor (03/04/2009)[/b][hr]This will work fine....
Alex Luyando
-
15 Years Ago
The connection strings don't get loaded into the connection store...
Greg McGuffey
-
15 Years Ago
[quote][b]Alex Luyando (03/04/2009)[/b]
If the user is...
Leonard P.
-
15 Years Ago
Well, you can talk to these files the same way that we do. In the UI...
Trent L. Taylor
-
15 Years Ago
Wow, I didn't know that. That's very cool. :D
Greg McGuffey
-
15 Years Ago
[quote][b]Greg McGuffey (03/06/2009)[/b][hr]Wow, I didn't know that....
Edhy Rijo
-
15 Years Ago
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search