G
Guest
I am using the ConstructionEnabled attribute to pass in a SQL connection
string.
<Transaction(TransactionOption.RequiresNew), _
ConstructionEnabled([Default]:="Data
Source=mymacinename\NetSDK;Integrated Security=SSPI; Initial
Catalog=mydatabase"), _
JustInTimeActivation(True)> _
Public Class MyServicedComponent
Inherits ServicedComponent
Private myConnectString As String
Protected Overrides Sub Construct(ByVal constructString As String)
myConnectString = constructString
'otherstuff follows
End Sub
My tracelog shows that constructString contains the string "Data
Source=localhost\NetSDK;Integrated Security=SSPI; Initial
Catalog=mydatabase". What is causing this replacement
(mymachinename->localhost) within the connection string?
Thanks
string.
<Transaction(TransactionOption.RequiresNew), _
ConstructionEnabled([Default]:="Data
Source=mymacinename\NetSDK;Integrated Security=SSPI; Initial
Catalog=mydatabase"), _
JustInTimeActivation(True)> _
Public Class MyServicedComponent
Inherits ServicedComponent
Private myConnectString As String
Protected Overrides Sub Construct(ByVal constructString As String)
myConnectString = constructString
'otherstuff follows
End Sub
My tracelog shows that constructString contains the string "Data
Source=localhost\NetSDK;Integrated Security=SSPI; Initial
Catalog=mydatabase". What is causing this replacement
(mymachinename->localhost) within the connection string?
Thanks