Viewing 15 posts - 3,466 through 3,480 (of 4,087 total)
Use the '//' that you want to find all occurrences. Something like p.query_plan.nodes('//sp:RelOp/sp:OutputList/sp:ColumnReference')
Drew
November 29, 2011 at 7:13 am
mgoldade (11/28/2011)
However, the desire is that online courses print in ALL groupings AND as their own section for the students who only take courses online.
Remember that CASE is a "function"...
November 28, 2011 at 8:44 am
It means pretty much what it says. You don't have a table named or aliased "table3" in your query. You can't reference a column in a table that...
November 23, 2011 at 12:52 pm
XML is case-sensitive. That appears to include the .nodes() function.
Drew
November 23, 2011 at 12:40 pm
Cadavre (11/23/2011)
Ahhh, beaten to the punch.
Not necessarily. On my sample data, using IN outperforms using NOT IN by a significant margin. I assume that this will mainly be...
November 23, 2011 at 10:07 am
New does not necessarily mean better. (In fact with MS it often means buggy.) Jeff Moden shows in his article
Cross Tabs and Pivots, Part 1 – Converting...
November 23, 2011 at 7:45 am
memymasta (11/23/2011)
November 23, 2011 at 7:32 am
Welsh Corgi (11/22/2011)
The following does not right justify the percentage:
Justification is a presentation issue and should be handled by the presentation layer not in T-SQL.
Drew
November 22, 2011 at 2:31 pm
100.00 * Sum(Sale)/NULLIF(Sum(Quote), 0)
This makes sure that you are not performing integer division and also produces a null result when Sum(Quote) is zero.
Drew
November 22, 2011 at 1:20 pm
Bron Tamulis (11/22/2011)
selectNBXWEB.dbo.RBI_POReceipts.PONUM,
NBXWEB.dbo.RBI_POReceipts.Vendor,
NBXWEB.dbo.RBI_POReceipts.RecDate,
NBXWEB.dbo.RBI_POReceipts.SKU,
NBXWEB.dbo.RBI_POReceipts.QtyReceived,
NBXWEB.dbo.RBI_POReceipts.ReadByGP,
RBI.dbo.BT_POP_QTY_REMAIN.REMAIN
from NBXWEB.dbo.RBI_PORECEIPTS FirstAlias
Left outer Join RBI.dbo.BT_POP_QTY_REMAIN SecondAlias
ON FirstAlias.PONUM = SecondAlias.PONUMBER and FirstAlias.SKU = SecondAlias.ITEMNMBR
Once you define an alias on the table any...
November 22, 2011 at 11:46 am
The first step is to choose the correct tool for the job. In this case, the correct tool is reporting software, such as SSRS, not T-SQL. This kind...
November 22, 2011 at 9:22 am
Mark-101232 (11/22/2011)
I think this is known as a directed graph
In order for the recursive CTEs to work, it actually needs to be a directed acyclic graph, i.e., it can't have...
November 22, 2011 at 8:19 am
Excel is a spreadsheet program, not a database program. It makes a terrible database program.
Excel is a spreadsheet program, not a user interface design program. It makes a...
November 22, 2011 at 8:05 am
Remember what i said about relative paths? All of your paths are absolute. (They start with a '/'.) You need to use relative paths. The '.',...
November 18, 2011 at 12:32 pm
Yes, it's a T-SQL question, but you posted in both the T-SQL (SS2K5) and the T-SQL (SS2K8) forums. I assume you know whether your server is SQL 2005 or...
November 17, 2011 at 10:10 am
Viewing 15 posts - 3,466 through 3,480 (of 4,087 total)