C/Front - connection to SQL Server 2000
 
            
                
                    vzdesic                
                
                    Member Posts: 9                
            
                        
            
                    Hello,
I cannot connect to SQL Server 2000 database from Excel -> C/FRONT Add-In - (CFRONT.XLS file) which comes initially with Navision SDK...
Any suggestions???
Vedran
                I cannot connect to SQL Server 2000 database from Excel -> C/FRONT Add-In - (CFRONT.XLS file) which comes initially with Navision SDK...
Any suggestions???
Vedran
0                
            Comments
- 
            Hello Vedran,
 maybe, I understood your problem wrong, let's see...
 Your NAV Db is located on a SQL 2000 server, and you are trying
 to connect to it (and retreive data) from Excel ?
 In this case you don't need C/FRONT, setting up an ODBC Connection (DSN) is all you need to do.
 Use Excels data functions to import external data and specify the connection you created. This is, I guess, the easiest way...
 hope that helps
 if it doesn't, please give more details about what you are trying to do..
 cheers, m. ... I am not a programmer, I just write code.0 ... I am not a programmer, I just write code.0
- 
            This Add-in has some functionality for import Budget to Navision from Excel. I would like to use this - if I could connect...0
- 
            There are a couple of issues with this, depending on which version/hotfix you are using. You might want to check with MS support and/or make sure that you are on the most current version of SP2.
 Also, there was, at least at one point, a problem with the macros inside of the cfront.xls file itself. You can open it and see if it contains the CF.SetNavisionPath function before the CR.ConnectServerandOpenDatabase call. If not, you'll need to add it and specify the path to the fin.exe.
 Good luck. 
 Sub OpenDatabase(NavisionServer As Boolean, _
 ServerName As String, _
 DatabaseName As String, _
 NTAuthentication As Boolean, _
 UserID As String, _
 Password As String)
 Dim ServerType As String
 SetCF
 If NavisionServer Then
 ServerType = "NDBCN"
 Else
 ServerType = "NDBCS"
 End If
 >> Is this here ?
 Call CF.SetNavisionPath ("c:\program files...")
 >> end
 Call CF.ConnectServerAndOpenDatabase(ServerType, ServerName, _
 gstrNettype, DatabaseName, 10000, False, NTAuthentication, UserID, Password)
 If CF.LastError <> 0 Then End
 End Sub0
- 
            It works with SetNavisionPath. Thank you very very much !!!0
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
- 323 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

