Advertisement
Advertisement
| 10.11.2008 at 03:47PM PDT, ID: 23807034 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: |
LISTING 1: Creating a Class Module That Uses the Status Event
Public WithEvents SQlM As SQLMerge
Private Sub Class_Initialize()
Set SQlM = New SQLMerge
End Sub
Private Sub Class_Terminate()
Set SQlM = Nothing
End Sub
Private Function SQLM_Status(ByVal Message As String, ByVal Percent As Long) As SQLMERGXLib.STATUS_RETURN_CODE
Debug.Print Message & " " & Percent & "% Done"
End Function
LISTING 2: The Replication_Merge Function
Public New_Merge As New clsMerge
Public Function Replication_Merge()
Dim Merge_Control As SQLMerge
Set Merge_Control = New_Merge.SQlM
With Merge_Control
'Set the publisher properties
.Publisher = "Your Server Name"
.PublisherSecurityMode = DB_AUTHENTICATION
.PublisherLogin = "sa"
.PublisherPassword = ""
.PublisherDatabase = "Pubs"
.Publication = "pubs_to_MSDE"
.PublisherNetwork = TCPIP_SOCKETS
.PublisherAddress = "www.yourcompany.com"
'Set the distributor properties
.Distributor = "Distributer Server Name"
.DistributorSecurityMode = NT_AUTHENTICATION
'Set your local subscriber properties
.Subscriber = "The Local Machine Name/Server Name"
.SubscriberSecurityMode = DB_AUTHENTICATION
.SubscriberDatasourceType = SQL_SERVER
.SubscriberLogin = "sa"
.SubscriberPassword = ""
.SubscriberDatabase = "pubs_local"
.SubscriptionType = ANONYMOUS
.Initialize
.Run
.Terminate
End With
End Function
|