Viewing 15 posts - 55,786 through 55,800 (of 55,829 total)
>(select count(*) from myview where ...) as field1
>(select sum(field) from my where ...) as field2
Your last post said that you used aggregate functions for each field. Looking at the code...
April 25, 2004 at 9:27 pm
First, thank you for the table and data code... always a pleasure to NOT have to write code just to do a test setup...
April 25, 2004 at 7:55 am
A.zcmSBA_V_WONO=B.zcmSBA_V_WONO AND
A.zcmSBA_N_JONO=B.zcmSBA_N_JONO AND
A.zcmSBA_V_TRXNO=B.zcmSBA_V_TRXNO
April 25, 2004 at 7:10 am
Worse than that, it's been my experience (in SQL Server 7) that a SELECT such as yours will create a separate instance of the view, in memory, for each named instance...
April 25, 2004 at 7:02 am
Kokyan is correct... temp tables are always unique per session. You can see the actual name of a temp table in the tree view (press f8) of Query Analyzer. They...
April 25, 2004 at 6:35 am
Actually, there is! It comes in the form of the PARSENAME command which was specifically developed to break apart the parts SQL object names "at the dots". Since your example...
April 24, 2004 at 9:04 pm
In that case, Bulk Insert has a MAX ERRORS setting that works just like the BCP -m parameter. Again, check BOL under Bulk Insert.
April 23, 2004 at 9:06 pm
No execution plan is formed for Dynamic SQL until Runtime regardless of method of execution.
April 23, 2004 at 5:53 am
Not sure but I think it may be the way that Crystal is using the view... I believe that it creates a different instance of the view for each instance that...
April 22, 2004 at 7:34 pm
Kokyan gave a good example of "Dynamic SQL"... just wanted to remind everyone that dynamic SQL can be quite a bit slower than "Static SQL" because it does not pre-form...
April 22, 2004 at 7:24 pm
It's a forum, not on-line help...
Anyway, use the -m parameter followed by the number of errors you wish to allow. Lookup BCP,Overview in...
April 22, 2004 at 7:20 pm
1. You need to assign a "table alias" to the SELECT in the FROM clause.
2. You need to use that table alias on all column names to the right of...
April 21, 2004 at 5:03 pm
Basically, @@Error only lasts for one successful line of code so by the time you get to the "SET @out_param = @@Error" chunk of code, @@Error has been reset to...
April 21, 2004 at 4:56 pm
Add the "-n" parameter to your command line to suppress both the prompts and the line numbering.
Recommend you use OSQL instead.
April 21, 2004 at 4:49 pm
Viewing 15 posts - 55,786 through 55,800 (of 55,829 total)