SSMS viewInfo error with no database list shown

PROBLEM

Opened SSMS 2012 and got error viewInfo. Unable to see database list.
On Refresh databases same error.

SOLUTION

For me it was to do a restore back 2 days

BACKGROUND

Others have had this.

Sysinternal Tools and filters to “Process Name is ssms.exe” and “Path contains AppData\Local\Temp”

It seemed to not be finding an Addin.

https://connect.microsoft.com/SQLServer/feedback/details/573771/value-cannot-be-null

https://github.com/TaoK/PoorMansTSqlFormatter/issues/48

T-SQL unable to CAST text to a number – Byte order mark – Dodgy character at start

Scenario

Imported some data from Excel in form “156 x 54 x 16mm”. Parsed the text to get the 156. However this would not convert to a numeric.

Error converting data type nvarchar to numeric

After some exploration I discovered that the cursor required to steps through before the number. So a character was there that SQL Server could not display. To find this I used:

SELECT Code, UNICODE(LEFT(DimensionsTextImport, 1)) AS UnicodeTest FROM Product.<tablename>

And discovered text which would not convert had Unicode 65279

Solution

Create a new column and fill this with the data from the first column after a CASE statement.

UPDATE Product.Dimensions
SET DimensionsText = CASE
WHEN UNICODE(LEFT(DimensionsTextImport, 1)) = 65279 THEN SUBSTRING(DimensionsTextImport, 2, 50)
ELSE DimensionsTextImport END

With reference to:

http://stackoverflow.com/questions/6441208/unable-to-replace-char63-by-sql-query

http://www.fileformat.info/info/unicode/char/feff/index.htm

http://en.wikipedia.org/wiki/Byte_Order_Mark

 

 

Cannot use adobe reader to view pdf in your browser. Reader will now exit. Please exit your browser and try again.

PROBLEM:

  • Windows 7 64-bit
  • Internet Explorer 9
  • Adobe Reader 8.3.1

When opening a pdf in i.e

“Cannot use adobe reader to view pdf in your browser. Reader will now exit. Please exit your browser and try again.”

With reference to:

http://forums.adobe.com/thread/511010

Uninstall version 8.3.1 and install latest. For me this was 11.x.x

Crystal Reports Error: The request could not be submitted for background processing

If there is a database picture this may need to be re-imported

Outlook Expand Group fails. Cannot perform the requested operation.

Problem

Outlook Expand Group fails. Cannot perform the requested operation. The command selected is not valid for this recipient. The Operation failed.

Solution

Outlook > Contacts > Open Group > Update Now

One or more members of this contact group cannot be found…

 

 

An error occurred generating a bootstrapper: Unable to begin updating resource for bin\Debug\app.publish\setup.exe with error 80070002 TESTPUBLISH

ERROR

An error occurred generating a bootstrapper: Unable to begin updating resource for bin\Debug\app.publish\setup.exe with error 80070002 TESTPUBLISH

A SOLUTION to get it to work

Untick the Prerequisites button

See also:

http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/9ab9b88b-a57b-4945-9f94-e48a82ad5d8c

 

Crystal Reports – Invalid Argument provided. Failed to open a rowset. Error in File Invalid argument for database

At first thought it ran OK in Crystal not when called from program.

Then checked that it ran from the program on the Crystal developer machine OK.

So runs OK on developer’s machine not on particular user’s machines.

Hence error with ODBC. Changed developer machine ODBC to use from SQLNCLI to SQL Server Native Client 10.0 i.e. SQLNCLI10 and then went to report and “Set Location” for the newest table, the report then worked on all machines

[Microsoft][ODBC Driver Manger] Data source name not found and no default driver specified

ERROR

Have an old Excel file that connects to a database list using Microsoft Query. An existing user was moved to a new Windows 7 machine and then got this error.

[Microsoft][ODBC Driver Manger] Data source name not found and no default driver specified

SOLUTION

Tried various things. In the end.

In Administrative Tools > ODBC > Drivers on his machine SQLNCLI was missing.
I did not want to install this old version, so initially changed the connection string to “SQL Server Native Client 10.0” but “SQLNCLI10” may work

How to change user credentials for TFS in Visual Studio

Because of some work we were doing I lost my TFS connection. When I logged in again I used the wrong account. I did not know how to connect to a different account. Disconnect and connect took me back to same account.

Solved with thanks to:

http://www.byteblocks.com/post/2010/12/10/How-to-change-user-credentials-for-TFS-in-Visual-Studio.aspx

This had images as well. Text copied here in case link breaks

  • Goto Start > Control Panel on your machine.
  • Click on User Accounts or User Account and Family Safety, depending on your operating system and configuration.
  • Now you should see UI that looks like below. Click on Credentials Manager

Click on the connection you want to modify. Remove from vault. Or Edit worked for me.

 

Location of Word Startup Macros .dot file

For Word 2003 on Server 2008 I was having an issue whereby the <MyMacrosFile>.dot was not loading on Startup of Word. This was because I had put the file in the Templates location of Server 2008 not the Startup location.

SOLUTION

In Word 2003 Tools > Options > File Locations

The length is limited, so select Startup and press Modify button to see full directory. Put the <MyMacrosFile>.dot file in here.

Seems unnecessary to have a blog entry, but this has caused me some minor lost time, as I while the file was in Templates, I was able to then load it, but this was a little time consuming.