<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SysBlog</title>
	<atom:link href="http://blog.interakt.hr/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://blog.interakt.hr</link>
	<description>...mic po mic...</description>
	<lastBuildDate>Tue, 24 Mar 2026 11:53:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>ColdFusion/MSSQL &#8211; new line and LIKE</title>
		<link>https://blog.interakt.hr/?p=971</link>
		<comments>https://blog.interakt.hr/?p=971#comments</comments>
		<pubDate>Tue, 24 Mar 2026 11:52:41 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[MSSQL Database Development]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=971</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

SELECT id, ownership
					FROM tbl_test
					WHERE 

				lang = &lt;cfqueryparam cfsqltype=&quot;cf_sql_char&quot; maxlength=&quot;2&quot; value=&quot;en&quot;&gt;
				and 

				(
					REPLACE(REPLACE(ownership, CHAR(13), ''), CHAR(10), '') like &lt;cfqueryparam value=&quot;%#reReplace(arguments.real_beneficiaries, &quot;[\r\n]&quot;, &quot;&quot;, &quot;all&quot;)#%&quot; cfsqltype=&quot;cf_sql_nvarchar&quot;&gt;
					OR
					REPLACE(REPLACE(ownership, CHAR(13), ''), CHAR(10), '') like &lt;cfqueryparam value=&quot;#reReplace(arguments.real_beneficiaries, &quot;[\r\n]&quot;, &quot;&quot;, &quot;all&quot;)#%&quot; cfsqltype=&quot;cf_sql_nvarchar&quot;&gt;
					OR
					REPLACE(REPLACE(ownership, CHAR(13), ''), CHAR(10), '') like &lt;cfqueryparam value=&quot;%#reReplace(arguments.real_beneficiaries, &quot;[\r\n]&quot;, &quot;&quot;, &quot;all&quot;)#&quot; cfsqltype=&quot;cf_sql_nvarchar&quot;&gt;
					OR
					REPLACE(REPLACE(ownership, CHAR(13), ''), CHAR(10), '') = &lt;cfqueryparam value=&quot;#reReplace(arguments.real_beneficiaries, &quot;[\r\n]&quot;, &quot;&quot;, &quot;all&quot;)#&quot; cfsqltype=&quot;cf_sql_nvarchar&quot;&gt;

					)
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=971</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL &#8211;  DATE and </title>
		<link>https://blog.interakt.hr/?p=966</link>
		<comments>https://blog.interakt.hr/?p=966#comments</comments>
		<pubDate>Tue, 08 Apr 2025 08:03:32 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[MSSQL Database Development]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=966</guid>
		<description><![CDATA[2019-10-16 2011-04-13 2014-06-13 2014-06-18 2012-03-29 2012-03-29 2022-05-20 2023-01-11 2022-05-05 2022-12-09 2021-06-21 2021-06-21]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">SELECT TOP 5 LEFT(DATEOPEN, 10) FROM tbl_dates  where LEFT(DATEOPEN, 10) &lt; '2021-01-01'</pre>
<p>2019-10-16<br />
2011-04-13<br />
2014-06-13<br />
2014-06-18<br />
2012-03-29<br />
2012-03-29</p>
<pre class="brush: plain; title: ; notranslate">SELECT TOP 5 LEFT(DATEOPEN, 10) FROM tbl_dates where LEFT(DATEOPEN, 10) &gt; '2021-01-01'</pre>
<p>2022-05-20<br />
2023-01-11<br />
2022-05-05<br />
2022-12-09<br />
2021-06-21<br />
2021-06-21</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=966</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL: truncate all tables from schema with &#8216;test&#8217; in the table name</title>
		<link>https://blog.interakt.hr/?p=960</link>
		<comments>https://blog.interakt.hr/?p=960#comments</comments>
		<pubDate>Fri, 21 Mar 2025 13:04:52 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[MSSQL Database Development]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=960</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

DECLARE @sql NVARCHAR(MAX) = ''

SELECT @sql = @sql + 'TRUNCATE TABLE  [' + TABLE_SCHEMA + '].[' + TABLE_NAME + '] ' + CHAR(10)
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'MYSCHEMA'  -- Change this to your schema
AND TABLE_NAME LIKE '%test%'  -- Find tables containing 'test' in the name

PRINT @sql  -- Check the generated SQL (optional)
EXEC sp_executesql @sql  -- Execute the truncation
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=960</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL &#8211; variables</title>
		<link>https://blog.interakt.hr/?p=953</link>
		<comments>https://blog.interakt.hr/?p=953#comments</comments>
		<pubDate>Thu, 16 Jan 2025 12:08:00 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[MSSQL Database Development]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=953</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">DECLARE @query_date DATE = '2025-01-15'
SELECT * from tbl_dates WHERE mydate = @query_date</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=953</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldfusion &#8211; remove duplicates from array using struct</title>
		<link>https://blog.interakt.hr/?p=946</link>
		<comments>https://blog.interakt.hr/?p=946#comments</comments>
		<pubDate>Thu, 28 Nov 2024 10:18:50 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=946</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">&lt;cfset myArray = [&quot;apple&quot;, &quot;banana&quot;, &quot;apple&quot;, &quot;orange&quot;, &quot;banana&quot;]&gt;

&lt;!-- Use a struct to remove duplicates --&gt;
&lt;cfset uniqueStruct = {}&gt;

&lt;cfloop array=&quot;#myArray#&quot; index=&quot;item&quot;&gt;
    &lt;cfset uniqueStruct[item] = true&gt;
&lt;/cfloop&gt;

&lt;!-- Convert struct keys back to array --&gt;
&lt;cfset uniqueArray = StructKeyArray(uniqueStruct)&gt;

&lt;cfdump var=&quot;#uniqueArray#&quot;&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=946</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldfusion &#8211; inline if else</title>
		<link>https://blog.interakt.hr/?p=943</link>
		<comments>https://blog.interakt.hr/?p=943#comments</comments>
		<pubDate>Wed, 05 Jun 2024 12:22:05 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=943</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">&lt;!--- Syntax: ((condition) ? trueStatement : falseStatement) ---&gt;
&lt;cfset width = ((ThumbnailWidth EQ 0) ? 75 : ThumbnailWidth) /&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=943</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion &#8211; send email using cfscript</title>
		<link>https://blog.interakt.hr/?p=940</link>
		<comments>https://blog.interakt.hr/?p=940#comments</comments>
		<pubDate>Sat, 01 Jun 2024 07:46:09 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=940</guid>
		<description><![CDATA[source: https://stackoverflow.com/questions/8423276/how-do-you-send-an-email-with-an-attachment-using-cfscript-in-cf9]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

// Create an instance of the mail object
mail=new mail();

// Set it's properties
mail.setSubject( &quot;Sample Email&quot; );
mail.setTo( &quot;to@example.com&quot; );
mail.setFrom( &quot;from@example.com&quot; );
mail.setCC( &quot;cc@example.com&quot; );
mail.setBCC( &quot;bcc@example.com&quot; );

// Add an attachment
mail.addParam( file=&quot;C:\foo.txt&quot; );

// Add email body content in text and HTML formats
mail.addPart( type=&quot;text&quot;, charset=&quot;utf-8&quot;, wraptext=&quot;72&quot;, body=&quot;This is a test message.&quot; );
mail.addPart( type=&quot;html&quot;, charset=&quot;utf-8&quot;, body=&quot;&lt;p&gt;This is a test message.&lt;/p&gt;&quot; );

// Send the email
mail.send();
</pre>
<p>source: https://stackoverflow.com/questions/8423276/how-do-you-send-an-email-with-an-attachment-using-cfscript-in-cf9</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=940</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL &#8211; REMOVE non-alphabetic characters from string</title>
		<link>https://blog.interakt.hr/?p=935</link>
		<comments>https://blog.interakt.hr/?p=935#comments</comments>
		<pubDate>Wed, 27 Mar 2024 07:35:38 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[MSSQL Database Development]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=935</guid>
		<description><![CDATA[source: https://stackoverflow.com/questions/1007697/how-to-strip-all-non-alphabetic-characters-from-string-in-sql-server]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

Create Function [dbo].[RemoveNonAlphaCharacters](@Temp VarChar(1000))
Returns VarChar(1000)
AS
Begin

    Declare @KeepValues as varchar(50)
    Set @KeepValues = '%[^a-z]%'
    While PatIndex(@KeepValues, @Temp) &gt; 0
        Set @Temp = Stuff(@Temp, PatIndex(@KeepValues, @Temp), 1, '')

    Return @Temp
End

Select dbo.RemoveNonAlphaCharacters('abc1234def5678ghi90jkl')
</pre>
<p>source: https://stackoverflow.com/questions/1007697/how-to-strip-all-non-alphabetic-characters-from-string-in-sql-server</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=935</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion &#8211; OutOfMemoryError &#8211; GC overhead limit exceeded</title>
		<link>https://blog.interakt.hr/?p=925</link>
		<comments>https://blog.interakt.hr/?p=925#comments</comments>
		<pubDate>Sun, 28 Jan 2024 10:03:52 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=925</guid>
		<description><![CDATA[&#8220;This error essentially means that you need to add more memory, or reconfigure your garbage collection arguments. You can suppress this error by adding -XX:-UseGCOverheadLimit to your JVM startup arguments&#8221; Note to self &#8211; don&#8217;t do it! It will block your entire windows virtual machine! Already seen and done!!! source: https://www.petefreitag.com/blog/outofmemoryerror-gc-overhead/]]></description>
			<content:encoded><![CDATA[<p><em>&#8220;This error essentially means that you need to add more memory, or reconfigure your garbage collection arguments. You can suppress this error by adding -XX:-UseGCOverheadLimit to your JVM startup arguments&#8221;</em></p>
<p><span style="color:red"><strong>Note to self &#8211; don&#8217;t do it! It will block your entire windows virtual machine! Already seen and done!!!</strong></span></p>
<p>source: </p>
<p>https://www.petefreitag.com/blog/outofmemoryerror-gc-overhead/</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=925</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion &#8211; csv file BOM Header problem CF2023</title>
		<link>https://blog.interakt.hr/?p=921</link>
		<comments>https://blog.interakt.hr/?p=921#comments</comments>
		<pubDate>Thu, 04 Jan 2024 15:15:50 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://blog.interakt.hr/?p=921</guid>
		<description><![CDATA[I&#8217;m running cf2023 on windows and I&#8217;m having a weird problem with basic functionality that was working normally on the cf2016 version I was using earlier. Every attempt to generate a csv file in which the Croatian characters will be displayed correctly has so far been unsuccessful. I tried changing the JVM arguments and adding [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m running cf2023 on windows and I&#8217;m having a weird problem with basic functionality that was working normally on the cf2016 version I was using earlier.<br />
Every attempt to generate a csv file in which the Croatian characters will be displayed correctly has so far been unsuccessful.</p>
<p>I tried changing the JVM arguments and adding -Dfile.encoding=UTF8 but it didn&#8217;t help.</p>
<p>BOM header problem &#8211; adding #CHR(65279)# to the beginning of the csv content helped. </p>
<pre class="brush: plain; title: ; notranslate">

&lt;cfprocessingdirective pageencoding=&quot;utf-8&quot;&gt;

&lt;cfset content = '#CHR(65279)#priča;požarevac;PRIŠTINA;ČAKOVEC;ŽUPANJA;ĐAKOVO;rođak'&gt;

&lt;cffile action=&quot;write&quot;
	file=&quot;#expandPath('temp')#/test.csv&quot;
	output=&quot;#content#&quot;
	addnewline=&quot;yes&quot; charset=&quot;utf-8&quot;&gt;
</pre>
<p>source: https://community.adobe.com/t5/coldfusion-discussions/adding-utf-8-bom-byte-order-mark-to-file-output/m-p/11745053</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=921</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
