Tuesday, January 17, 2012

IIS 7.5 : Running Classic ASP Site?

Having error messages when trying to run classic .asp pages on your IIS 7.0 or 7.5? Well, you can try this :

Windows 7:
     a) Start>Control Panel>Administrative Tools>Internet Information Services Manager
     b) Select Application Polls. 
     c) Right click on the Application Polls and click Advance Settings
     d) On "Enable 32-Bit Applications" , set it to True.

You might also want to see these additional settings to make your ASP site works:
     a) Start>Control Panel>Administrative Tools>Internet Information Services Manager
     b) On the left Pane, Select your SiteName.(Example: Default Web Site)
     c) Double click on 'ASP' icon.

From there, you can see some of the options you might need to change.

Monday, January 9, 2012

Adobe : Deactivating License

If you own fixed number of adobe suite licenses for your use, you may need to know that you actually need to de-activate your adobe licenses at the PC which you no longer need to use. Uninstalling the Adobe suite DOES NOT remove the Adobe License applied to that computer. 


Example of Scenario:
You have 3 license installed on 3 computer. One of the user decided to use his/her Adobe suite on his/her laptop that they just bought. So, you shall need to de-activatethe license on that user's PC, then only activate the license on his/her new laptop.


To Deactivate your license: Click on Help>Deactivate. Pls make sure you have Internet Connection in order to deactivate it.

SQL Server : Iterating/Traversing rows / results in T-SQL



You may used to iterate records on your application code using from recordset object and looping structure. Well, here are the simple codes which do almost the same thing in SQL Server.


-----------------------------------------------------


DECLARE @mycursor CURSOR
DECLARE @current_row bigint


SET @mycur = CURSOR
FOR
select top 100 id_number from mytablename (however SQL statement that you prefer)


OPEN @mycursor


FETCH NEXT FROM @mycur INTO @current_row


WHILE @@FETCH_STATUS = 0
BEGIN
            --put any processes that you need to do here
FETCH NEXT FROM @mycur INTO @current_row --move to next row.
END


CLOSE @current_row
DEALLOCATE @mycur