Viewing 15 posts - 49,801 through 49,815 (of 59,099 total)
Heh... in this situation, you're rebuilding the view! It's gonna recompile no matter what... 😉 Works fine in production code especially in 2k where there's no such thing...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 8:59 pm
Just in case someone wants to "play", here's the Cross Tab code I'm trying to duplicate with a single pivot...
SELECT Company,
Year,
...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 8:44 pm
sriharivittal1 (5/28/2008)
Can some one provide Sample Code?
You want sample code? Then provide some sample data. Please see, read, understand, and follow the article in the link in my...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 4:33 pm
venki (6/22/2008)
I tried to use the for loop in my stored procedure but I haven't found it's working and...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 4:27 pm
Whether you use SELECT * or not, if you want to see the table changes in a view, you have to recompile the view. Like Barry said, this is...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 4:23 pm
Save us all some time... post the stored procedure that you're trying to convert into a view.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 2:05 pm
Jeff W...
SELECT * works perfect on these type of "pass through" or "surrogate views". You can go through the process of naming all the columns if you want, but...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 1:58 pm
Bilal (6/22/2008)
I expect about 1000 rows to return , and their is one type of index defined which is traffic1each table have millions of records
any thing else ?
Yes...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 9:32 am
Ummm... you guys are getting awfully serious about this... you do realize that the article was written and first posted about 3 years ago, huh? 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 8:59 am
Ok... thanks...
Does BitBucket's code do it for you or do you still need help with something?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 8:56 am
Even though I don't like cursors and I don't use them, that would be the first thing to change... I'd have them stop deprecating stuff that works. That's part...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 8:54 am
JRJ (6/22/2008)
That's possible. How can I change a views definition in a proc? Also I am deeling with duplicate indexes, is that ok?thanks
A view's definition can easily be changed using...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 22, 2008 at 8:48 am
No, NO, NO!!! Never ever store formatted data! You will pay dearly for doing so someday in the future. This type of (leading zero) formatting should really...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 21, 2008 at 9:08 pm
giontech (6/21/2008)
I need help in how to get data from a table with a daterange from sunday to saturday of the last week.
What I'm looking for is to be able...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 21, 2008 at 8:47 pm
Mani Singh (6/21/2008)
you can use this and manipulate this query to code as needed..DECLARE @GENRANDOM nvarchar(9)
SET @GENRANDOM =LEFT(SUBSTRING (RTRIM(RAND()) + SUBSTRING(RTRIM(RAND()),3,11), 3,11),9)
--SELECT SUBSTRING(@GENRANDOM ,3,1)
SELECT @GENRANDOM as 'RANDOM_NUMBER'
Yep... you could do...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 21, 2008 at 8:05 pm
Viewing 15 posts - 49,801 through 49,815 (of 59,099 total)