Viewing 15 posts - 7,291 through 7,305 (of 7,428 total)
Yes basic format
SELECT
MAINVALUE,
SUM(CASE WHEN PIVOTCOL = VAL1 THEN 1 ELSE 0 END) AS VAL1,
SUM(CASE WHEN PIVOTCOL = VAL2 THEN 1 ELSE 0 END) AS VAL2,
.....AND SO ON
FROM TABLEX
February 8, 2002 at 4:16 pm
They are declared as you see. I went and found them one day and forget how to tell what is what.
February 8, 2002 at 4:13 pm
Besides if your concern is code theft just make sure you have the proper copyrights and stick it too them. If it is code tamper have a disclaimer against that...
February 8, 2002 at 4:09 pm
Hem, from the error that is odd, unless did you run the app from the server itself or a remote machine. If the server then I believe it was problem...
February 8, 2002 at 2:05 pm
I believe and I may be wrong that when they created the views and stored procedures they ran them once with WITH ENCRYPTION then opened the in SQL EM and...
February 8, 2002 at 2:02 pm
I see, what you are doing with subqueries is fine except you lose a lot of bennifits of indexes when you do it this way as it creates a derived...
February 8, 2002 at 1:41 pm
I actually use a similar item already for an app the is user definable and settings are mobile. With our case we have a file assigned by user id that...
February 8, 2002 at 1:19 pm
Just as an aside and to poke at Microsoft for fun has anyone seen this: <a href="http://news.zdnet.co.uk/story/0,,t269-s2102244,00.html">.Net vote rigging illustrates importance of Web services</a>.
February 8, 2002 at 12:59 pm
There are lots of books, web sites and other instruction materials out there. But what are you having trouble with and we can see if we can help (but not...
February 8, 2002 at 12:53 pm
But the problem error code in the ado reference set states "Data source name not found and no default driver specified", I don't feel it is the server but the...
February 8, 2002 at 12:48 pm
I agree with Steve it would be easier. But if you do not want to go that way I will be glad to find code that works like this but...
February 8, 2002 at 11:40 am
Do the folowing. Put a break point at
ConnectionString = "Provider = SQLOLEDB; Data Source = " & DBServerName & "; Initial catalog = FastFood; UID=UserFastFood; PWD=fastfood;"
and when you pass...
February 8, 2002 at 11:37 am
Basically column order should never matter, it is the way you display that determines what a user will generally see anyway. Column are just for you to control the storage...
February 8, 2002 at 11:26 am
Viewing 15 posts - 7,291 through 7,305 (of 7,428 total)