- Add the SQL Server to the local (on my development machine) SQL Server linked servers list.
This is done by:
Using the Object Explorer and opening "Server Objects -> Linked Servers", right clicking and selecting "New Linked Server".
The important next step is that the "Linked server" field is filled out with the SQL Server name only, eg: SOMELIVEBOX-SQL5 and then the "SQL Server" radio button is selected.
Next, on the left, select "Security" and choose "Be made using this security context:" and fill out the SQL Server login details. - Then the query, and this is only relevant if the SQL Server name has an illegal character (like '-') in it.
Lets say the table is called "MyTable", is in a database called "MyDB", is in the server mentioned in point 1 and we want all the records from it...
Open a new query window from inside the local database and type:
SELECT * FROM [SOMELIVEBOX-SQL5].MyDB.dbo.MyTable
Wednesday, June 16, 2010
Performing Queries With T-SQL DBs With Illegal Characters In Their Name
Tuesday, June 15, 2010
My Favourite Chrome Extensions
- Speed Dial
https://chrome.google.com/extensions/detail/dgpdioedihjhncjafcpgbbjdpbbkikmi?hl=en-gb
https://chrome.google.com/webstore/detail/speed-dial-3web/lceefillmbhhileboicaeakgcikdocmm?hl=en-US - InstaPaper
https://chrome.google.com/extensions/detail/acgdjjilmhiofacmdnmmlndeokamkkcl?hl=en-gb - Tube Service Status Updates
https://chrome.google.com/extensions/detail/dcbnpmjhmjhpaegikhpjlaemjiilnkgb?hl=en-gb - CoolIris
https://chrome.google.com/extensions/detail/noocneohefmdhonidldnlhaainpiomkp?hl=en-gb - Fastest Chrome
https://chrome.google.com/extensions/detail/mmffncokckfccddfenhkhnllmlobdahm?hl=en-gb - Downloads
https://chrome.google.com/extensions/detail/jfchnphgogjhineanplmfkofljiagjfb?hl=en-gb - Quick QR
https://chrome.google.com/extensions/detail/bcfddoencoiedfjgepnlhcpfikgaogdg?hl=en-gb - GMail Checker Plus
https://chrome.google.com/extensions/detail/gffjhibehnempbkeheiccaincokdjbfe?hl=en-gb - Join Tabs
https://chrome.google.com/webstore/detail/binjiceocgbfooocmheaenmmcominbpe - XMarks Bookmark Sync
https://chrome.google.com/webstore/detail/ajpgkpeckebdhofmmjfgcjjiiejpodla - Page Snooze
https://chrome.google.com/webstore/detail/bmhnhpfchoeofnjoobbhgihdkhllnfbc - Print Friendly
https://chrome.google.com/webstore/detail/jmplllfmgpkogegnjnkecmkdbeaeheop - youR Here
https://chrome.google.com/webstore/detail/fkandkgadbpobooanbmiiinlelnhbabm - Edit This Cookie
https://chrome.google.com/webstore/detail/edit-this-cookie/fngmhnnpilhplaeedifhccceomclgfbg
Thursday, June 10, 2010
Can't Connect To Local SQLEXPRESS
I encountered the exact same error. My work around to get the server back up and running is as follows. This applies to both the engine and the agent. The bug in this patch didn't affect the other SQL related services.
I changed the service account from the normal one to one that is local administrator to the server (me).
I was then able to start the services.
I went into the SQL Server 2005 Surface Area Configuration tool and changed Database Engine -> Remote Connections to use Local connections only.
I restarted the engine service.
I then changed it back to using Local and remote connections Using TCP/IP only.
I restarted the engine service.
I then changed both services back to their normal service account and all is well.
I could not get the patch to apply under any circumstances or configuration that I tried and have given up on it in hopes that MS releases a new one for this real quick.
Tuesday, June 08, 2010
Google Proxy Setting
- Target: "C:\Documents and Settings\
\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --proxy-server=
Sunday, June 06, 2010
Load Balanced Session State Partitioning
- http://code.msdn.microsoft.com/velocity/
http://en.wikipedia.org/wiki/Velocity_(memory_cache)
http://www.microsoft.com/downloads/details.aspx?FamilyId=B24C3708-EEFF-4055-A867-19B5851E7CD2&displaylang=en - http://memcached.org/
- http://www.alachisoft.com/ncache/index.html
- http://www.scaleoutsoftware.com/products/state_server.php
- http://sharedcache.codeplex.com/
http://www.sharedcache.com/
- http://blog.maartenballiauw.be/post/2007/11/ASPNET-load-balancing-and-ASPNET-state-server-(aspnet_state).aspx
- http://blog.maartenballiauw.be/post/2008/01/ASPNET-Session-State-Partitioning.aspx
- http://blog.maartenballiauw.be/post/2008/01/24/ASPNET-Session-State-Partitioning-using-State-Server-Load-Balancing.aspx
- http://en.aspnet-bhs.info/post/State-Server-Partitioning.aspx
- http://www.theserverside.net/news/thread.tss?thread_id=47330
- http://www.codeproject.com/KB/session/ASPNETSession.aspx
- http://blogs.msdn.com/velocity/archive/2008/06/05/how-to-use-session-store-provider-microsoft-project-code-named-velocity.aspx
- http://stackoverflow.com/questions/2063421/scaleout-vs-ncache
- http://forums.asp.net/t/1030680.aspx
- http://forums.asp.net/t/1210004.aspx
- http://stackoverflow.com/questions/489270/caching-and-session-state-management-using-microsoft-velocity-and-memcached
- http://stackoverflow.com/questions/856959/which-distributed-cache
- http://predicatet.blogspot.com/2009/09/download-microsoft-web-application.html
- http://support.microsoft.com/kb/231282
- http://www.west-wind.com/presentations/webstress/webstress.htm
- http://ask-leo.com/can_i_monitor_or_control_the_bandwidth_used_on_my_home_network.html
- http://www.softwareqatest.com/qatweb1.html#LOAD
- What a 'Cache' is: http://en.wikipedia.org/wiki/Cache
- "Caching in the distributed environment": http://msdn.microsoft.com/en-us/library/dd129907.aspx
- Memcached Vs Velocity Showdown: http://www.briandrought.com/blog/?p=29
- Distributed
- Partitioaned
- Replicated
- Remote clients available
- Expensive
- Failover
- Clustered
- Free developer edition not appropriate for live environments
- Free
- Open source
- Distributed
- Not partitioned
- Not replicated
- Servers unaware of each other
- Not clustered
- Least recently used model
- Sparsely documented
Friday, June 04, 2010
Rediscovering A Blog Entry On The Button Element
Thursday, June 03, 2010
Get Notified About Public Holidays
T-SQL IsNullOrEmpty
Wednesday, June 02, 2010
How To List The Columns In Your Table
select c.* from sysobjects o inner join syscolumns c on o.id = c.idwhere o.xtype = 'U' and o.name = 'myTableName'
Friday, May 28, 2010
Concatenating String Fields In T-SQL
Thursday, May 27, 2010
PIVOT
Friday, May 21, 2010
Virtual Machines
- http://en.wikipedia.org/wiki/Virtual_machine#List_of_virtual_machine_software
- http://en.wikipedia.org/wiki/Comparison_of_platform_virtual_machines
- VirtualBox
http://www.virtualbox.org/wiki/VirtualBox
http://en.wikipedia.org/wiki/VirtualBox - Hyper-V
http://www.microsoft.com/hyper-v-server/en/us/default.aspx
http://en.wikipedia.org/wiki/Hyper-V - VirtualPC
http://www.microsoft.com/windows/virtual-pc/default.aspx
http://en.wikipedia.org/wiki/VirtualPC - BootCamp
http://www.apple.com/macosx/compatibility/
http://en.wikipedia.org/wiki/Boot_Camp_(software) - Parallels
http://www.parallels.com/uk/products/desktop/
http://en.wikipedia.org/wiki/Parallels_Desktop_for_Mac - Parallels Workstation
http://www.parallels.com/uk/products/desktop/pd4wl/
http://en.wikipedia.org/wiki/Parallels_Workstation - VMWare
http://www.vmware.com/
http://en.wikipedia.org/wiki/VMware
- VirtualPC - Quite good, does what it says on the tin but hogs a lot of system resources. Will run non-Windows OS's, but probably is better running Windows. Discontinued, I understand, in deference to Hyper-V.
- Parallels - Not the same kind of virtual machine as VirtualPC, in that it's expressly designed to run Windows on a Mac, but it does this beautifully. It can startup Windows which has been installed into Parallels or BootCamp and run them side by side.
- BootCamp - Runs Windows on a Mac as a stand-alone OS, in that Mac OS X is not running at the same time. Allows the Mac to operate as a Windows PC and does it pretty much better than a regular PC can IMHO.
- VMWare - Basically just like VirtualPC, but many would have it as being more stable and not Microsoft.
Web.config Element Positions
Thursday, May 20, 2010
I Don't Know Nout About Fonts, But I Know This
Friday, April 30, 2010
Stuff You (I) Should Know
- OpenRasta
http://trac.caffeine-it.com/openrasta/wiki/Doc - ASP.NET MVC 2
http://www.asp.net/learn/mvc/
http://channel9.msdn.com/posts/matthijs/ASPNET-MVC-2-Ninja-Black-Belt-Tips-by-Scott-Hanselman/ - SparkView
http://sparkviewengine.com/documentation/syntax - Castle
http://www.castleproject.org/activerecord/documentation/v1rc1/index.html
http://gojko.net/2008/11/04/dependency-injection-with-castle-windsor-video/
http://using.castleproject.org/display/IoC/Home
http://using.castleproject.org/display/IoC/Fluent+Registration+API
http://www.castleproject.org/castle/download.html
http://api.castleproject.org/
http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/ - NHibernate
http://nhforge.org/
http://community.jboss.org/wiki/NHibernateforNET
http://www.nhforge.org/doc/nh/en/index.html
http://blogs.hibernatingrhinos.com/nhibernate/archive/2008/04/01/your-first-nhibernate-based-application.aspx
http://www.ayende.com/hibernating-rhinos.aspx
http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx - MvcContrib
http://mvccontrib.codeplex.com/Wikipage
http://mvccontrib.codeplex.com/releases/view/43560 - NUnit
http://www.nunit.org/ - Ruby On Rails
http://ironruby.net/About - Fluent Programming
http://en.wikipedia.org/wiki/Fluent_interface - NerdDinner
http://nerddinnerbook.s3.amazonaws.com/Intro.htm
http://www.hanselman.com/blog/ExtendingNerdDinnerExploringDifferentDatabaseOptions.aspx
http://www.hanselman.com/blog/ExtendingNerdDinnerAddingMEFAndPluginsToASPNETMVC.aspx - Managed Extensibility Framework "MEF"
http://mef.codeplex.com/
http://code.msdn.microsoft.com/mef
http://blog.maartenballiauw.be/category/MEF.aspx
Monday, April 26, 2010
Wednesday, April 21, 2010
Error 107 ERR_SSL_PROTOCOL_ERROR
- Using HTTP://
The page must be viewed over a secure channel - Using HTTPS://
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): Unknown error IIS - And occasionally
Bad Request (Invalid Hostname)
- http://springboardpillow.blogspot.com/2009/03/creating-certificate-in-iis.html
- Securing a web service with SSL: http://msdn.microsoft.com/en-us/library/aa302409.aspx
- Configuring your web server to use SSL: http://support.microsoft.com/kb/324069
- Securing XML web services created using ASP.NET: http://msdn.microsoft.com/en-us/library/w67h0dw7(VS.71).aspx
- Renewing a wildcard SSL certificate in IIS 6: http://stackoverflow.com/questions/1389941/renewing-a-wildcard-ssl-certificate-in-iis-6-1024-to-2048-bit
- Easily secure custom web services with .NET: http://articles.techrepublic.com.com/5100-10878_11-5779491.html
- HTTPS Web Request and Web Response: http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.csharp/2005-06/msg00038.html
- Click Web Site tab
- Click Advanced button
- Under Multiple SSL identifies for this Web site select the site's IP row
- Click Edit button
- From the IP address drop down menu select the IP address of that site
- Click Ok, Ok, Ok
Wednesday, April 14, 2010
Tuesday, April 06, 2010
Debugging SQL And The Fun Attached To That
Server Error in '/' Application.Source:Microsoft OLE DB Provider for SQL ServerDescription:Incorrect syntax near '('.Source:Microsoft OLE DB Provider for SQL ServerDescription:Invalid object name 'MSCS_CatalogScratch.dbo.Catalog__Query__Results__for_spid__304'.Source:Microsoft OLE DB Provider for SQL ServerDescription:Invalid object name 'MSCS_CatalogScratch.dbo.Catalog__Query__Results__for_spid__304'.