Showing posts with label microsoft. Show all posts
Showing posts with label microsoft. Show all posts

Check out TFS files directly from SQL Server Management Studio

The other day I explained how to configure the external tools feature of Edit Pad Pro to allow direct checking out of files from TFS.

Today I did the same thing in SQL Server Management Studio.

Configuring TFS Checkout in SQL Server Management Studio

Here are pictorial instructions:

Command: we are using the environment variable created by VS2012 to provide a generic path to the TF.exe command line tool. If you are not using VS2012, open a command prompt, type "set" and see which path is closest. Alternatively, just put in the absolute path to tf.exe.

If you do not have Visual Studio at all you can install the standalone Team Explorer for Visual Studio 2012 which includes tf.exe.

Arguments: we are passing the "checkout" command to tf.exe with a parameter of the full path to the .sql file we are working on.

Use Output window: this is optional but it will show you the information returned by the tf.exe command line tool.

Using the External Tool

This is simple. The tool item you just created now shows up in the Tools menu. Just click it and it will checkout the current file you have open in the IDE.

Last Words

There is a small annoyance: SSMS will try to save all unsaved files before running the external tool. In this case, if we've modified the file then it will try and save over a Read-only file, causing it to try and Save As to a new file name.

I believe this is a bug in SSMS, or a well-intentioned, yet obstructive feature. I can't see a way to disable this behaviour. Just press Escape to avoid this - the external tool will then run.

Let me know in the comments if you need any more information!

A couple of useful tools for managing stored credentials in Windows Vista/7

While messing around with a problem with cached IE credntials today, I came across these Windows user management tools.

(put the commands into the "Run" box in the start menu)

Stored usernames and passwords:

Command: rundll32.exe keymgr.dll, KRShowKeyMgr

- in this tool you can see commonly stored credentials for websites, servers and programs. Some interesting things in here. TBH, not entirely sure what these are used for!
- this is also useful if you want to transfer all your credentials over to another computer.

User Accounts

Command: control userpasswords2
- this is a simplified version of the usual user manager
- under Advanced -> Passwords, you can get to the stored usernames tool mentioned above

Regular user manager
Command: lusrmgr

The Microsoft Store

I only recently became aware of the Microsoft Store. It seems they are trying hard to improve the experience people get when they buy a Windows PC.

I actually heard about it on Windows Weekly, when they had a representative from that division on. He was talking about the 'Signature' program, which actually sounds pretty cool. The basic idea is to strip away all the garbage that you usually get on a new PC, as well as pre-configuring Windows and other common software with recommended settings.

The end goal? A PC you can boot up and be using to do actual productive work within a minute. The alternative has traditionally been to spend an evening configuring things, removing trial-ware, and getting it how you like it. Check out the whole Signature thing at the Microsoft store.

Update!
Over President's Day weekend, there's a special deal: $150 off a new PC from the Windows Store - click here for details!

How To Drop All Foreign Keys in a MS SQL Server Database

Today I needed to remove all foreign keys in a database. This was necessary because I was building a script to build a database from an initial import, plus a bunch of new tables, and alter statements.
So I needed a clean slate before running the initial import (DROP + CREATE) script.

The script below completely blows away ALL foreign keys in your DB.

Enjoy!


SET NOCOUNT ON
GO

DECLARE Fkeys CURSOR FOR
SELECT 'ALTER TABLE ' + TABLE_SCHEMA + '.[' + TABLE_NAME + '] DROP CONSTRAINT [' + CONSTRAINT_NAME + ']'
FROM information_schema.table_constraints
WHERE CONSTRAINT_TYPE = 'FOREIGN KEY'

OPEN Fkeys

DECLARE @Statement NVARCHAR(500)

FETCH NEXT FROM Fkeys INTO @statement
WHILE (@@FETCH_STATUS = 0)
BEGIN
   PRINT N'RUNNING ' + @statement
   EXEC sp_executesql @statement
   PRINT CHAR(13) + CHAR(13)
   FETCH NEXT FROM Fkeys INTO @statement
END

CLOSE Fkeys
DEALLOCATE Fkeys
GO
SET NOCOUNT OFF
GO

Are you an Internet Explorer 6 user?

