ADO to SQL Client need Oracle Connection String

jwilder
Member Posts: 263
I am upgrading from NAV 2009 R2 to NAV 2016. I have some processes that used ADO to connect to an Oracle database but in NAV 2106 I am using the dotnet SQLClient to do this. Works fine with SQL connections but can't get it working with an Oracle connection.
Here is what I used in NAV 2009 for the connection string (with ADO):
Provider=MSDAORA.1;Password=mypassword;User ID=myuserid;Data Source=mydatasource;Persist Security Info=True (mydatasource is the odbc connection set up on the machine)
What would the connection string be now that I am sue the dotnet sql client?
Here is what I used in NAV 2009 for the connection string (with ADO):
Provider=MSDAORA.1;Password=mypassword;User ID=myuserid;Data Source=mydatasource;Persist Security Info=True (mydatasource is the odbc connection set up on the machine)
What would the connection string be now that I am sue the dotnet sql client?
Jason Wilder
jwilder@stonewallkitchen.com
jwilder@stonewallkitchen.com
0
Answers
-
What does the error log on the Oracle server show?
I do not know much about Oracle, but I've done dotnet connections directly to SQL Server before, and it didn't require any ODBC connection information. It looks like this (this is an Active Directory trusted connection):
Text001 Data Source=%1;Initial Catalog=%2;Integrated Security=SSPI
ConnectionString := STRSUBSTNO(Text001, MySetup."Sales Import SQL Server", MySetup."Sales Import SQL Database");
SQLConnection := SQLConnection.SqlConnection(ConnectionString);Kyle Hardin - ArcherPoint1 -
I have no problem with sql connections as those are working great but I just can't figure out oracle.Jason Wilder
jwilder@stonewallkitchen.com1 -
A brief search on MSDN found this. Sounds like direct support from DotNet to Oracle isn't staying around long.
https://msdn.microsoft.com/en-us/library/77d8yct7(v=vs.110).aspx?f=255&MSPPError=-2147217396Kyle Hardin - ArcherPoint1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions