Viewing 15 posts - 30,451 through 30,465 (of 49,552 total)
Why do you want to write them as joins?
Changing IN to inner join may change the meaning of the query (introduce extra rows)
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
September 22, 2010 at 4:14 am
If you right-click the database and select tasks -> export, the fourth page of the wizard allows you to select any number of tables and map them to a destination.
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
September 22, 2010 at 4:11 am
Ed.Edwards (9/22/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
September 22, 2010 at 3:49 am
Can you post the actual execution plans for both fast and slow queries please?
From your initial post I assume there are indexes other than the cluster on those tables? If...
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
September 22, 2010 at 3:42 am
Please post table definitions, index definitions and execution plan as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
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
September 22, 2010 at 2:43 am
Ran across this earlier, thought it appropriate.
http://www.despair.com/cluelessness.html
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
September 22, 2010 at 2:30 am
abcim (9/21/2010)
Is you saying some thing like this to widen index,
CREATE NONCLUSTERED INDEX [IX_NAICSCode] ON [dbo].[SubCategoryNAICSCode]
(
[NAICSCode] ASC,[SubCategoryID]
)
It won't...
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
September 22, 2010 at 12:48 am
Shawn Melton (9/21/2010)
I like this one:Knock Knock
Who's There?
sp underscore
sp underscore who?
spid1, spid2, spid3....
I told that one at a dinner at the PASS Summit a few years ago (my second summit...
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
September 21, 2010 at 3:40 pm
The problem is not with the ;, it's the GO
GO is not a T-SQL command, it's a directive to the client tools that indicates where the batch ends. Hence, the...
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
September 21, 2010 at 3:27 pm
A backup is the size of the used space in the database. So a 15 GB backup that has 0% free space will have a 15GB backup. A 15 GB...
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
September 21, 2010 at 3:09 pm
Alvin Ramard (9/21/2010)
A query walks into a bar, sees two tables and says: "May I join you?" 😀
That's so old the archaeologists are tired of it.
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
September 21, 2010 at 2:46 pm
swethak13 (9/21/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
September 21, 2010 at 2:45 pm
Craig Farrell (9/21/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
September 21, 2010 at 2:24 pm
swethak13 (9/21/2010)
connectionString="data source=IP address,1433;Integrated Security=SSPI;Initial Catalog=DBName;uid=User id ;password=password
Remove the highlighted portion. Integrated = windows, not SQL authent.
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
September 21, 2010 at 2:09 pm
GilaMonster (9/21/2010)
Either ask the domain admin to set up the required trust...
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
September 21, 2010 at 2:01 pm
Viewing 15 posts - 30,451 through 30,465 (of 49,552 total)