Quantcast
Channel: Everyday I'm coding » database
Browsing all 10 articles
Browse latest View live

South migration error: NoMigrations exception for django.contrib.auth

I have been using South on my project for a while, but I recently did a huge amount of development and changed development machine and I think something messed up in the process. The project works...

View Article



Warning: mysql_connect(): [2002] No such file or directory (trying to connect...

I’m trying to connect to my MySQL DB with the Terminal on my Apple (With PHP). Yesterday it worked fine, and now I suddenly get this error (See title). I have no clue how to solve it. I’ve spend all my...

View Article

Bulk-deleting in LINQ to Entities

Is there any way to bulk-delete a bunch of objects matching a given query in LINQ or LINQ-to-Entities? The only references that I can find are outdated, and it seems silly to iterate over and manually...

View Article

What are the best practices for SQLite on Android?

What would be considered the best practices when executing queries on an SQLite db within an Android app? Is it safe to run inserts, deletes and select queries from an AsyncTask’s doInBackground ? Or...

View Article

How to secure database passwords in PHP?

When a PHP application makes a database connection it of course generally needs to pass a login and password. If I’m using a single, minimum-permission login for my application, then the PHP needs to...

View Article


Solutions for INSERT OR UPDATE on SQL Server

Assume a table structure of MyTable(KEY, datafield1, datafield2…) Often I want to either update an existing record, or insert a new record if it doesn’t exist. essentially IF (key exists) Run Update...

View Article

SQL: the semicolon or the slash?

We have been having some debate this week at my company as to how we should write our SQL scripts. Background: Our database is Oracle 10g (upgrading to 11 soon). Our DBA team uses SQLPlus in order to...

View Article

Run MySQLDump without Locking Tables

I want to copy a live production database into my local development database. Is there a way to do this without locking the production database? I’m currently using: mysqldump -u root --password=xxx -h...

View Article


Image may be NSFW.
Clik here to view.

What is a good choice of database for a small .NET application? [closed]

I’m developing a small application with C# in .NET and I want have a small local database next to it where I can save and retrieve records by SQL queries. I don’t need anything powerful, just something...

View Article


How to implement a super class, sub class relationship in the database?

If I have a class called animal, dog and fish is the subclass. The animal have attribute called “color”. Dog have the attribute called “tail length”, and the fish don’t have this attribute. Fish have...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images