StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Windows Service - Connection String
Windows Service - Connection String
Post Reply
Like
0
Windows Service - Connection String
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Tim Dol
Tim Dol
posted 19 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 340,
Visits: 1.4K
I have a windows service project which is going to be used for integration between two applications. How do I handle the connection string for my business objects in a non StrataFrame project. I have a variable that contains the necessary connection string so how and where would I set the connection string?
Thanks,
Tim
Reply
Like
0
Replies
Tim Dol
Tim Dol
posted 19 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 340,
Visits: 1.4K
I found this works fine if you execute it once but if you execute it twice a error is generated. I found this code sample from the documentation, which I think will work for me, but it doesn't seem to exist. Was it removed from the framework??
Example
'-- Set the connection string
manually
MicroFour.StrataFrame.Data.DataLayer.ConnectionString = _
"server=myserver;user id=sa;password=password
Reply
Like
0
Trent Taylor
Trent Taylor
posted 19 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
This needs to be removed...this is no longer where the connection information is stored. This was "old school"
All you need to do it test if the connection already exists within the collection:
If MicroFour.StrataFrame.Data.DataBasics.DataSources.Count = 0
'-- Add your connection
End If
Reply
Like
0
Tim Dol
Tim Dol
posted 19 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 340,
Visits: 1.4K
Thanks Trent. This took care of the problem.
Tim
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Windows Service - Connection String
Tim Dol
-
19 Years Ago
You will just manually add the connection to the data sources...
Trent L. Taylor
-
19 Years Ago
I found this works fine if you execute it once but if you execute it...
Tim Dol
-
19 Years Ago
This needs to be removed...this is no longer where the connection...
Trent L. Taylor
-
19 Years Ago
Thanks Trent. This took care of the problem. Tim
Tim Dol
-
19 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search