<div dir="ltr">I tried that but for some reason couldn't get it working. My custom function was getting created in <span tabindex="-1" id=":2sx.1" style class="">dbo</span> and the asterisk kept throwing error. Maybe some mistake on my part. I will try it again.<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 10:44 AM, Brian <span tabindex="-1" id=":2sx.2" style class="">LaVallee</span> <span dir="ltr"><<a href="mailto:b.lavallee@globaltank.jp" target="_blank">b.<span tabindex="-1" id=":2sx.3" style class="">lavallee</span>@<span tabindex="-1" id=":2sx.4" style class="">globaltank</span>.<span tabindex="-1" id=":2sx.5" style class="">jp</span></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
On 8/11/14, 11:31, Matthew Jordan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sun, Aug 10, 2014 at 5:02 PM, Deepak Rawat<br>
<<a href="mailto:deepaksingh.rawat@gmail.com" target="_blank">deepaksingh.rawat@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On Mon, Aug 11, 2014 at 3:29 AM, Deepak Rawat <<a href="mailto:deepaksingh.rawat@gmail.com" target="_blank">deepaksingh.rawat@gmail.com</a>><br>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I modified the query in res/res_config_odbc.c.<br>
Original: "SELECT MAX(LENGTH(var_val)) FROM %s WHERE filename='%s'"<br>
Modified: "SELECT MAX(LEN(var_val)) FROM %s WHERE filename='%s'"<br>
<br>
I rebuilt the code and installed Asterisk again. Now static realtime is<br>
working. Should I file a bug report?<br>
<br>
</blockquote></blockquote>
You're more than welcome to; at the same time, the number of people<br>
using MS SQL Server with Asterisk is not tremendously high - at least<br>
when compared with the alternatives. Unfortunately, this is one place<br>
where making things compatible is problematic: MySQL and PostgreSQL<br>
(which are far more likely to be used with Asterisk) along with Oracle<br>
use LENGTH, not LEN.<br>
</blockquote>
<br></div>
Another option, just add LENGTH as a user-defined function to MS SQL.<br>
<br>
||-- Something like this...|<br>
CREATE FUNCTION LENGTH (@input)<br>
||BEGIN<br>
RETURN ( LEN(@input) )<br>
END|<div><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Your solution, as it is currently, wouldn't be acceptable, as it would<br>
cause far more problems than it would solve. About the only way I<br>
could see solving this would be to make it configurable some place.<br>
<br>
Given the relatively few number of people who use MS SQL Server, I<br>
wouldn't expect this issue to receive a lot of attention without a<br>
patch.<br>
<br>
</blockquote>
<br>
<br>
<br>
<br>
-- <br></div><div><div>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br></div></div>