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
  • Please help :MERGE Statement conflict with the foreign key constraint

    help
    2
    0 Votes
    2 Posts
    0 Views
    L
    Perhaps this discussion will help you, http://social.msdn.microsoft.com/Forums/en/sqldatabaseengine/thread/711614c8-e67d-4137-8f46-3187ac0ce363[^] Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns
  • DataBase - protection / encryption

    database security help question
    2
    0 Votes
    2 Posts
    0 Views
    L
    You could put the database on a virtual drive[^] and crypt that. When moving the database, move the virtual drive. Bastard Programmer from Hell :suss:
  • 0 Votes
    2 Posts
    0 Views
    L
    To really understand how to solve this problem, you must know what commands are executed against your database. One way to solve this issue is to turn on CASCADE UPDATE in your foreign key definition.
  • SSMS question

    database sql-server sysadmin question
    2
    0 Votes
    2 Posts
    0 Views
    L
    You can link[^] servers within SSMS. Once set up, you can query both servers in a single statement, by prefixing the server-name before the database-name. Bastard Programmer from Hell :suss:
  • Need help for Customize the except query

    database help tutorial
    4
    0 Votes
    4 Posts
    0 Views
    P
    Gr8 sir .. it worked .. you made my weekend :) ... I wish you a wonderfull weekend. :)
  • Oracle - odd behavior with nested select/join

    database oracle question
    5
    0 Votes
    5 Posts
    2 Views
    P
    I suspected something like that was happening. I've never used optimizer hints before; I will look into that. Thanks for the tip. :thumbsup:
  • 0 Votes
    3 Posts
    0 Views
    B
    Did you try to write query before you ask here? In your previous question you took good answers which are valid for your question which you are asking. I Love T-SQL "VB.NET is developed with C#.NET" If my post helps you kindly save my time by voting my post.
  • finding full path of subgroup with t-sql?

    database question
    2
    0 Votes
    2 Posts
    0 Views
    M
    What you need is a common table expression[^] which is recursive processing of a table. This may not be correct as your structure seems to be rigid (you know how many level to the top) and therefor you simply do a bunch of inner joins. Select * From Fruit Inner join Category on Category.CategoryID = Fruit.CategoryID Inner Join level2.ID = Category.Level2.ID ... Never underestimate the power of human stupidity RAH
  • Two same foreign keys in the one table . is it possible

    question
    8
    0 Votes
    8 Posts
    0 Views
    S
    You're rather presumptuous. Although there are situations in which products and category have a many to many relationship, there are many real world situations in which a product belows to one category.
  • 0 Votes
    6 Posts
    0 Views
    S
    Also, check out EXCEPT http://weblogs.sqlteam.com/jeffs/archive/2007/05/02/sql-server-2005-using-except-and-intersect-to-compare-tables.aspx[^] Scott
  • 0 Votes
    9 Posts
    0 Views
    P
    If it's going to be a regular operation I open a Connection to each database, use a DataReader to read from one, and ExecuteNonQuery to INSERT into the other. A major benefit of this technique is that it allows the app to periodically log its progress (and speed in rows per minute) so you're not flying blind. This technique also allows you to catch and ignore selected Exceptions if you like and not have the whole process die.
  • Database does not have a valid owner

    help database question csharp sql-server
    3
    0 Votes
    3 Posts
    0 Views
    G
    Thanks, but I've uninstalled and re-installed SQL Server now and it's all working fine.
  • 0 Votes
    4 Posts
    0 Views
    D
    The answer to #2 is: HAVING Authors LIKE %SearchString% Thanks for the help... ***************** "We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
  • URL rewriting using urlrewriternet not working

    regex help question
    3
    0 Votes
    3 Posts
    0 Views
    J
    You should probably repost this one in the Asp.net forum as it doesn't seem to have much to do with databases. Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions
  • Create Database Ms SQl server

    database sql-server sysadmin question
    10
    0 Votes
    10 Posts
    0 Views
    L
    Only one instance with the name of the database is allowed on the server. Detach the database that's connected, or use an other name. Bastard Programmer from Hell :suss:
  • How to take database backup on online server ?

    database sysadmin tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    L
    Simple; you ask the database-administrator. He'll know which database-application is installed. Each manufacturer has it's own implementation, and you can find examples for all major vendors on the internet. Happy searching :) Bastard Programmer from Hell :suss:
  • Need suggestion for two database inconsistency

    database help
    6
    0 Votes
    6 Posts
    0 Views
    L
    vanillaET wrote: There are two databases with the same data structure. One database is ok to insert that record, but another is not ok for data type conversion. I've checked all the data fields.Please give me any suggestion to solve it. Check the data-fields again. You're inserting something that cannot be converted, might be a text in a bit or a datetime field. Try logging all values that are going to be inserted, and have the app mail the offending values using a try-catch block. Next, simply try the offending values using your original insert-statement trough the Sql Management Studio. Bastard Programmer from Hell :suss:
  • Convert DTS Package to SSIS 2008

    sql-server
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Showing Parent-Child Tables in a query

    question database
    2
    0 Votes
    2 Posts
    0 Views
    S
    This[^]may help
  • Procedure timing out, yet...

    database design sysadmin tools question
    6
    0 Votes
    6 Posts
    0 Views
    G
    Did u check the amount of data the procedure is returning. In case the procedure is returning too many rows of data, then that might be the cause of timeout when you run the procedure programmatically. But when you run the same procedure from database itself which i guess is Sql Management studio, only top 500 or 1000 rows would be returned depending on the SSMS setting. Hence the result comes up without time out.