I am working with a sql server database. Due to a database udgrade, sever fields which were integer are now binary(16). These fields are used for joins later in the VB project. The problem I am haveing is that I have no idea how to read in the binary field! Here is the original code(using Visual Studio 08):
strRptPars(iCou nt).lID = adoOleDbDataRea der.GetInt32(i)
Originally strRptPars(iCou nt).lID was defined as LONG. I tried changing it to STRING, and using adoOleDbDataRea der.GetString(i). However, instead of getting the string rep of the binary field, I am getting the literal 'S' for read. Not sure what I am doing wrong - if anyone can help or direct me to a more appropriate forum for this you have my thanks!
strRptPars(iCou nt).lID = adoOleDbDataRea der.GetInt32(i)
Originally strRptPars(iCou nt).lID was defined as LONG. I tried changing it to STRING, and using adoOleDbDataRea der.GetString(i). However, instead of getting the string rep of the binary field, I am getting the literal 'S' for read. Not sure what I am doing wrong - if anyone can help or direct me to a more appropriate forum for this you have my thanks!
Comment