Viewing 6 posts - 1 through 7 (of 7 total)
COOL.
i've never seen TABLESAMPLE before. but this looks nice. it seems to be unreliable on the number of rows that come back, but i suppose i could just...
November 21, 2008 at 12:52 pm
loop the NEWID() field through a VIEW against the raw data.
CREATE VIEW [mlowden].[dbo].[v_Xtreme_RandomCompanyNames]
AS
SELECT CompanyName, NEWID() AS RandomSortBy FROM mlowden.dbo.Xtreme_Customers
then just use the VIEW as...
November 21, 2008 at 12:20 pm
GOT IT !!!!! 🙂
please hold for details.
November 21, 2008 at 12:06 pm
HAHA. fair enough. I guess I just prefer the features of TXT/SQL editing in a more advanced TXT editor ... you know with options like "Insert 2 spaces...
June 9, 2008 at 5:06 pm
Oh I totally agree. But really isn't it the only way to create a view without typing the supporting TSQL for like "CREATE VIEW" etc?
Or is there some higher...
June 9, 2008 at 3:46 pm
wow... thanks for the quick followups guys.
------------------------------------
Right-Click > New View
.. add a simple table like "country"
Type your own SQL in the editor (3rd of 4 panes) and enter:
SELECT
...
June 9, 2008 at 3:14 pm
Viewing 6 posts - 1 through 7 (of 7 total)