Viewing 15 posts - 1,171 through 1,185 (of 2,462 total)
But if you're in a hurry and cannot wait for enlightenment, I suggest you find and download sp_BlitzIndex
+1 😉
-- Itzik Ben-Gan 2001
November 11, 2015 at 4:46 pm
sgrimard (11/11/2015)
Any suggestion on good books or site to learn how to create good index?
SQL Server 2012 Query Performance Tuning (Expert's Voice in SQL Server) by Grant Fritchey is a...
-- Itzik Ben-Gan 2001
November 11, 2015 at 3:36 pm
MonkSup (11/10/2015)
Is OPENXML something I should look into?
https://msdn.microsoft.com/en-us/library/ms187897(v=sql.110).aspx
I can find plenty of examples for importing and creating structures for XML...
-- Itzik Ben-Gan 2001
November 10, 2015 at 6:47 pm
How about ISNULL? ISNULL(<whatever>,'') for blank values, ISNULL(<whatever>,0) to get a 0.
-- Itzik Ben-Gan 2001
November 10, 2015 at 6:35 pm
Like others have said, it will take some time to learn the basic so learn, learn, learn... practice, practice, practice and you'll figure out what you love.
Whatever you do,...
-- Itzik Ben-Gan 2001
November 10, 2015 at 11:09 am
ypeng5 (11/4/2015)
-- Itzik Ben-Gan 2001
November 9, 2015 at 6:11 pm
Play around with/get comfortable with FOR XML. There are 4 FOR XML methods, RAW, AUTO,EXPLICIT, PATH once you are comfortable with them you can export data into any XML format....
-- Itzik Ben-Gan 2001
November 8, 2015 at 9:24 pm
Here's a couple solutions (if I'm understanding this correctly).
The caveat here is that I'm understanding you problem, which I think I am.
If you can create an inline table...
-- Itzik Ben-Gan 2001
November 6, 2015 at 9:19 pm
Sergiy (11/4/2015)
NOLOCK without brackets is not a hint, but a table name alias.
So, the query would be...
-- Itzik Ben-Gan 2001
November 5, 2015 at 3:41 pm
As Lynn said, you probably don't need a cursor.
That said, you have no THEN statement in your CASE. A WHEN must be followed by a THEN.
-- Itzik Ben-Gan 2001
November 3, 2015 at 3:49 pm
To get values that exist in one table that do not exist in another you want to do an anti-join. You can accomplish with using WHERE NOT IN or WHERE...
-- Itzik Ben-Gan 2001
October 31, 2015 at 9:07 am
I'm sorry. I misunderstood your question. Like I said, I'm unfamiliar with SIOS and DxEnterprise. 🙁
-- Itzik Ben-Gan 2001
October 30, 2015 at 4:05 pm
Eirikur Eiriksson (10/30/2015)
jasona.work (10/30/2015)
Brandie Tarvin (10/30/2015)
-- Itzik Ben-Gan 2001
October 30, 2015 at 3:01 pm
Just to clear something up. You absolutely can use an alias inside a SQL query but only after the alias has been created. It's important to clear that up.
SQL...
-- Itzik Ben-Gan 2001
October 30, 2015 at 2:38 pm
Michelle-138172 (10/30/2015)
-- Itzik Ben-Gan 2001
October 30, 2015 at 2:10 pm
Viewing 15 posts - 1,171 through 1,185 (of 2,462 total)