Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 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: OLEDB connection string fails if SalesLogix database .mdf file is stored on D: drive
Don Haggerty
Posts: 4
 
OLEDB connection string fails if SalesLogix database .mdf file is stored on D: driveYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Dec 08 1:01 PM
From a Visual Basic script, I've successfully connected to a SalesLogix database using the following connection string IF the database .mdf file is stored on drive C:\.

Provider=SLXOLEDB.1;
Password=;
Persist Security Info=True;
User ID=admin;
Initial Catalog=slx72_proto;
Data Source=DBS01;
Extended Properties=PORT=1706;LOG=ON;CASEINSENSITIVEFIND=ON;AUTOINCBATCHSIZE=1;SVRCERT=;

However, the connection fails when attempting to connect to a database whose .mdf file is stored on drive D:\. Is there a way to modify the connection string for such a case, or must the database file always be housed on drive C\: if an external OLEDB connection is to be used?

UPDATED INFORMATION: I restored my prototype database to the C:\ drive and found that the connection string fails on the restored database but succeeds on the SalesLogix databases (saleslogix and saleslogix_eval). I've hunted for any differences in configuration or permissions but haven't found any.
[Reply][Quote]
Walter Shpuntoff
Posts: 167
 
Re: OLEDB connection string fails if SalesLogix database .mdf file is stored on D: driveYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Dec 08 4:36 AM
After you restore the database, are you also fixing the sysdba user (if it is a different machine), and setting up a new connection in the oledb provider?

You can test being able to connect by building a UDL file.
- create a text file, rename it to .UDL and double click it. (Make sure to save passwords)
After you have connected, open with notepad to see the connect string

ws
[Reply][Quote]
Don Haggerty
Posts: 4
 
Re: OLEDB connection string fails if SalesLogix database .mdf file is stored on D: driveYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Dec 08 5:20 PM
Thanks for your reply, Walter. Yes, I had run the sysdba fix script, but still experienced the error. I've since fixed the problem, though, through a combination of placing the database .mdf file on the C: drive (with the log file on a separate drive) and editing the sysdba user security settings in SQL Server. Once I did this, generating a connection string via the UDL tool succeeded and my external scripts connect successfully.
[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): 11/22/2024 9:13:25 PM