Click here to Skip to main content
15,898,538 members
Home / Discussions / Database
   

Database

 
QuestionQuery Builder to make stored procedures? Pin
eggsovereasy4-Oct-06 10:43
eggsovereasy4-Oct-06 10:43 
Questiontext , ntext datatypes ( PLEASE HELP ) Pin
abdelhameed814-Oct-06 9:22
abdelhameed814-Oct-06 9:22 
AnswerRe: text , ntext datatypes ( PLEASE HELP ) Pin
Mark Salsbery4-Oct-06 10:44
Mark Salsbery4-Oct-06 10:44 
GeneralRe: text , ntext datatypes ( PLEASE HELP ) Pin
abdelhameed814-Oct-06 21:51
abdelhameed814-Oct-06 21:51 
GeneralRe: text , ntext datatypes ( PLEASE HELP ) Pin
Mark Salsbery5-Oct-06 6:26
Mark Salsbery5-Oct-06 6:26 
AnswerRe: text , ntext datatypes ( PLEASE HELP ) Pin
Jerry Hammond5-Oct-06 4:20
Jerry Hammond5-Oct-06 4:20 
QuestionDelete Row Count Pin
Skanless4-Oct-06 9:21
Skanless4-Oct-06 9:21 
AnswerRe: Delete Row Count Pin
Edbert P4-Oct-06 16:45
Edbert P4-Oct-06 16:45 
Skanless wrote:
1. If you are new to a database, is there a way that you can quickly find out relationships between the tables?


There are diagrams that you can create to see the relationship between the tables.

Skanless wrote:
2. I need to retrieve information on all the tables in a database to find out which tables have a rowcount of more than 50,000 records then delete some record which thus reducing the table to 50,000 rows so as to make space. Is there a way to do that? and if so, what is the syntax to obtain this?


You can use the sysobjects table that can return the tables existing in your database, then query each table to check how many records it has and delete the ones over 50,000. I can't remember the correct syntax, I'm sure a bit of googling will do.


Skanless wrote:
3. How can I cascade constraints when deleting records from a specific table?


You need to specify the necessary constraints to the tables before deleting the record, and it will automatically trigger the deletion of child records.

"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson

"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin

Edbert
Sydney, Australia

QuestionColumn Length Pin
Guinness4Strength4-Oct-06 7:50
Guinness4Strength4-Oct-06 7:50 
AnswerRe: Column Length Pin
Mark Salsbery4-Oct-06 10:56
Mark Salsbery4-Oct-06 10:56 
GeneralRe: Column Length Pin
Guinness4Strength4-Oct-06 11:00
Guinness4Strength4-Oct-06 11:00 
GeneralRe: Column Length Pin
Mark Salsbery4-Oct-06 11:49
Mark Salsbery4-Oct-06 11:49 
QuestionMs access and Scope identity Pin
Vipin.d4-Oct-06 2:12
Vipin.d4-Oct-06 2:12 
AnswerRe: Ms access and Scope identity Pin
Alaric_4-Oct-06 19:45
professionalAlaric_4-Oct-06 19:45 
QuestionProblem in Implementing DataAccess Mechanism Pin
Jay_se4-Oct-06 0:45
Jay_se4-Oct-06 0:45 
AnswerRe: Problem in Implementing DataAccess Mechanism Pin
Jay_se5-Oct-06 19:04
Jay_se5-Oct-06 19:04 
QuestionUrgent :: SQL Server Connection Problem Pin
harshActsw3-Oct-06 11:41
harshActsw3-Oct-06 11:41 
AnswerRe: Urgent :: SQL Server Connection Problem Pin
mr_lasseter3-Oct-06 13:45
mr_lasseter3-Oct-06 13:45 
QuestionDesign Issue: Multiple definitions of ADO.NET abstraction classes [modified] Pin
Alaric_3-Oct-06 10:00
professionalAlaric_3-Oct-06 10:00 
AnswerRe: Design Issue: Multiple definitions of ADO.NET abstraction classes Pin
Eric Dahlvang4-Oct-06 3:41
Eric Dahlvang4-Oct-06 3:41 
GeneralRe: Design Issue: Multiple definitions of ADO.NET abstraction classes Pin
Alaric_4-Oct-06 18:32
professionalAlaric_4-Oct-06 18:32 
GeneralRe: Design Issue: Multiple definitions of ADO.NET abstraction classes Pin
Eric Dahlvang5-Oct-06 4:10
Eric Dahlvang5-Oct-06 4:10 
QuestionType of table generated is system Pin
Sushant Duggal3-Oct-06 2:15
Sushant Duggal3-Oct-06 2:15 
AnswerRe: Type of table generated is system Pin
Colin Angus Mackay3-Oct-06 5:31
Colin Angus Mackay3-Oct-06 5:31 
Questionradio button in data grid control Pin
abdelhameed813-Oct-06 2:06
abdelhameed813-Oct-06 2:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.