Viewing 15 posts - 4,726 through 4,740 (of 4,814 total)
As to the CTE's moving into table variables, I just took some queries that were CTE's and declared a table variable with a primary key to hold the results instead,...
July 14, 2008 at 6:55 am
At least in SQL Server 2005, the PIVOT and UNPIVOT operators need to know the values they'll be dealing with, so if you don't know ALL the possible values, and...
July 14, 2008 at 6:46 am
Why thank you kind sir !!! I was going bananas trying different ways to parenthesize, add aliases, etc., but I think I just got so buried deep into...
July 11, 2008 at 3:00 pm
If I recall correctly, the EXECUTE statement needs the @s-2 to appear in parentheses, as follows:
EXECUTE (@s);
Steve
(aka smunson)
:):):)
July 10, 2008 at 2:16 pm
Before I worry about performance, I have some reservations about just adding another table. When you mentioned the idea of perhaps having a price column as part of the...
July 10, 2008 at 1:20 pm
Getting the SQL Native Client on each of the reporting PCs means having to go through that step/process for each one, in the same way that we desire NOT to...
July 9, 2008 at 9:14 am
Whatever came with Crystal Reports XI, so no, I have no idea if it's up to date or not. Any ideas on how I can find out rather...
July 9, 2008 at 7:53 am
Take note of the added parentheses around @sql in your EXEC statement...
Steve
(aka smunson)
:):):)
smerg (7/8/2008)
I'd like to convert several rows of my table to csv list
create table...
July 9, 2008 at 7:46 am
If I do that, then I have to assume that the query is being fed to SQL Server in pieces, and given the results already achieved, that can't be true....
July 9, 2008 at 7:09 am
The reason for the change is to eliminate the need to maintain the ODBC configuration on multiple PC's, which is what should be an unnecessary step. The report...
July 9, 2008 at 6:34 am
First, I tried just looking at the execution plan, which I had never seen before because I so rarely encounter a query that runs for any significant amount of time,...
July 8, 2008 at 6:40 am
First, I suspect the following code will run VERY POORLY, but here goes anyway, and if EmployeeId is not the Primary Key field in the Employee table, replace that in...
July 2, 2008 at 1:23 pm
You'll have to look at the Orders table to ensure that Title is a field within it. If it's supposed to come from Employees instead, then I'll have to...
July 2, 2008 at 12:53 pm
Matt,
I by no means advocate a loop solution, but was just trying to get the OP to come clean on the whole deal instead of feeding it in piecemeal. ...
July 2, 2008 at 8:18 am
Really? Perhaps you need to restate the problem. What it appears you are asking for is a solution to a general class of problem: Using...
July 2, 2008 at 7:51 am
Viewing 15 posts - 4,726 through 4,740 (of 4,814 total)