Quantcast
Channel: niX Tips
Browsing latest articles
Browse All 4 View Live

VBA – Excel – Remove Non Alphanumeric characters from string

The following function takes a string as an input, and will return the string after having removed all non alphanumeric characters. [crayon-5666b82e68ca5609479768/] Quick explanation : The string Str...

View Article



VBA – Excel – Data Profiling of a cell and SQL data type

If you have to load large CSV files / spreadsheets into a SQL Server database, you will soon find that cells of a given column not always have the data types you would expect them to have… Mostly...

View Article

VBA – Excel – Connect to SQL Server and extract data

Here is a quick VBA procedure that shows how to connect to a remote SQL Server and extract data from a table. In order for this to work, make sure that you have added “Microsoft ActiveX Data Objects...

View Article

SQL – How to identify duplicates in a table

The following snippet shows how to identify duplicate records in a table. To summarize, a hash key is created based on all determinant fields of the table. If 2 lines have the same data, their hash...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images