Viewing 15 posts - 106 through 120 (of 155 total)
Jeff Moden (4/13/2011)
Gosh, NO! You're combining two performance sins, here. You're using an mTVF (Multi-line Table Valued Function) and RBAR. Please see the following article on how...
April 14, 2011 at 2:47 am
To Chris M,
Well, not only does that do exactly what I need, I pretty much understand it too!
Thanks very much. I need to able to drill down in the front...
April 7, 2011 at 7:27 am
To ranjodh_makkar;
I have fixed the error in my code (needed square brackets around the column names] and got your code working. Thanks for your help.
April 7, 2011 at 7:11 am
ranjodh_makkar (4/7/2011)
---create a string that will pick all the names from table [tblProject] and create one temp table
declare @tempTable varchar(mAX), @column1 nvarchar(100),@column2 nvarchar(100)
set @tempTable =' Create table ##result ( Date...
April 7, 2011 at 5:49 am
ranjodh_makkar (4/7/2011)
[MeetingID] [int] IDENTITY(1,1) NOT NULL,
[MeetingName] [varchar](255) NOT NULL,
...
April 7, 2011 at 4:02 am
Just as a matter of curiousity ... I know I'll get shot down in flames ... but is what is posted above different from ...
SELECT [SalesOrderID], [OrderDate], [Status],
...
March 22, 2011 at 4:57 pm
I have one situation where I couldn't find any other way of returning the data I wanted.
I have a lot of tables (at least a hundred) with a lot of...
March 22, 2011 at 4:51 pm
Thanks folks - 2 solutions that do the job. All I need to do now is try to understand!
One thing I definitely don't get is ... the example table just...
March 22, 2011 at 11:37 am
EDIT: Sorry - other posts appeared while I was writing this - please ignore.
Thanks for your reply and the link. I'm sorry, but I still don't get it.
CREATE TABLE #SomeTable1
...
March 22, 2011 at 11:17 am
I am no expert - in fact I am about as far from being an expert as it is possible to be.
So, what I have written below may be a...
March 22, 2011 at 10:43 am
I didn't realise you could write Select * FROM dbserver1.dbname1.table1 when dbserver1 is a different server from the one the query is being run on. What sort of authentication is...
March 22, 2011 at 2:44 am
GSquared (3/21/2011)
March 21, 2011 at 4:46 pm
Chris Morris-439714 (11/4/2010)
--------------------------------------------------------------- Create a tally table - CAREFUL, this is only 120 rows / numbers
-- and should be used only for this demo
-------------------------------------------------------------
DROP TABLE #Numbers
SELECT TOP 120 n =...
November 4, 2010 at 5:30 am
Viewing 15 posts - 106 through 120 (of 155 total)