Skip to content

Database

Discussions on database access, SQL, and ADO

This category can be followed from the open social web via the handle database@forum.codeproject.com

17.1k Topics 61.8k Posts
  • unique random alphanumeric in MySQL

    question mysql com announcement lounge
    4
    0 Votes
    4 Posts
    0 Views
    J
    because it's a reservation code Technology News @ www.JassimRahma.com
  • How to select persons who didn't pay they'r bill for two mounth

    tutorial
    8
    0 Votes
    8 Posts
    0 Views
    M
    Eddy Vluggen wrote: Bastard Programmer from Hell Oh so appropriate. Should be renamed The Edge Case from Hell Never underestimate the power of human stupidity RAH
  • Extract Data in Single Record

    sharepoint help tutorial
    4
    0 Votes
    4 Posts
    0 Views
    P
    I should hope that you have translation tables for Relation and PhType -- you can add some sort of prioritization there to better control ordering. RelationshipType ID Abbr Name Priority 1 SP Spouse 1 2 FR Friend 3 3 CH Child 2 PhoneType ID Abbr Name Priority 1 Cell Mobile 1 2 Work Office 3 3 Home Home 2 Such translation table also allow you to use referential integrity and can reduce the amount of space used by the database (not so much a concern these days). Also, it allows your application code to use an enumeration rather than hard-coded string values. Then follow Richard Deeming's advice. You'll never get very far if all you do is follow instructions.
  • 0 Votes
    3 Posts
    0 Views
    P
    On which system did you develop the package? Is the connection manager set to use "localhost"? You'll never get very far if all you do is follow instructions.
  • Handle to chat room with mysql database

    database question javascript php mysql
    12
    0 Votes
    12 Posts
    0 Views
    M
    Alright... thanks buddy for your time.
  • linked list using CTE

    database design data-structures help
    2
    0 Votes
    2 Posts
    0 Views
    A
    finally, i designed a query that returns the desired results. its the following one. create table products(product_id int, next_id int, product_name nvarchar(50)); insert into products(product_id, next_id, product_name) Values (1, null, N'product1') ,(2, 4, N'product2') ,(3, 2, N'product3') ,(4, 1, N'product4') ,(5, 3, N'product5'); WITH LinkedList (product_id, next_id, product_name, Level) AS ( -- Anchor member definition SELECT e.product_id, e.next_id, e.product_name, 0 AS Level FROM products AS e WHERE e.next_id IS NULL UNION ALL -- Recursive member definition SELECT e.product_id, e.next_id, e.product_name, Level + 1 FROM products AS e INNER JOIN LinkedList AS d ON e.next_id = d.product_id ) -- Statement that executes the CTE SELECT product_id, next_id, product_name FROM LinkedList Order by Level desc; drop Table products; Help people,so poeple can help you.
  • OVER (PARTITION BY ORDER BY )

    database sql-server help tutorial
    13
    0 Votes
    13 Posts
    0 Views
    J
    :) Wrong is evil and must be defeated. - Jeff Ello[^]
  • 0 Votes
    5 Posts
    0 Views
    Z
    You have a damaged data file or the disk is damaged. You'll want to run the DBCC as the error suggests and see if you get additional details. There are only 10 types of people in the world, those who understand binary and those who don't.
  • How to create an audit table?

    question database business tutorial announcement
    14
    0 Votes
    14 Posts
    0 Views
    J
    Eddy Vluggen wrote: Try the one I painted. You have a customer with two different employees. Both of them call the service desk at 8:50am on Tuesday June 6th. Both want to do wildly different things to the same thing. This means the customer has tasked them both with the same task. And that both reached wildly different outcomes with regard to what should happen. No that doesn't seem like a scenario which is likely to occur and in fact is wildly unlikely to occur. Thus prioritizing this even to the extent of writing the requirement much less implementing it seems very unlikely. Eddy Vluggen wrote: But then again, we already noted that adding a record, as opposed to editing one, would solve that. But again that is not the point. There are valid, probable and needful reasons for adding a record versus update that have nothing to do with the highly likely scenario that you have posited.
  • JOIN vs. WHERE

    visual-studio sales question
    17
    0 Votes
    17 Posts
    4 Views
    D
    Klaus, (+) is deprecated OUTER JOIN syntax. It's not about allowing or not allowing NULL. O.Forwarder = F.ID(+) means include all rows from O even if there is no match in F. O.Forwarder(+) = F.ID means include all rows from F even if there is no match in O
  • 0 Votes
    3 Posts
    0 Views
    A
    The installer every time was telling me that the installation failed and I did not know the reason however finally I got the solution the .exe package I was trying to install seems to be not complete as I download another one from microsoft site and when I tried again it worked fine.
  • 'ALTER ROLE' instead of 'sp_addrolemember'

    database sharepoint question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Can not connect to my database from asp .net application

    database csharp json help
    10
    0 Votes
    10 Posts
    0 Views
    H
    I think you have to provide user name and password also...! I used As : Database Connection[^]
  • Error converting data type varchar to numeric

    help database
    2
    0 Votes
    2 Posts
    0 Views
    M
    Your excel sheet is probably formatted with comma. You should split out your unpivot and inspect the results of the query to try and determine the invalid data, look for blanks, character and formatting (commans) Never underestimate the power of human stupidity RAH
  • Complex SQL queries

    database tutorial question code-review
    9
    0 Votes
    9 Posts
    0 Views
    J
    Get Joe Celko's Puzzles and Answers[^] Wrong is evil and must be defeated. - Jeff Ello[^]
  • database

    database mysql sql-server sysadmin question
    8
    0 Votes
    8 Posts
    0 Views
    L
    prove
  • MySQL Stored Procs -

    help database mysql sql-server oracle
    4
    0 Votes
    4 Posts
    1 Views
    W
    Glad to help. Everyone dies - but not everyone lives
  • A small naming problem

    com business help question
    6
    0 Votes
    6 Posts
    0 Views
    L
    I see you've already got Ownership as the answer. You can also try BusinessType?
  • SQL convert(datetime, number) wrong?

    database help question
    13
    0 Votes
    13 Posts
    0 Views
    J
    I love that story. They brought a fuck counter to all meetings with BillG. :laugh: Wrong is evil and must be defeated. - Jeff Ello[^]
  • Question about File Server / MySQL Database

    question csharp database mysql com
    3
    0 Votes
    3 Posts
    0 Views
    B
    Instead of using a plain database back-end, create a server which communicates with the clients and the database. So any client will contact the server which in turn talks to the database and file system, and serves the data/documents back to the clients.