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
  • Joining three tables in sql server 2012

    database sql-server sysadmin tools help
    5
    0 Votes
    5 Posts
    0 Views
    S
    Can you redesign your Database tables? It has very bad relations and out put. Why you have 3 columns for Color1, Color2 and Color3 .With this Column how can you get your result .
  • Problem reading null

    question com help announcement
    14
    0 Votes
    14 Posts
    0 Views
    S
    Hello Jassim, while working in a procedure then i got the same problem. so based on my experience i would suggest to use decode function. decode function is similar to if else block. decode(floor_id,null,1,floor_id)=decode(param_floor,null,1,param_floor) thanks in advance regards, Sundeep
  • 0 Votes
    3 Posts
    0 Views
    J
    SQL Server will not do that. There are other tools associated with SQL Server that will. (Naturally this answer takes a vast leap as to what the question as such was.)
  • 0 Votes
    2 Posts
    0 Views
    S
    what you are not able to do, Truncate or addition of new data ? Whats the error ? Mark the answer as accepted if that worked for you :). And for down-voters please specify the reason to improve the solution :).
  • Left Join and double results where the join is complete

    tutorial
    6
    0 Votes
    6 Posts
    1 Views
    J
    It's an old DOS accounting program "Account Mate" using DBF files; Fox Pro; in which a Windows 7 and 8 application that I wrote for the customer provides extra features used all day long for electronic invoicing, electronic order confirmation, electronic past due statements via emails and PDF attachments. It's not exposed to the internet.
  • mysql decimal fromat like ##.##

    csharp mysql help
    7
    0 Votes
    7 Posts
    0 Views
    G
    Yes I did, but there is no way I can cast decimal to float. I did a work around but it is ugly, it could cause a performance issue, so I am still looking for a better solution.
  • clustering index

    database
    6
    0 Votes
    6 Posts
    0 Views
    A
    This could be intended :). With this a pointer to the first block in the data file that has a record with that value for its clustering field This seems reasonable
  • Problem in Insering Long text in mysql from c#

    help csharp mysql architecture tutorial
    2
    0 Votes
    2 Posts
    0 Views
    P
    Soooo... what's the definition of the column? Where's the code you're using?
  • 0 Votes
    8 Posts
    0 Views
    P
    You are welcome! Richard's solution should have worked - that is the one I also tested and is exactly the approach I would have used. I only mentioned the cursor to help you understand the problem, but if it works ...! If Richard's query is performing badly, it could probably be improved with a well-chosen additional index. When you have some time, I'd suggest running it with the SQL query analyzer. Good luck! Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
  • suggest various tables for shopping site

    5
    0 Votes
    5 Posts
    0 Views
    P
    You're starting at the wrong end. Start by defining the features you want and work down to the tables you'll need.
  • Does SQL require SSLv3?

    security help database com sysadmin
    3
    0 Votes
    3 Posts
    0 Views
    Richard DeemingR
    It's a good idea, but we couldn't connect using SQL authentication either, which shouldn't involve AD at all. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • SSRS across Internet

    sql-server sysadmin database com workspace
    14
    0 Votes
    14 Posts
    0 Views
    L
    You're welcome, and thanks for posting the solution :) Might save someone else some days of frustration. Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • LONGTEXT not accepting large text!

    html css com question announcement
    13
    0 Votes
    13 Posts
    0 Views
    J
    Thanks :) Thanks :) Technology News @ www.JassimRahma.com
  • Database Mail not sending Emails

    help database sysadmin tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    Richard DeemingR
    Your SQL box timed out sending the mail to your mail server. You need to increase the timeout. Depending on which version of SQL you have, you might need to install a Cumulative Update in order to change the timeout: https://support.microsoft.com/kb/968834[^] You should then be able to use the sysmail_update_account_sp stored procedure[^] to increase the timeout. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • Database not sending Emails

    help database sysadmin tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    9 Posts
    1 Views
    W
    Glad it helped :)
  • 0 Votes
    7 Posts
    3 Views
    D
    I am trying to implement entity framework to that project.. Dhyanga
  • 0 Votes
    2 Posts
    0 Views
    L
    Ibrahim.elh wrote: what you proposed? Create a small application, connect to the source-database, connect to the target-database, read a record from source, write a record to target. Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • Handle large SQLite database

    database sqlite question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • SQL Left Outer Join Problem

    csharp asp-net database com
    5
    0 Votes
    5 Posts
    0 Views
    Richard DeemingR
    Two rows would be the expected result for a LEFT JOIN with that data. Each row from the table on the left will be returned once for each matching row in the table on the right, or once if there are no matching rows. Since the table on the right only has two rows, and the table on the left only has one row, the result will be two rows. Jeff Atwood has a good visual explanation of SQL joins: http://blog.codinghorror.com/a-visual-explanation-of-sql-joins/[^] Another way to explain joins: Product the Cartesian Product of the two tables - each row in the left-hand table is matched with each row in the right-hand table. Remove the rows where the JOIN condition is not met. Depending on the JOIN type: INNER JOIN: Nothing to do. LEFT (OUTER) JOIN: Any rows in the left-hand table but not in the results are added back, matched with a row of NULL values for the right-hand table. RIGHT (OUTER) JOIN:: Any rows in the right-hand table but not in the results are added back, matched with a row of NULL values for the left-hand table. FULL (OUTER) JOIN: Apply the rules for both LEFT and RIGHT joins. Filter the result based on the conditions in the WHERE clause (if any). "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer