Viewing 15 posts - 18,661 through 18,675 (of 22,214 total)
True.
And one other thing I just thought of, your clustered index is a part of the covering index even though you can't see it.
Assume that ID is the clustered index....
January 21, 2009 at 7:05 am
Statistics are enough the same between the versions that you don't really need to worry about them too much.
The only way to create a covering index in 2000 was to...
January 21, 2009 at 6:41 am
The overwhelming majority of our production systems are 2000. We're starting an initiative this year to get them upgraded to 2008 over the next two years because, in 2010, extended...
January 21, 2009 at 6:30 am
Abhijit More (1/21/2009)
CREATE TABLE tmpProduct
(
ProductIDINT IDENTITY(1, 1) PRIMARY KEY CLUSTERED,
ProductNameVARCHAR(10)
)
CREATE TABLE tmpProductSales
(
ProductSalesIDINT IDENTITY(1, 1) PRIMARY KEY CLUSTERED,
ProductIDINT,
TotalAmtMONEY,
BalanceAmtMONEY
)
INSERTtmpProduct(ProductName)
SELECT'Pr0duct' UNION
SELECT'Pr0duct2' UNION
SELECT'Pr0duct3' UNION
SELECT'Pr0duct4'
INSERTtmpProductSales(ProductID,...
January 21, 2009 at 6:19 am
Are you trying to insert into the first temp table filling the gaps?
Because if you're simply trying to insert unique numbers, you can get the max value from the original...
January 21, 2009 at 6:08 am
And if you want to get really confused, then, without an IDENTITY setting on the column, when the table is empty, the MAX value should be NULL. I'll bet that's...
January 21, 2009 at 6:01 am
Great. Glad to hear it. And thanks for posting the success of the suggestion.
January 21, 2009 at 5:32 am
So when you say you want to "extract non-generic sql" do you mean that you have stored procedures in your database that you need to pull out or that you...
January 20, 2009 at 6:42 am
I didn't have that one on my list. I do now.
January 20, 2009 at 6:15 am
Check out the Books Online for the topic SQL Agent. Agent is a scheduling process that will let you run lots of stuff, including TSQL batches, on a scheduled basis....
January 20, 2009 at 5:49 am
One place I've been visiting for bits and pieces is this blog: http://blogs.msdn.com/sqltips/default.aspx
But by & large, for focused information, Gail has given you what I've been using.
There is also the...
January 20, 2009 at 5:47 am
mgalgey (1/20/2009)
I want to capture any custom code that is in the stored proc that is not auto generated and insert it into the new stored proc.
Eg
Old ...
January 20, 2009 at 5:41 am
Try using the HAVING clause. Look it up in Books Online for details, but it would look something like this:
SELECT...
FROM...
WHERE..
GROUP BY...
HAVING SUM(MyValue) > 0
It's sort of like a WHERE clause...
January 20, 2009 at 5:35 am
Viewing 15 posts - 18,661 through 18,675 (of 22,214 total)