Quantcast
Channel: Databases – Rochcass
Browsing latest articles
Browse All 14 View Live

Image may be NSFW.
Clik here to view.

Error: The data types text and text are incompatible in the equal to operator

While taking security measures to hash password I chose text as a datatype, what I did not know is that the such type is considered as a blob type and is very limited. Comparing text with text is one...

View Article



Image may be NSFW.
Clik here to view.

Error: You cannot save changes that would result in one or more tables being...

When trying to save something to a table, such as new fields or isNull tick box, set primary keys or change data types, the above error may pop up. This may happen due to attempts to: Change data type...

View Article

Image may be NSFW.
Clik here to view.

Microsoft SQL Server Error 3415

I had a database which I detached while still using SQL server 2005. Now that I have upgraded to Server 2008 I was receiving a 3415 error message each time I attempt to attach it to a new Database. I...

View Article

Image may be NSFW.
Clik here to view.

Storing Greek | Polish | Cyrillic (Russian) Alphabet in Database

When saving cryillic alphabet or other languages which do not use the english alphabet, the datatypes text and varchar do not support the alphabet symbols. It usually turns all text into ?????? For...

View Article

Image may be NSFW.
Clik here to view.

MS SQL error: Invoke or BeginInvoke cannot be called on a control until the...

Solution: Run as administrator (Right-click -> Run as Admin)

View Article


Image may be NSFW.
Clik here to view.

Nhibernate simple Select, Insert, Update and Delete

Nhibernate is one of the many Object-Relational Mapping (ORM) tools for the .NET platform. A very quick description of ORM: ORM is the process of mapping objects to database relations without the...

View Article

Image may be NSFW.
Clik here to view.

SQL Computed Values

Lets say I would like to query a table but I would like to compute a column according to another value. Example: Original Table Columns: Id (int) FirstName (varchar) LastName (varchar) Married (bit)...

View Article

Image may be NSFW.
Clik here to view.

ERROR: The conversion of a varchar data type to a datetime data type resulted...

This week I was working on a migration script where I needed to run multiple sql queries. Since I was going to use this only once, I decided to use SqlHelper classes to connect and run sql to...

View Article


Image may be NSFW.
Clik here to view.

Escaping single quote in SQL

Very simple, in order to escape a single quote in SQL, just add another single quote before your actual single quote as the following example: Error:  UPDATE SampleTable SET (Title = ‘Welcome to Bob’s...

View Article


Image may be NSFW.
Clik here to view.

Error Code: 1055. Expression #1 of SELECT list is not in GROUP BY clause and...

I was trying to query a complicated sql query with joins, groups, etc and after upgrading mySQL the group by stopped working. In order to fix issue I had to open mySQL and on the database I had to run...

View Article
Browsing latest articles
Browse All 14 View Live




Latest Images