If you answered a resounding, 'Yes!', then read on because I have some info that's really going to help you. For years now, if you wanted integrated search, tabbed browsing, streamlined RSS handling, and the ability to customize your browser, you really had to use Firefox. More recently, IE7 was an option, but a lot of people (45% of the readers of this blog) still use IE. So all of you 45% were left out in the cold when it came to a turbo-charged browsing experience.

Well no more! Windows Live Toolbar fully supports Internet Explorer version 6 and gives you everything that IE 7 has and more. Main features include:
  • Search: Search box in tool bar. Suggested searches as you type. Choose to search only for images, news etc.
  • Feeds: auto-detects feeds in page. One click subscribe.
  • Tabbed browsing: My tabs - open all your favorite sites with one click.
  • Customization: add custom buttons to show you things like News, Airfares, Weather, Movie Reviews right on your toolbar.
  • Security and Privacy: integrated OneCare Advisor tells you when sites are risky.
[If you're ready to grab it now then: Click here to download Windows Live Toolbar for free.]


As a web developer, I use Firefox for my base browser, and IE all the time to test sites. Windows Live Toolbar has really made my web development tasks easier, with the excellent features it adds. I get the same integrated search, easy RSS subscription, tabbed browsing, and customisation ability that I get in Firefox - and it's just a one-click install to get it.

Another group of people who will benefit from Live Toolbar are your family members who are always asking you for help. The great thing about the Toolbar is that it makes a lot of the tasks people want to do these days easy. For example, take subscribing to RSS. I know people who work in Online Media who don't even know how to do this. They are Firefox users and they can't even work it out - and they'd love to know! In this case, it is really just easier for them to stick to IE 6 + Live Toolbar. They'll get all the features they want, delivered in an easy way they can understand.

So I downloaded the Toolbar for IE6 yesterday while doing some site testing for a client. Once installed, I was skeptical about how it would compare to Firefox. After using it for a while, I was quite impressed. Yes, you could say, 'Well Firefox has had this for aaaaaaaaages!'. But that really isn't the point - the point is - IE6 now has the features - so use them!

Click here to download Windows Live Toolbar for free.

Use the link above to download Windows Live Toolbar from Microsoft. There is no signup required. It also comes in many languages other than English. The full list of languages is here. Enjoy your brand new IE6 browsing experience.

Feel free to contact me if you have any questions - any.. at all!



p.s. see below for the main features.


Start a search from anywhere
The search box on Windows Live Toolbar makes it convenient to find anything you're looking for online. To get you the answer faster, the toolbar shows you the most popular queries as you type. You can also choose the kind of answers you want, such as news or images.
Personalize your web experience
Custom buttons let you customize your Windows Live Toolbar to get the information you care about most, like movie reviews or airfare updates. Download custom buttons from Windows Live Gallery. (Don't see the custom button you want? It's easy to create your own.)
Stay informed about topics you care about
Interested in specific content? Windows Live Toolbar lets you detect and add feeds to your Live.com home page with a single click.
Help protect yourself against phishing scams and viruses
Windows Live OneCare Advisor is included with your toolbar to help keep you safer. We've also improved our blocking technology to better protect your personal information from unauthorized access.
Make web surfing simple with tabbed browsing
Easily manage a bunch of web pages in a single browser window. Quickly open new tabs and switch between web pages. You can open your favorite sites with one click by using My Tabs.

Microsoft Word: How to cross-reference a sequence number

If you found this post, then you are getting into the more advanced areas of Word. Namely, creating sequences, presumably to form your own custom lists. Sequences are a simple yet powerful tool which allows you to create an automatically-incrementing sequence of digits. As a software professional, I use this feature a lot when creating ordered list of tests or requirements.

A sequence is a type of Field in Word.
To create one, you just click on the Insert menu, then Field...
Change the Categories value to Numbering, and select Seq in the Field Names box.
In the Field codes box, add a unique name, e.g. MySeq, after the word SEQ. Leave a space between SEQ and the sequence name.

You can also add options which control the way the sequence is displayed, but that is out of scope. A good site to look at is: http://office.microsoft.com/en-us/word/HP051861901033.aspx?pid=CH061047291033.

When creating a sequence you give it a name and I believe you can have an unlimited amount in your document. You often combine a prefix with the sequence, e.g. E1, R1, N1, to indicate which sequence is being used. Another common way to use them is to place the sequence field in a table cell, as a way of numbering each table row.

Anyway enough of the general stuff - amazingly, in Word (up to 2003, haven't checked in 2007) you cannot just go ahead and cross-refence a sequence. You would think this would be a normal feature, as it is a common task to want to reference a sequence number elsewhere. For example you may want to say "see requirement R37" and reference sequence number 37 in the Requirements sequence.

So the way you accomplish this is:

Go to each sequence value you want to reference.
Select the whole item, including the sequence number and any prefix/suffix.
Click on the Insert menu, then Bookmark...
Under Bookmark name, create a unique bookmark name, e.g. Req37.
Click Add.

You sequence value is now bookmarked.
Now you can reference it elsewhere:
Click on the place in your document where you want the cross-reference to be placed.
Click on the Insert menu, then Reference, then Cross-Reference...
Select Reference Type "Bookmark" and select "Bookmark text" in the "Insert reference to" list.
You will see your bookmark in the list. Click on it, then click on the Insert button.
You should see the sequence value inserted into your document.
Test it by Ctrl-clicking on the reference.

That's it! Hope that helps.

Error while installing .NET Framework 3.5 Beta 1

It seems that on Windows XP SP2, if you already have .NET Framework 3.0 installed, you will get an error while trying to install the pre-release .NET 3.5 beta 1.

The installed will complain about dependencies, one of such is:

Microsoft .NET Framework 3.0SP1 WCF

You will not find this to download anywhere!

The fix!
Uninstall .NET Framework 3.0, then start the 3.5 installation process. The 3.5 installer will grab the bits of 3.0 that it needs. This will fail again BUT it will have installed the necessary prerequisites. You'll get similar DepCheck errors again.

Then, install the: Visual Studio 2005 extensions for .NET Framework 3.0 (Windows Workflow Foundation)

Now, start the 3.5 installation one more time. This time it should complete.
Restart the PC and you're done.

If you're tearing your hair out with the SSIS 'Failed to acquire connection...' error...

.. try setting the TransactionOption property on the package to NotSupported.
Your problem could be that MSDTC is either not running, incorrectly configured, or being blocked by a firewall.

This problem is common when migrating a package, which you've been working on a local dev machine, to a staging or production server. Servers commonly have tighter security restrictions than desktops or perhaps the admin hasn't even enabled MSDTC.

If you really need transactions then you'll have to delve into this issue deeper!

Here's some links to help you:
http://blogs.conchango.com/jamiethomson/archive/2005/11/02/2339.aspx
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=146&messageid=266032

etc..

Repair of a corrupt Microsoft Access ADP file

1. Open a brand new ADP file.
2. Enter the connection details when prompted.
3. File->Get External Data->Import
4. Select the corrupted ADP file
5. Select all Forms, Reports, Macros, Modules that you need. Click OK
6. If all goes well, you'll have a working ADP file again. If it doesn't go well, try being more selective with the imported data. You might have a badly corrupted Report that you'll have to skip.

This may give you some more ideas.

Tags

windows (10) microsoft (9) .net (6) google chrome (5) windows 7 (5) asp.net (4) google (4) google browser (4) development (3) javascript (3) mssql (3) rss (3) sql server (3) wordpress (3) automation (2) blogging (2) css (2) database (2) firefox (2) get all wordpress images (2) gmail (2) google docs (2) intel (2) internet explorer (2) linux (2) linux commands (2) microsoft word (2) mysql (2) netsh (2) network issue (2) proxy (2) seo tips (2) shell (2) sun (2) tfs (2) videos (2) wget (2) windows networking (2) windows vista (2) winhttp (2) .net 3.5 (1) .net 4.5 (1) .net async ctp3 (1) .net framework 4.0 (1) 404 (1) JungleDisk (1) access (1) active directory (1) addons (1) adobe acrobat (1) adobe dlm (1) adobe reader (1) adp (1) adsense (1) adtoll (1) adwords (1) amazon (1) antivirus (1) asp.net 4.0 (1) authentication (1) back links (1) backlinks (1) bacula (1) bash (1) batch files (1) blogger (1) box (1) browser exploits (1) category rss (1) cell phone (1) cell phone comparison (1) charting (1) cheap cell phones (1) cheap laptop upgrades (1) checkout (1) chrome (1) chrome.manifest (1) cloud (1) cloud hosting (1) cloud vps (1) code (1) color chart (1) colour chart (1) conditional formatting (1) config (1) configuration (1) context menu (1) copy (1) corrupt (1) credentials (1) cross-reference (1) database scripts (1) dba scripts (1) debian (1) decrypt (1) delete file windows vista (1) delete files (1) dell (1) dell laptop (1) dell studio (1) dell studio 1537 (1) dhcp (1) directory size (1) div (1) dns (1) document properties (1) dotnet (1) download (1) dreamhost (1) dreamhost coupon (1) dreamhost promo (1) dreamhost promo code (1) drive letter (1) drivers (1) duplicate content (1) editpad pro (1) encrypt (1) encryption (1) error (1) error code (1) excel (1) exception (1) external hard drive (1) facebook (1) faviconize (1) feeds (1) firefox 3 rc1 (1) firefox 3.1 (1) firefox addons (1) firefox tabs (1) firewall (1) firewall script (1) fix (1) fix .net framework (1) foreign keys (1) gmail 2.0 (1) gmail error (1) google chrome 2.0 (1) google chrome dev (1) google chrome exploit (1) google reader (1) google reader tags (1) gtdinbox (1) hard drive (1) hex color (1) hex colour (1) htaccess (1) html (1) html 5 (1) iis6 (1) installation (1) ipod touch (1) ipod touch 2g (1) ipod touch freeze (1) ipod touch magnet case (1) ipod touch magnet case problem (1) ipod touch problem (1) iterator pattern (1) itunes (1) java (1) joomla (1) jquery (1) laptop (1) laptop upgrade (1) laptops (1) latex (1) leeching (1) like button (1) link checker (1) linkbacks (1) linq (1) linqdatasource (1) lost password (1) making money online (1) map drive (1) mega cheap phones (1) microsoft excel (1) microsoft signature (1) microsoft store (1) microsoft web deploy (1) microsoft windows (1) microsoft word 2007 (1) minimize firefox tabs (1) mozy (1) ms word (1) msdeploy (1) msdtc (1) nant (1) netstumbler (1) network path not found (1) network path was not found (1) network problem (1) networking (1) new movies (1) nintendo (1) nirsoft (1) nocheckbrowser (1) number (1) odf (1) odt (1) online backups (1) open source browser (1) openoffice (1) oracle (1) oracle client (1) photoshop (1) phpmyadmin (1) podcast (1) powershell (1) pr checker (1) productivity (1) proxy server (1) proxycfg (1) putty (1) recover (1) registry (1) reinstall windows 7 (1) remote desktop (1) remove (1) repair (1) reset joomla admin password (1) rewrite (1) rsa (1) sandy bridge laptop (1) seagate momentus xt (1) seo tools (1) sequence (1) server monitoring (1) sftp (1) social networks (1) softlayer (1) soulseek (1) spreadsheet (1) spreadsheet formula (1) sql (1) sql scripts (1) sql server management studio (1) sqlclient (1) ssh (1) ssis (1) ssl (1) ssms (1) subst (1) tabmixplus (1) telstra (1) text editor (1) trust (1) unlock cell phone (1) unlock mobile phone (1) upgrade laptop hard drive (1) user management (1) vb.net (1) video download (1) virtual server (1) visual studio (1) vodafone (1) vodafone australia (1) vps (1) vps.net (1) wd external drive (1) web deploy (1) web dev (1) web development (1) web hosting (1) web security (1) webdev (1) webmail (1) webmaster tips (1) western digital (1) wifi networks (1) wii (1) win7 (1) windows 7 backup (1) windows 7 gadgets (1) windows 8 (1) windows 8 antivirus (1) windows error (1) windows live (1) windows live essentials (1) windows live toolbar (1) windows tips (1) windows web development (1) windows xp (1) winxp (1) wireless networks (1) word tips (1) wordpress 2.7 (1) wordpress plugin (1) wp super cache (1) yield (1) youtube download (1) youtube playlist download (1)