Click here to Skip to main content
15,912,082 members
Home / Discussions / Database
   

Database

 
GeneralRe: Reverse of * Pin
Ray Cassick23-Jul-10 10:11
Ray Cassick23-Jul-10 10:11 
AnswerRe: Reverse of * Pin
Mycroft Holmes23-Jul-10 13:41
professionalMycroft Holmes23-Jul-10 13:41 
QuestionCannot test the registered server in SQL Server 2008, neither start, pause or stop Pin
Kujtim Hyseni23-Jul-10 6:01
Kujtim Hyseni23-Jul-10 6:01 
Questionproblem getting data in a group Pin
Dhyanga23-Jul-10 2:54
Dhyanga23-Jul-10 2:54 
AnswerRe: problem getting data in a group Pin
Corporal Agarn23-Jul-10 5:47
professionalCorporal Agarn23-Jul-10 5:47 
AnswerRe: problem getting data in a group Pin
Mycroft Holmes23-Jul-10 13:45
professionalMycroft Holmes23-Jul-10 13:45 
AnswerRe: problem getting data in a group Pin
CitrusTech23-Jul-10 21:11
CitrusTech23-Jul-10 21:11 
QuestionTable Optimization Problem - SQL Server Pin
Jacobus0123-Jul-10 2:36
Jacobus0123-Jul-10 2:36 
Hi All,

I currently have a problem with two tables in SQL Server 2005. The tables have grown very large and sometimes lock up when small amounts of data are requested from them. The current record count is 9731495(PrintMedia) on the one table and 4126084(PrintArticles) on the other one. Table names: PrintArticles and PrintMedia. Whats worse is that these two tables are joined on each other in sql queries. This is because the database is non-relational. So joins are used to substitute for foreign keys. The performance needs to be improved. The SQL server version is 2005 standard edition - So partitioning is not possible Frown | :(

Here is a breakdown of the Tables with their fields, types and Max sizes:
PrintArticles:

Analysis int NULL
width float NULL
height float NULL
ArtSize float NULL
ID (PK) int NULL
Cutting text 2147483647 -This field contains on average 3000 characters
CutID int NULL
NewbaseNo varchar 20
AnalysisApplic int NULL
AnalysisUser nvarchar 50
Translations ntext 1073741823
AnalysisApplicDate datetime NULL
AnalysisApplicTime nvarchar 5
PerTranslation text 2147483647
PerTranslated int NULL

This table also has 3 indexes: 1 clustered on the PK and 2 non clustered


PrintMedia

PrintID (PK) int NULL
CuttID int NULL
Graphic int NULL
FpageSection int NULL
Caption varchar 1000
PDFPath varchar 300
Branch varchar 30
UploadTime varchar 10
AnalysisTag varchar 500
UserID varchar 30
Modifier varchar 30
DateModified varchar 10
PubID int NULL
NewBaseArticleNo varchar 20
Edition varchar 800
IS_HardCopy int NULL
Seen_by varchar 300
DTPDate varchar 10
ColourPDF int NULL
SpokesPerson varchar 200
Mention varchar 200
NLPU int NULL
Server varchar 10
Repl text 2147483647
GroupID int NULL
ArticleID int NULL
PubDate 5 varchar 10
CreatedDate varchar 10
Publication varchar 200
SubPublication varchar 200
Headline varchar 800
SubHeadline varchar 800
Journalist varchar 500
SubJournalist varchar 500
Page varchar 20
Client varchar 50
Category varchar 200
CategoryValue varchar 200
CategoryDisplayName varchar 200
OrderID varchar 5
TagID varchar 5
Language varchar 20
Section varchar 200
CCM real NULL
SizeX real NULL
SizeY real NULL
RandValue real NULL
FrontPageCover int NULL

This table has 12 non clustered indexes

I have to restart the sql server service at least once a day to remove locks. If that fails I have to reorganize the indexes or rebuild them to get the tables working again.

The previous developers wrote applications that use adhoc queries. The normal CRUD and the tables worked fine. But scalability was not considered it seems. Will it help if I modify all the select statements in these apps to not have locks eg "select [columns] from [tablename] with (nolock) where..."?. I just need these tables to perform faster and not lock up.

Plz advise.
AnswerRe: Table Optimization Problem - SQL Server Pin
Eddy Vluggen23-Jul-10 5:06
professionalEddy Vluggen23-Jul-10 5:06 
AnswerRe: Table Optimization Problem - SQL Server Pin
Mycroft Holmes23-Jul-10 14:00
professionalMycroft Holmes23-Jul-10 14:00 
Questionprimary key Pin
Neha_Gupta23-Jul-10 2:28
Neha_Gupta23-Jul-10 2:28 
AnswerRe: primary key Pin
R. Giskard Reventlov23-Jul-10 2:34
R. Giskard Reventlov23-Jul-10 2:34 
AnswerRe: primary key Pin
Dhyanga23-Jul-10 3:01
Dhyanga23-Jul-10 3:01 
GeneralRe: primary key Pin
Neha_Gupta23-Jul-10 3:37
Neha_Gupta23-Jul-10 3:37 
GeneralRe: primary key Pin
Eddy Vluggen23-Jul-10 4:55
professionalEddy Vluggen23-Jul-10 4:55 
QuestionDatabase Normalisation Pin
Euhemerus22-Jul-10 9:00
Euhemerus22-Jul-10 9:00 
AnswerRe: Database Normalisation Pin
David Mujica22-Jul-10 10:56
David Mujica22-Jul-10 10:56 
GeneralRe: Database Normalisation Pin
Euhemerus22-Jul-10 11:05
Euhemerus22-Jul-10 11:05 
AnswerRe: Database Normalisation Pin
Mycroft Holmes22-Jul-10 14:21
professionalMycroft Holmes22-Jul-10 14:21 
AnswerRe: Database Normalisation Pin
Goutam Patra22-Jul-10 22:00
professionalGoutam Patra22-Jul-10 22:00 
AnswerRe: Database Normalisation Pin
R. Giskard Reventlov22-Jul-10 22:43
R. Giskard Reventlov22-Jul-10 22:43 
AnswerRe: Database Normalisation Pin
Eddy Vluggen22-Jul-10 23:16
professionalEddy Vluggen22-Jul-10 23:16 
GeneralRe: Database Normalisation Pin
Euhemerus23-Jul-10 3:09
Euhemerus23-Jul-10 3:09 
GeneralRe: Database Normalisation Pin
Eddy Vluggen23-Jul-10 9:13
professionalEddy Vluggen23-Jul-10 9:13 
GeneralRe: Database Normalisation Pin
Euhemerus23-Jul-10 10:08
Euhemerus23-Jul-10 10:08 

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.