leop1212
asked on
OLEDB and ADODB with SQL2008R2 from VB6 program
We do have accounting program based on SQL 2005 and shipping base on Custom VB6 program.
Shipping VB 6 program is pointing to accounting Database and getting Sales Order info and then writing back to accounting once data is processed. We now upgrading accounting program to run on SQL 2008R2. While testing connection to a new system we re-pointed VB program to new SQL server 2008R2.
We can still pull data out but getting an error on writing back from VB to SQL. We tested security rights and it is not a problem.
Shipping Client machine with VB 6 program is running on XP SP3.
i tried native SQL string but it didn't even read from 2008r
strCnn = "Provider=SQLNCLI10;Passwo rd=my_pass w;Persist Security Info=True;User ID=sa;Server=my_SQL2008R2; Database=M y_data;Dat aTypeCompa tibility=8 0;"
ATTACHED IS A PIECE OF VB6 CODE WHICH IS FAILING
VB6prog.txt
Shipping VB 6 program is pointing to accounting Database and getting Sales Order info and then writing back to accounting once data is processed. We now upgrading accounting program to run on SQL 2008R2. While testing connection to a new system we re-pointed VB program to new SQL server 2008R2.
We can still pull data out but getting an error on writing back from VB to SQL. We tested security rights and it is not a problem.
Shipping Client machine with VB 6 program is running on XP SP3.
i tried native SQL string but it didn't even read from 2008r
strCnn = "Provider=SQLNCLI10;Passwo
ATTACHED IS A PIECE OF VB6 CODE WHICH IS FAILING
VB6prog.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i did use correct syntax
strCnn = "Provider=SQLNCLI10;Passwo rd=my_pass w;Persist Security Info=True;User ID=sa;Server=my_SQL2008R2; Database=M y_data;Dat aTypeCompa tibility=8 0;"
and when I install SQL client tools on XP box it did read data via SQLNCL10 string but still getting an error on writing back. (no VB error) just a message box from the program
which is at the bottom of the VB code.
strCnn = "Provider=SQLNCLI10;Passwo
and when I install SQL client tools on XP box it did read data via SQLNCL10 string but still getting an error on writing back. (no VB error) just a message box from the program
which is at the bottom of the VB code.
uploaderror:
Msgbox err.description
Also who ever wrote that must have loved to type
Creating parameters is not that long winded
Set cmd = New Command
With cmd
.Parameters.Append .CreateParameter("Status",
End With