<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: MSSQL : converting IMAGE to varbinary(max) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654450#M3883172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I believe the recommendation is to use the SNC driver ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQLCA.DBMS = "SNC"&lt;/P&gt;&lt;P&gt;SQLCA.DBParm = " Provider='SQLNCLI10' "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: This is &lt;STRONG&gt;not&lt;/STRONG&gt; the same as using ODBC with the SNC option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ... Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 11:13:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-29T11:13:02Z</dc:date>
    <item>
      <title>MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaq-p/10654445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem 1:&lt;/P&gt;&lt;P&gt;What's the best way to convert columns from IMAGE to varbinary(MAX)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just testing my application which runs on sql 2008 r2 (but on compatibility mode 80 (sql server 2000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probably have a lot of work to do., mainly to do with deprecated features (like no more pb syntax *= but using inner join)/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I find out that IMAGE datatype will be deprecated ., but it should be a straightforward copy to varbinary(MAX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, the issue here is the 3 largest tables in my db are 76gb, 32gb, 7gb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg 1: this might work (please let me know otherwise). except it fills up the db log and kills it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update tblcasereporttrans set userreportimage2 = userreportimage&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;ALTER TABLE tblcasereporttrans DROP COLUMN userreportimage&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;exec sp_rename 'tblcasereporttrans.userreportimage2','userreportimage','COLUMN'&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;personally I think a restore from db might be the best way to do it, but how can I get it to restore to a different column type.&lt;/P&gt;&lt;P&gt;restoring the full database into a test db takes&amp;nbsp; 13 minutes, 786.896 seconds (154.579 MB/sec).&lt;/P&gt;&lt;P&gt;I suspect any of the other ways will take much longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROBLEM 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i'm doing a test now with (so I suppose if need be, I can loop it 5000 times and keep the log file in check..(still, its not going to do any good for my offsite/snapshot backups I think)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ROWCOUNT 40&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;WHILE EXISTS (SELECT * FROM tblcasereporttrans where userreportimage2 is null)&lt;/P&gt;&lt;P&gt;BEGIN&lt;/P&gt;&lt;P&gt;update tblcasereporttrans set userreportimage2 = userreportimage where userreportimage2 is null&lt;/P&gt;&lt;P&gt;END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;ALTER TABLE tblcasereporttrans DROP COLUMN userreportimage&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;exec sp_rename 'tblcasereporttrans.userreportimage2','userreportimage','COLUMN'&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I go and pull out my data (ms word document) and it appears to be corrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selectblob&amp;nbsp; tblCaseReportTrans.UserReportImage&lt;/P&gt;&lt;P&gt;into :lb_doc&lt;/P&gt;&lt;P&gt;from&amp;nbsp; tblCaseReportTrans&lt;/P&gt;&lt;P&gt;where&amp;nbsp; tblCaseReportTrans.JobReferenceNo = :ls_refno and&lt;/P&gt;&lt;P&gt;tblCaseReportTrans.Reportid = :ls_reportid and&lt;/P&gt;&lt;P&gt;tblCaseReportTrans.create_date = :ldt_create;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if SQLCA.SQLCode &amp;lt; 0 then&lt;/P&gt;&lt;P&gt;f_display_msg("E", 5000, SQLCA.SQLErrText)&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if IsNull(lb_doc) then&lt;/P&gt;&lt;P&gt;Messagebox("error","error in blobdata")&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;f_write_blob(lb_doc, f_gettemppath() + "CTSTEMP-CO-" +ls_reportid +"-" + string(f_getdate(),"yyyymmddhhmm") + "-" + ls_refno + ".doc")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ole_1.objectdata = lb_doc // FAILS HERE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which I find is that although datalength(userreportimage) is 149kb. the datasize on disk (ie: whatever was returned by selectblob) is 32767 only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yet my sql server settings in pbodb125.ini is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBMaxBlobSize='2147483647'&lt;/P&gt;&lt;P&gt;PBMaxTextSize='2147483647'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, its a selectblob problem (pb 12.5.2 5652) (maybe not working with varbinary(max) (but works with IMAGE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so any better suggestions to both problems?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 04:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaq-p/10654445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T04:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654446#M3883168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 1:&lt;/P&gt;&lt;P&gt;Regarding to your legitimate concerns about the log file, you could test to set the database recovery model in SQL Server to 'simple' during the conversion, that should keep file size of the log quite low.&lt;/P&gt;&lt;P&gt;&lt;A href="http://msdn.microsoft.com/de-de/library/ms189275.aspx" title="http://msdn.microsoft.com/de-de/library/ms189275.aspx"&gt;http://msdn.microsoft.com/de-de/library/ms189275.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we did our conversion from image to varbinary (max) some time ago we even did a direct ALTER TABLE not using a second column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALTER TABLE tblcasereporttrans ALTER COLUMN userreportimage VARBINARY ( MAX );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in our case the max size of the affected table was about 20GB, so a lot smaller than your example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 2:&lt;/P&gt;&lt;P&gt;When we changed the datatype we hadn't to change anything else in the code. So SELECTBLOB works fine with varbinary(max) (we use PB 12.5 too). Could this be a driver issue? How to you connect to your db?&lt;/P&gt;&lt;P&gt;On our side we use SQLNCLI10 (SQL Native Client for SQL Server 2008).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 08:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654446#M3883168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T08:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654447#M3883169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using odbc to connect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the settings in pbodb125.ini just needs to be there for maxblobsize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem right now is the code works for IMAGE, not for varbinary(MAX) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 08:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654447#M3883169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T08:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654448#M3883170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If possible you should do a cross check with SNC instead of ODBC. It could be that varbinary (max) is not supported with ODBC. It's not clearly stated that ODBC won't function, but documentation always mentions SNC only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37776.1250/html/connpb/BCGIAJGG.htm" title="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37776.1250/html/connpb/BCGIAJGG.htm"&gt;SyBooks Online&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37776.1250/html/connpb/BCGJBJHD.htm" title="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37776.1250/html/connpb/BCGJBJHD.htm"&gt;SyBooks Online&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[...]The PowerBuilder SNC interface maps the Varbinary(max) datatype to a BLOB datatype, so to retrieve or update filestream data, use the SelectBlob or UpdateBlob SQL statements, respectively.[...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried it with smaller blobs to narrow the problem?&lt;/P&gt;&lt;P&gt;Since varbinary (max) is mapped to BLOBs, maxblobsize could be an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.linkedin.com/groups/Help-on-varbinary-max-issue-1082737.S.245805926" title="http://www.linkedin.com/groups/Help-on-varbinary-max-issue-1082737.S.245805926"&gt;http://www.linkedin.com/groups/Help-on-varbinary-max-issue-1082737.S.245805926&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://nntp-archive.sybase.com/nntp-archive/action/article/%3C4be17bdd$1@forums-1-dub%3E" title="http://nntp-archive.sybase.com/nntp-archive/action/article/%3C4be17bdd$1@forums-1-dub%3E"&gt;SAP Sybase Forums - PowerBuilder - Database - UPDATEBLOB on MS SQL Server 2008 - Function Sequence Error&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 09:37:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654448#M3883170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T09:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654449#M3883171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've marked you as correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) I tried an odbc connection using sql server native client 10. but it didn't work. (ie: under windows odbc, the selected driver sql server native client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) my pbodb125.ini is deployed with the app and also updated in (both the application directory, as well as the development's machine pb shared files folder), but that doesn't help (pbmaxblobsize is updated to &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;PBMaxBlobSize='2147483647'&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;PBMaxTextSize='2147483647'&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;changing my db login to snc&amp;nbsp; worked though. but it will involve tons of testing before I can deploy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose I will procrastinate instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 09:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654449#M3883171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T09:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654450#M3883172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I believe the recommendation is to use the SNC driver ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQLCA.DBMS = "SNC"&lt;/P&gt;&lt;P&gt;SQLCA.DBParm = " Provider='SQLNCLI10' "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: This is &lt;STRONG&gt;not&lt;/STRONG&gt; the same as using ODBC with the SNC option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ... Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654450#M3883172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T11:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654451#M3883173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeap. my connect string for snc is like so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//snc login&lt;/P&gt;&lt;P&gt;//SQLCA.DBMS = "SNC SQL Native Client(OLE DB)"&lt;/P&gt;&lt;P&gt;//SQLCA.LogPass = ls_password&lt;/P&gt;&lt;P&gt;//SQLCA.ServerName = ProfileString(gs_CTSINI, "Database", "ServerName", "")&lt;/P&gt;&lt;P&gt;//SQLCA.LogId =sle_userid.text&lt;/P&gt;&lt;P&gt;//SQLCA.AutoCommit = False&lt;/P&gt;&lt;P&gt;//SQLCA.DBParm = "Database='"+ls_database+"',Provider='SQLNCLI10',CommitOnDisconnect='No',OJSyntax='PB'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;I'm just worried if there's anything going to go wrong if I just change it like that..much testing will be needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654451#M3883173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T11:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654452#M3883174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That looks good &amp;amp; yes, in changing any DB drivers I would recommend thorough regression testing on your entire application - just to be safe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654452#M3883174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T11:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654453#M3883175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree. Though I would recommend the SNC driver instead of ODBC for future use, it's not the thing you just change in a production system without much testing. It's for sure a litte "invest".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654453#M3883175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T12:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL : converting IMAGE to varbinary(max)</title>
      <link>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654454#M3883176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I got an update from support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously I modified pbodb*.ini in these locations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\Sybase\Shared\PowerBuilder&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;application directory (ie: dev directory c:\pb12.5compile and the network share where i host the .exe/.pbd \\serverA\pb12.5 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and that works just fine for IMAGE datatype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, I was informed there are other locations for pbodb*.ini , so that also needs to be sync with on the development machine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Users\[user]\AppData\Local\Sybase\PowerBuilder 12.5&lt;/P&gt;&lt;P&gt;C:\Users\[user]\AppData\Local\Sybase\PowerBuilder 12.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested it and it works fine now using ODBC and varbinary(max)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 01:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mssql-converting-image-to-varbinary-max/qaa-p/10654454#M3883176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-06T01:37:21Z</dc:date>
    </item>
  </channel>
</rss>

