V4.01 CFRONT and SQL
RickDDMS
Member Posts: 11
Hi,
I can get CFRONT and .NET working fine with a native database, however when i try to ConnectServerAndOpenDatabase and use SQL database i continually get the below error.
Error Code: 6146856 - Error Message: The SQLSVR01 server cannot be found.
All the login details are correct, the server is up and running, i cant see where im going wrong.
Can anybody help?
Cheers!
I can get CFRONT and .NET working fine with a native database, however when i try to ConnectServerAndOpenDatabase and use SQL database i continually get the below error.
Error Code: 6146856 - Error Message: The SQLSVR01 server cannot be found.
All the login details are correct, the server is up and running, i cant see where im going wrong.
Can anybody help?
Cheers!
0
Comments
-
Hi,
What method do you use?
Can you post string which you use?
I propose use:
Sub ConnectServerandOpenDatabase(ByVal DriverName As String, ByVal ServerName As String, ByVal NetType As String, ByVal DatabaseName As String, ByVal CacheSize As Long, ByVal UseCommitCache As Boolean, ByVal NTAuthentication As Boolean, ByVal UserID As String, ByVal PassWord As String)
Be sure you have cfrontsql.dll in directory where is your example compiled.GB0 -
Solved the issue (dont use the help file it lies about the values of the net types)
but now have the below error when trying to connect.
Error Code: 6148869 - Error Message: The Session table has no ROWVERSION column in the SQL Server view description. A ROWVERSION column is required when BLOB fields have been defined.
Im using VB.NET and the line of offending code is
CF.ConnectServerAndOpenDatabase(ServerName, NetType, DBName, CommitCache, UseCommitCache, UseNTAuth, UName, PWord)0 -
Sorry i don't know :oops:
Session isn't table, it is view. But i didn't see this field in it.
Can you connect to this database with Navision?
Maybe there are problems in SQL?
Is the database really 4.0 SP1?GB0 -
please consider myself well and truly slapped.
I was trying to open my v400 db, the 401 works fine!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions