SELECT SQL Select SQL and upgrade your performance

  • SELECT SQL
  • MSSQL
  • MySQL
  • Utilities
  • CSV to SQL
  • Contact
0
DateAdd and Leap Year issue
DateAdd and Leap Year issue
There is an issue with Leap Year and DateAdd function that can appear if you want to compare two dates from different years and using some date value ...
How to SELECT Min/Max value with associated column from same row
How to SELECT Min/Max value with associated column from same row
When you need select Min or Max value from table with one column, it's easy SQL task. A little harder is same request when you want to find minimum va...
Solved - Arithmetic overflow error converting float to data type numeric
Solved - Arithmetic overflow error converting float to data type numeric
Are you trying convert float to numeric and you get "Arithmetic overflow error converting float to data type numeric" error? This could happen even if...
How to recover unsaved T-SQL or previous version of altered view or store procedure
How to recover unsaved T-SQL or previous version of altered view or store procedure
When you alter view or stored procedure and you realize, previous version wasn't saved and you need it. Or you want recover SQL script immediately aft...
How to find and remove hidden characters and invisible whitespace when LTrim, RTrim not work
How to find and remove hidden characters and invisible whitespace when LTrim, RTrim not work
Sometimes it can happen, that you compare two strings, which looks exactly sames, but they are processed as not equal. Also when you use SELECT DISTIN...
 
 
Execute SQL Task Error: 0xC002F210, Problems with the query,
Execute SQL Task Error: 0xC002F210, Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly
3 most often reason, when you are using variables in Execute SQL task inside SSIS and get following error: Error: 0xC002F210 ... , Execute SQL Task: ...
How to use a variable inside SQL in SSIS Data Flow Tasks
How to use a variable inside SQL in SSIS Data Flow Tasks
Sometimes you need to use a variable inside SQL in SSIS Data Flow Tasks. For example, you may want to select TOP x records in a periodically scheduled...
Solved - Retrieving the COM class factory for component with CLSID in SSIS
Solved - Retrieving the COM class factory for component with CLSID in SSIS
I get strange error during redeveloping one SSIS. When I tried run some SQL task, finally such an easy one with "SELECT 1", I always received same err...
Loop through ADO recordset in SSIS
Loop through ADO recordset in SSIS
For some solutions in SSIS you may need to go over all records from some SELECT and each record use in some subqueries. In this case you want loop rec...
 
 
A couple of MySQL DML things I did not know
A couple of MySQL DML things I did not know
As I'm coming from Microsoft SQL Server environment, working with MySQL is constantly surprising me in many ways, both good and bad :) In contrast to ...
Read this Entry
SQL script to create intro image by parsing article text in Joomla 3.x
SQL script to create intro image by parsing article text in Joomla 3.x
When I migrated one of my web site from Joomla 1.5 into Joomla 3.3 I found there is finally nice feature in Joomla 3.x called Images and Links, which ...
Read this Entry
How to merge 2 tables into one result in MySQL
How to merge 2 tables into one result in MySQL
Today I get interesting question. How to merge in MySQL two tables, where could be same primary key and different values. Result should be as select f...
Read this Entry
 
 

Hot to get list of OLAP dimensions with attributes used in CUBE

Details
Written by Stanislav Duben
Published: 03 April 2017
Parent Category: MSSQL

SQL icon baseIn case you need create list off all dimensions used in cube on Microsoft SQL server, with list of all dimension attributes. There is easy and simple way how to do it with query.

Read more: Hot to get list of OLAP dimensions with attributes used in CUBE Add new comment
Last Updated: 03 April 2017
Hits: 26892

How to get ISO Year for ISO Week

Details
Written by Stanislav Duben
Published: 05 January 2017
Parent Category: MSSQL

SQL icon baseIf you need calculate week number from date, you can use DATEPART with parameter ISO_WEEK. Unfortunately there is nothing like ISO YEAR parameter. In case you need to show YearWeek value in some report you have to take care about correct value manually.

Read more: How to get ISO Year for ISO Week Add new comment
Last Updated: 03 April 2017
Hits: 34964

A couple of MySQL DML things I did not know

Details
Written by Peter Krejzl
Published: 03 February 2016
Parent Category: MySQL

MySQL-serverAs I'm coming from Microsoft SQL Server environment, working with MySQL is constantly surprising me in many ways, both good and bad :) In contrast to MS SQL I need to focus significantly more on the performance of our queries and be prepared that everything is not as easy as in MS SQL world :)

Read more: A couple of MySQL DML things I did not know Add new comment
Last Updated: 03 February 2016
Hits: 14221

How to count number of distinct values in each column of a table in MS-SQL

Details
Written by Stanislav Duben
Published: 01 February 2016
Parent Category: MSSQL
SQL_icon_base.jpgAre you looking for simple way, how to get count of distinct values for each column in a table on MS-SQL database? There is a simple script with solution to help you.
Read more: How to count number of distinct values in each column of a table in MS-SQL Add new comment
Last Updated: 01 February 2016
Hits: 17803

Execute SQL Task Error: 0xC002F210, Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly

Details
Written by Stanislav Duben
Published: 27 January 2016
Parent Category: MSSQL

2-sql-servers3 most often reason, when you are using variables in Execute SQL task inside SSIS and get following error:

Error: 0xC002F210 ... , Execute SQL Task: Executing the query "...

..." failed with the following error: "HERE IS IMPORTANT PART". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

 

Read more: Execute SQL Task Error: 0xC002F210, Problems with the query, "ResultSet" property not set... Add new comment
Last Updated: 04 February 2016
Hits: 79223

SQL script to create intro image by parsing article text in Joomla 3.x

Details
Written by Stanislav Duben
Published: 22 July 2014
Parent Category: MySQL

joomla-migrace-sql-scriptWhen I migrated one of my web site from Joomla 1.5 into Joomla 3.3 I found there is finally nice feature in Joomla 3.x called Images and Links, which is assigned image to article like thumbnail images in Wordpress. New themes know what to you in responsive templates and it works really nice. Well if you have assigned images. To not do it manully I created parsing SQL scripts, that will help you do it on one click.

 

 

Read more: SQL script to create intro image by parsing article text in Joomla 3.x 1 comment
Last Updated: 22 July 2014
Hits: 24279

Page 2 of 5

  • Start
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next
  • End

Contact

Travel Guides

  • Travel Guides
  • Atlanta Travel Guide
  • Berlin Travel Guide
  • Brazil Travel Guide
  • Bulgaria Travel Guide
  • Caribbean Travel Guide
  • Detroit Travel Guide
  • Egypt Travel Guide
  • Hong Kong Travel Guide
  • Japan Travel Guide
  • Madrid Travel Guide
  • Miami Travel Guide
  • New York Travel Guide
  • Norway Travel Guide
  • Prague Travel Guide
  • Rome Travel Guide
  • Shanghai Travel Guide
  • Slovakia Travel Guide
  • Spain Travel Guide
  • Sydney Travel Guide
  • Tijuana Travel Guide
Powered by T3 Framework