Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, April 19, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 External Development Forums - SalesLogix OLEDB Provider
Forum to discuss using the SalesLogix OLE DB Provider from external applications (including usage of built-in provider procedures). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix OLEDB Provider | New ThreadView:  Search:  
 Author  Thread: Connection String to remote user
Andrew James
Posts: 51
 
Connection String to remote userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Nov 11 6:56 AM
fiogf49gjkf0d

Hi

I am trying to get data from a remote users cut so I can compare it to data we have on the main server.  We are using access to connect to the remote cut using one of the following connection strings

'connUser.Open "Provider=sqloledb;Data Source=LG35044083;Initial Catalog=SLXRemote;Integrated Security=SSPI;User ID = ; Password = ;" 
'connUser.Open "Data Source=.\\SQLExpress;Integrated Security=true;" & _
'              "User Instance=true;AttachDBFilename=|DataDirectory|\SLX_KM75179_dat.mdf;" & _
'              "Initial Catalog=SLXRemote;"


'connUser.Open "Provider=sqloledb;Data Source=,1433;Network Library=DBMSSOCN;Initial Catalog=SLXRemote;User ID=assword=;"


connUser.Open "Provider=sqloledb;Data Source=\LG35044083;Initial Catalog=SLXRemote;Integrated Security=SSPI;"


'connUser.Open "Provider=MS Remote;" & _
' "Remote Server=LG35044083;" & _
' "Remote Provider=SQLOLEDB;" & _
' "Data Source=LG35044083;" & _
' "Initial Catalog=SLXRemote;" & _
' "User ID=" & _
' "Password="


I do not get any error messages when using any of the connection strings above but my access table is getting blank values through.  Any help please


Code below so you get the idea of what I am trying to do


Dim strGetId As String
strGetId = "SELECT HistoryID from sysdba.HISTORY"


Set rst = CreateObject("ADODB.Recordset")
     rst.CursorLocation = adUseClient
     rst.Open strGetId, connUser, adOpenKeyset, adLockBatchOptimistic
     rst.MoveFirst
     'Debug.Print rst("HISTORYID")
    
Set rstDB = db.OpenRecordset("userHistory")


i = 0
    
While Not rst.EOF
    
    rstDB.AddNew
    MsgBox rst("HISTORYID").Value
    rstDB("HISTORYID").Value = rst("HISTORYID").Value
    rstDB.Update
   
    i = i + 1
      
    rst.MoveNext
Wend

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Connection String to remote userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Nov 11 12:39 AM
fiogf49gjkf0d

strGetId = "SELECT HistoryID from sysdba.HISTORY"
If you are using the SLX OLE DB Provider, not need to use sysdba.


rst.CursorLocation = adUseClient
rst.Open strGetId, connUser, adOpenKeyset, adLockBatchOptimistic
I thought you said this would be READ ONLY?


rst.MoveFirst
I thought that an RS.Open automagically moved you to the first record as your cursor?


Do a record count right then and there on rst and prove how many records you have. If it's less than 1 full stop.


Set rstDB = db.OpenRecordset("userHistory")


?? what is DB? I don't have a clue what you are doing here....what connection? OpenRecordset?


 


 


On the connection string, I'd create an actual datalink file and then copy the connection string from there.....often times the SLXRemote database is in a named instance like SalesLogix\SLXRemote or SQLExpress\SLXRemote.....


 


 


 


 

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 4/19/2024 9:38:01 PM