Posts

DSN-less connections in Microsoft Access - making the linked table connections permanent

If you've read Doug Steele's write-up  to enable DSN-less connections in Access, it works great with Trusted Connections.  But what if you're using SQL Server authentication instead, and don't want to store the password or credentials in the code? You can set the  DB_ATTACHSAVEPWD property like such (see Doug's article for the full code): tdfCurrent.Connect = "ODBC;DRIVER={sql server};DATABASE=" & _ DatabaseName & ";SERVER=" & ServerName & _ ";Uid=" & myUserName & _ ";Pwd=" & myPassword & ";" tdfCurrent. Attributes = DB_ATTACHSAVEPWD Then go ahead and run the macros or forms to use the table(s) in question.  Doug states that the username and password will be stored in plaintext in the Connect property, but if you run the FixConnections sub from a debug window, and then run a macro or form, this should save...

CS0246: The type or namespace name 'Dictionary' could not be found and CS0305: Using the generic type 'System.Collections.Generic.IDictionary' requires '2' type arguments

I had a piece of C# vendor code to install for authentication: IDictionary userInfo = new Dictionary (); userInfo.Add(Agent.TOKEN_SUBJECT, sAMAccountName); userInfo.Add(“domain”, domain); Kept getting errors: CS0246: The type or namespace name 'Dictionary' could not be found CS0305: Using the generic type 'System.Collections.Generic.IDictionary ' requires '2' type arguments Turns out the vendor did not specify which classes to include, so I had to do a bit of digging.  I found some posts that said Dictionary was no longer being used in .NET 2.0 (not sure about that).  To resolve this, make sure you import the following in order to instantiate a Dictionary object with 2 params: using System; using System.Collections; using System.Collections.Generic; ASP.NET, .NET 2.0

Waiting for query.yahooapis.com in Firefox 3.6

Anyone getting this same issue?  Basically when browsing finance.yahoo.com or perhaps some other Yahoo! sites, Firefox 3.6 waits for a response from query.yahooapis.com for several minutes before rendering the page. I've found one manual workaround, is to just hit Escape or stop the page request, then refresh right away.  It'll usually load the page right up.

Diskpart - "The volume you have selected may not be extended" on Windows 2003 Server when enlarging boot disk (C:) in VMware ESX 3.5

This solution may apply to anyone trying to extend a primary boot volume in Windows 2003 Server (mine happened to be the R2 Enterprise edition, but may apply to prior versions of 2003 Server).  I was following VMware KB  1007266  to extend the boot volume on this Windows 2003 guest VM on ESXi (3.5).  This is a separate issue from the Microsoft KB # 841650 . Everything was fine when I attached the newly extended VMDK file to my helper VM.  But I kept getting the "The volume you have selected may not be extended" error and couldn't figure out why.  It turns out I didn't read the KB carefully enough.  Make sure you assign a drive letter in the Windows Disk Management UI first! Before assigning a drive letter: DISKPART> list disk   Disk ###  Status      Size     Free     Dyn  Gpt   --------  ----------  -------  -------  ---  ---   Disk 0 ...

Office XP Service Pack 3 (SP3) missing PROPLUS.MSI

If this update keeps showing up on Windows Update but can never install because you're somehow missing the file PROPLUS.MSI - you may be able to complete it finally!  It's an important update and ranks as a high security thread on Secunia PSI. Go to this site, http://www.billynda.com/ and save the file "Proplus.msi" (you may have to right-click on it and choose Save link as...).  Remember which directory you saved it to so you can browse to it again during the XP installation. Now run Windows Update again and start the updates.  When it asks you for the PROPLUS.MSI file, browse to the location where you saved it.  The update should complete.

Skype 4.1 buggy, slow, or freezes in Windows 7 64-bit (x64)

Image
I upgraded from Windows Vista Home Premium to Windows 7 Home Premium.  Right away I had some CPU issues (high CPU usage around 85%-90% without a corresponding item in taskmgr, even with "Show processes from all users" checked).  Some of these I believe were driver related.  And then one was because of Skype 4.1.  It turns out that even though Skype 4.1 is now officially Windows 7 certified, it's extremely buggy in 64-bit versions of Windows 7, even though I'm running in 32-bit compatibility mode.  Not only did it cause some issues for Windows 7, but Skype itself didn't work right.  Sometimes the Skype app would freeze without warning.  I was able to call someone using SkypeOut, but they could not hear me.  It also locked out my audio options such as "Playback Devices" and "Recording Devices", and possibly even the RealTek HD Audio Manager tool. Here's a way to make Skype run smoothly, by changing the compatibility run mode to Windows Vist...

SkypeNames.exe slows down Firefox 3

Recently I had some major performance issues with Firefox 3. I upgraded to 3.5 but it was still painfully slow even though my system memory and CPU were fine. Turns out it was the SkypeNames.exe that got installed with Skype 4.0.0.227. All you need to do in Firefox is go to Tools menu -> Add-ons, then uninstall the Skype service. It only uninstalls the SkypeNames.exe; Skype works normally after that. Here's a thread on the Skype Forums discussing it. http://forum.skype.com/index.php?showtopic=374041&st=0