Viewing 15 posts - 34,711 through 34,725 (of 49,552 total)
I'd select and group by the column from member base data, rather than from transactions, seeing as t.Buyer is allowed to be null due to the outer join.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 2:10 pm
What's the definition of the clustered index, and what are the data types of the columns that make it up?
What version of SQL is this? (run SELECT @@version)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 1:54 pm
kumar.kunda (1/14/2010)
i got error as specified earlier,how can it be resolved.
If you read my post, I told you how it can be resolved.
Drop the clustered index on tblTime and recreate...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 1:50 pm
Your between statement is incomplete.
Where Coalesce(tblAuditMain.AuditDate,'') >= Coalesce(@BeginDate, Coalesce(tblAuditMain.AuditDate,''))
And Coalesce(tblAuditMain.AuditDate,'') <= Coalesce(@EndDate, Coalesce(tblAuditMain.AuditDate,''))
And Coalesce(tblAuditMain.AuditYear, '') = Coalesce(@AuditYear, Coalesce(tblAuditMain.AuditYear,''))
And tblAuditQuesLkup.AuditQuesType BETWEEN @AuditQuesTypeParameter -- and what?????
Group By tblAuditQuesLkup.AuditQuesNumber, tblAuditQuesLkup.AuditQuestion, tblAuditQuesType.AuditQuesAuditType,
tblAuditQuesLkup.AuditQuesType
Order By...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 1:45 pm
Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 1:44 pm
What I've had to do before, when there were no x64 drivers, was to set up another server (x86), install SQL on there and use the x86 drivers. Not ideal,...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 1:39 pm
Is that the only error? If not, please post the results of this
DBCC CHECKDB (<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS
Drop the clustered index on tblTime and recreate it. That should fix...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 1:36 pm
SQL Learner-684602 (1/14/2010)
I used account number in both places, instead of order by area
(PARTITION BY ACCT_NO ORDER BY ACCT_NO)
In other words, you don't care which row you get back, you...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 1:32 pm
avi-631555 (1/14/2010)
all i need to do is to strip out any html tags from all the colums in the db entered by croos site scripting.
May I suggest, rather than trying...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 12:34 pm
If a column has only one value, then there's no use in filtering by that column, hence what's the point of indexing? Even so, a single-column index on a column...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 12:29 pm
Nice set of addresses. What are we supposed to do with them?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 11:21 am
jcrawf02 (1/14/2010)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 11:18 am
You colleague is closer to correct, but he's still wrong in one place.
Regardless of recovery model, SQL follows this method for reading/writing. (this has not changed fundamentally since SQL 2000)
Update/insert/delete....
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 10:11 am
Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 10:06 am
ifila (1/14/2010)
TOP 60000 - 8 seconds all the way down...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 14, 2010 at 10:02 am
Viewing 15 posts - 34,711 through 34,725 (of 49,552 total)