Viewing 15 posts - 1,561 through 1,575 (of 5,394 total)
IgorMi (6/7/2012)
HiThis code also returns the result you want:
This sure does the trick, but please take into account that avoiding cursors is considered a best practice.
Generally speaking, cursors are slow...
June 7, 2012 at 2:52 am
It's a matter of pivoting your data (see PIVOT for more detail).
Try something like this:
-- Sample data
DECLARE @sampleData TABLE (
Idsint,
Name nvarchar(50),
...
June 7, 2012 at 2:05 am
jansub07 (6/7/2012)
MDF and LDF in different locations make any sense in performance of SQL?
Generally speaking, yes, but depends what "locations" means.
In order to increase performance, they must reside on different...
June 7, 2012 at 1:46 am
mr.zl8888 (6/5/2012)
Gianluca Sartori (6/5/2012)
However, that would require changing the...
June 6, 2012 at 8:08 am
GilaMonster (6/5/2012)
Gianluca Sartori (6/5/2012)
GilaMonster (6/5/2012)
Chapter 1 (and several others): http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/
Dang! Two recommendations in less than three minutes.
If I had $.01 for every time I recommended this book, I would be...
June 5, 2012 at 3:28 pm
Jeff Moden (6/5/2012)
Gianluca Sartori (6/5/2012)
To say it with Bertolt Brecht's words: " What is robbing a bank compared to founding a bank?" 😉
From what I've seen of the banking crisis...
June 5, 2012 at 3:26 pm
I would trace it with Profiler to see if some error is raised from SQL Server (and possibly ignored by the application).
Have you tried that?
June 5, 2012 at 3:05 pm
GilaMonster (6/5/2012)
Chapter 1 (and several others): http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/
Dang! Two recommendations in less than three minutes.
If I had $.01 for every time I recommended this book, I would be a millionaire!
June 5, 2012 at 3:02 pm
I'm sure you're not going to like what I'll say...
"Fast" and "Slow", as well as "Good" and "Bad" are relative measures.
They must be related to a baseline, which is...
June 5, 2012 at 3:00 pm
Charmer (6/5/2012)
How to copy tables from one server to another server?
i tried ssis and export/import through ssms....but it says server instance is timed out to get the connection....
since the...
June 5, 2012 at 2:46 pm
You're welcome.
Glad I could help.
June 5, 2012 at 5:58 am
Thanks Lowell!
Glad you liked it.
June 5, 2012 at 5:57 am
High memory usage is not a symptom of memory bottleneck per se.
Did you set MAX SERVER MEMORY?
Did you monitor PAGE LIFE EXPECTANCY?
June 5, 2012 at 4:45 am
You could use the parse function in this article[/url] and tweak it to return NULL in case a bad date is found.
However, that would require changing the function from ITVF...
June 5, 2012 at 4:32 am
Sorry, but I don't see where the problem lies.
Which records did you expect the query to return?
June 5, 2012 at 4:25 am
Viewing 15 posts - 1,561 through 1,575 (of 5,394 total)