Hello,
I have an access DB (.mdb) named: Programs, with one table named: Data. By using the DataGridView I present the data from the table Data. I want to delete a row from the DataGridView and from the DB during runtime. Does anyone know how to do that (using C#)?
Another question I have is, who can i run queries on my DB?
thanks!
...
Consider two table.Employee and Project.Employee table has fields like eid,ename.Project table has fields like pid,pname.Now,since an employee can work on many projects and a project can be done by many employees, therefore,as evident,there is a many to many relationship b/w the two tables.Break the many to many,and create a new table ca...
Hi all,
I tried to enlarge the value of the "shared_buffers" settings to be larger then a default 24Mb, and the server doesn't starts with other values (I tried some) except of the default one. Just an empty logfile is created.
It's a clean installation of the postgresql on the linux server, so all other settings are default.
Does anybod...
I'm pretty new when it comes to PL/SQL, and I have to modify someone else's stored procedure.
Is it possible to add an if statement in the middle of a select? The procedure I have tries to open a cursor and select a bunch of stuff from different tables into it (don't ask me why they didn't use a join) and return the cursor. The thing ...
Hi Guys,
Sorry in advance as this question is similar (but not the same!) to others.
Anyway, I need to be able to generate surrogate keys in more than one location to be synchronized at a later time. I was considering using GUIDs, however these keys may have to appear in the parameters of a URL and GUIDs would be really complicated and...
How can I test my code (TDD) for standard CRUD operations without having a database. Is it possible to achieve such level of isolation so that my code is database independent.
Thanks a lot guys.
...
I am looking into creating something that does this:
SELECT *
FROM (`tm_accounts`)
WHERE CONCAT(`last_name`, `first_name`) LIKE '%o%'
This, of course, doesn't work. I just want you to see the idea behind what I'm trying to emulate.
last_name and first_name are two separate fields in the accounts table
...
with mongodb, is it possible to group results by a key found in an array of objects in a list?
for example, lets say i have a table of survey responses (survey_responses), and each entry represents a single response. one or more of the questions in the survey is a multiple choice, so the answers stored could resemble:
survey_responses....
Hi all,
I would like to generate 16 char length hex decimal value as sequence. My database is Oracle and would like to know is it possible to do so? I checked the SEQUENCE in Oracle but I think its only for numericals.
Any idea would be great help.
Thanks in advance,
Abdel Olakara
...
I have 2 programs running on 2 different machines.
Each program has a method called updateRecord that does the following 2 things:
1. Do a SELECT query on a particular record Z
2. Do a UPDATE query on the same record.
If these 2 queries are in the same transaction (between beginTransaction and commitTransaction) does it guarantee proper...
Hello.
I have a very limited experience of database programming and my applications that access databases are simple ones :). Until now :(. I need to create a medium-size desktop application (it's called rich client?) that will use a database on the network to share data between multiple users. Most probably i will use C# and MSSQL/MySQ...
_mysql_exceptions.Warning: Incorrect string value: '\xE7\xB9\x81\xE9\xAB\x94...' for column 'html' at row 1
def getSource(theurl, moved = 0):
if moved == 1:
theurl = urllib2.urlopen(theurl).geturl()
urlReq = urllib2.Request(theurl)
urlReq.add_header('User-Agent',random.choice(agents))
urlResponse = urllib2.urlop...
Hey all,
I have a web application that has a requirement to take data from an Excel workbook and load it to the database. I am using ADO.NET 2.0 and need to use DataSet/DataTable/DataAdapter/etc. to perform this task.
We also have a requirement of verifying the data before it is uploaded and informing the user if there are any PK/FK/U...
In some database technologies, for a attribute in a record, you can guarantee uniqueness of that attribute within the entire database. An example of this might be a email_address attribute in a User record. By setting email_address to unique, you guarantee that a particular email address can only appear in one record in the entire databa...
So I've got a users table; storing things like username, email, etc.
I then have a user_settings table. Instead of standard columns like timestamp_logged_in, profile_views, etc., I have it organized as key/value combo. For example, the columns are:
user_settings_ID user_ID name value
A sample record would be:
82 2 'timestamp_logged_in'...
I am looking for a super-light weight open-source database engine (could be a library that mimics one) to be packaged part of a tiny PHP script distributed to people without sudo access. Basic CRUD, no need for any complicated implementations with string search, etc.
I found txtSQL (uses flat files, which I believe is the way to go) but...
Why are database records lost when I'm debugging the winforms application?
When I start the debugging app, records are saved into the database, but when it is restarted, all of the database records are lost and the database tables are empty. How can I debug an application without losing the data?
...
I'm not sure if what I'm even trying to do is possible but here goes.
I have an SQL database with the following tables defined (showing only relevant tables in SQL):
CREATE TABLE customers(
id integer NOT NULL UNIQUE,
name vachar(25) NOT NULL,
surname vachar(25) NOT NULL,
password vachar(20) NOT NULL,
email_address ...
I am trying to create a windows mobile application that contains a database and can occasionally be connected to the Internet. When connected, I would like to sync the local database with the central database server. The central server is a MySQL server. The local database can be anything (probably SQL Compact).
What I did so far:
Ins...
Let's say I have two tables:
Table: Color
Columns: Id, ColorName, ColorCode
Table: Shape
Columns: Id, ShapeName, VertexList
What should I call the table that maps color to shape?
Table: ???
Columns: ColorId, ShapeId
...