A quick article on how to get the value of 40°4′20″N 116°35′51″E into 40.079857, 116.603112.
Let's pretend all the names are in column A, in Column B I have the coordinates that I want to convert:
- A B
- ------------------------------------- ----------------------
- Beijing Capital International Airport 40°4′20″N 116°35′51″E
- Beijing Shahezhen Air Base 40°8′57″N 116°19′17″E
- Beijing Tongxian Air Base 39°48′40″N 116°42′30″E
Note that I tend to copy the coordinates off a website which has strange apostrophes and double-quotes. You can change this but remember to put two double-quotes if you are searching on it, eg:
- FIND(""",B1) // will NOT work!
- FIND("""",B1) // will work
- FIND("″",B1) // will work
A quick article on if you want to extract the link from some text you have copied off the web and into an MS Excel document.
- Open up a new workbook.
- Get into VBA (Press Alt+F11)
- Insert a new module (Insert > Module)
- Copy and Paste the Excel user defined function below
- Sub ExtractHL()
- Dim HL As Hyperlink
- For Each HL In ActiveSheet.Hyperlinks
- HL.Range.Offset(0, 1).Value = HL.Address
- End Sub
- Press F5 and click “Run”
- Get out of VBA (Press Alt+Q)
A quick article on an alternative to multiple lookups in SSIS. For any SSIS developer trying to create packages that need to decode a number of values into their full name/description (eg. "M" to "Male", "Prof" to "Professor").
Our extract phase in the SSIS package takes data from a source database and puts it in staging in the exact form it came through. Our transform package will convert the data and output it to the target system. For our package to decode what "M" means, it needs to look this up in a table on the original server. We had around 12 lookups to do, so you could do this:
This is an article to demonstrate a quick step-by-step on having an SSIS package loop through a directory/folder of files in order to populate a database table. We could add each file as a separate connection manager but this is inefficient and not versatile enough to accommodate files that get added later.
I am creating an extract SSIS package intended to take a text file as its source and to populate a database table with this data. Note that this only works if all the text files to be used as source data have the same number of columns and where the column widths match.
I've adapted my real working product with an example. As my work was for a Personnel/HR project, and data confidentiality is somewhat important, some of the images will be censored or data changed in the example below.
I started getting this error:
- The task with the name "Data Flow Task" and the creation name "DTS.Pipeline.2" is not registered for use on this computer
We use a combination of MS Visual Studio 2008, 2010 and 2012. VS2008 for our old SSIS packages and VS2010 for database solutions running against SQL Server 2008 R2. We can use VS2012 for both but this requires upgrading all the packages and then making them suitable for our new SQL Server 2012 instances.
This applies to a workstation (hopefully you're not doing development directly on the server). I re-installed sql server setup, re-ran the repair to no avail. A clue came from the MS site for an older version of the pipeline in that you access the SQL Server Configuration Manager. This may not be the fix for you but it was for me:
- Open Start > All Programs > SQL Server 2012 (or your latest)
- Expand "Configuration Tools" and open "Sql Server Configuration Mnaager".
- Right-click on "SQL Server Integration Services 10.0" and select "STOP".
- Right-click on "SQL Server (SQLEXPRESS)" and select "STOP".
Thank You! :c)