<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6.1" -->
<rss version="0.92">
<channel>
	<title>Fransiscus Setiawan .NET Blog</title>
	<link>http://fransiscuss.com</link>
	<description>My notepad to share knowledge with others</description>
	<lastBuildDate>Wed, 06 Jan 2010 05:44:12 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Shrink all databases and Set it to Simple in SQL Server</title>
		<description>Normally, I need to run this script against dev sql server in order for me to free up some space


create table #temp_dbs_table
(
[db_name] sysname not null primary key,
[mod] tinyint not null default 1
)

insert into #temp_dbs_table ([db_name])
select
name
from
master..sysdatabases
where
dbid &#62; 4 --- skip master, tempdb, model and msdb databases

declare @db_name sysname

set @db_name = ''

while ...</description>
		<link>http://fransiscuss.com/shrink-all-databases-and-set-it-to-simple-in-sql-server/</link>
			</item>
	<item>
		<title>Compression in Silverlight Isolated Storage</title>
		<description>Isolated storage in silverlight is used to store information or object therefore we don't need to go to database to get all the information over and over again but again to use isolated storage or not should be based on case by case. Based on the implementation of the code ...</description>
		<link>http://fransiscuss.com/compression-in-silverlight-isolated-storage/</link>
			</item>
	<item>
		<title>FormsAuthentication.GetRedirectUrl only get the first parameter of querystring</title>
		<description>I found the issue with FormsAuthentication.GetRedirectUrl when it redirects then it redirects with the first querystring that you have while in fact you might have more than one querystring

e.g http://localhost/myweb/login.aspx?returnurl=myview.aspx?viewID=123&#38;viewname=abc&#38;viewall=false then the standard FormsAuthentication will redirect to http://localhost/myweb/myview.aspx?viewID=123

but where's the remaining viewname querystring and viewall querystring??to fix this, just use ...</description>
		<link>http://fransiscuss.com/formsauthenticationgetredirecturl-only-get-the-first-parameter-of-querystring/</link>
			</item>
	<item>
		<title>an activex control on this page might be unsafe to interact with other parts of the page. do you want to allow this interaction?</title>
		<description>I keep getting this message "an activex control on this page might be unsafe to interact with other parts of the page. do you want to allow this interaction" when I try to access a page that use Javascript to access ActiveX Code. I've spent quite sometime to get rid ...</description>
		<link>http://fransiscuss.com/an-activex-control-on-this-page-might-be-unsafe-to-interact-with-other-parts-of-the-page-do-you-want-to-allow-this-interaction/</link>
			</item>
	<item>
		<title>Resolve URL functions</title>
		<description>This snippet code is credited to Scott's Hanselman, This Resolve URL function is used where you want to implement it on your business layer.

Methods:


        #region "Image URL helpers"

        public static string ResolveUrl(string originalUrl)
    ...</description>
		<link>http://fransiscuss.com/resolve-url-functions/</link>
			</item>
	<item>
		<title>Send message in Twitter using .NET</title>
		<description>This code snippet is used to wrap Twitter API to send message. It's not a complete Twitter wrapper but It can send message using Twitter easily. There are two overloaded constructors where both of them requires user name and password to be passed and proxy server is used as the ...</description>
		<link>http://fransiscuss.com/send-message-in-twitter-using-net/</link>
			</item>
	<item>
		<title>Upload Multiple Files to FTP in .NET</title>
		<description>I've played around with FTP couple of weeks back. My application is required to feed FTP folder with 1000+ files daily. I've been googling around and I found one of the methods is to use WebApplication so I decided to put this WebApplication method to upload while iterating every single files in ...</description>
		<link>http://fransiscuss.com/upload-multiple-files-to-ftp-in-net/</link>
			</item>
	<item>
		<title>TRY&#8230;.CATCH Rollback Transaction In SQL Server 2005</title>
		<description>This feature has been sometime in SQL Server 2005 in SQL Server 2000 you normally use @@TRANCOUNT to detect any exception but now in SQL Server 2005 you can use try catch block.

In this snippet, there are 2 INSERT statement and 1 UPDATE statement. I'm expecting when there is any ...</description>
		<link>http://fransiscuss.com/trycatch-rollback-transaction-in-sql-server-2005/</link>
			</item>
	<item>
		<title>Index in Table Variable</title>
		<description>One biggest advantage of table variable for me is you can't put index on the columns. I was having a problem where doing self join in table variable (it has 1000+ records) is taking really really long time. One way I found to optimize it is to add primary key ...</description>
		<link>http://fransiscuss.com/index-in-table-variable/</link>
			</item>
	<item>
		<title>Disabling Time Synchronization of Virtual PC image</title>
		<description>I was having the problem where I tried to change the date and time on my VPC environment, it keeps resetting it back. To resolve the issue, you need to edit the *.VMC file and add the highlighted section below, resave the file and launch your VPC.

&#60;integration&#62;
    &#60;microsoft&#62;
        &#60;mouse&#62;
            &#60;allow ...</description>
		<link>http://fransiscuss.com/disabling-time-synchronization-of-virtual-pc-image/</link>
			</item>
</channel>
</rss>
