Viewing 15 posts - 3,211 through 3,225 (of 3,406 total)
Yes, a Matrix is essentially a crosstab (well, except you don't have to do the PIVOT in T-SQL... SSRS does the pivot part for you).
So, yes, you could choose a...
September 24, 2013 at 12:17 am
Young Jedi,
Read these:
http://www.sqlservercentral.com/articles/Security/sqlinjection/1269/
http://www.sqlservercentral.com/articles/Editorial/77168/
http://www.sqlservercentral.com/articles/sql+injection/65129/
I would consider dynamic SQL as an absolute last resort. Not a tool to be used by ex-Access programmers (I am...
September 23, 2013 at 9:14 pm
Just say NO to dynamic SQL!!! That opens doors to all kinds of REALLY bad things! I should probably go find Kevin Kline's "SQL Server Low-Hanging Fruit" presentation...
September 23, 2013 at 9:06 pm
The line in there that would worry me is this one:
Scalar UDFs are generally accepted as one of the worst things you can do performance-wise in T-SQL. However, they may...
September 23, 2013 at 8:29 pm
you could add a calculated value to your dataset that did the calculation "row-wise" and then use that calculated value in your SUM / aggregate expression
September 23, 2013 at 8:20 pm
you could add a calculated value to your dataset that did the calculation "row-wise" and then use that calculated value in your SUM / aggregate expression
September 23, 2013 at 8:16 pm
FWIW, I started with Brian Larson's book on SSRS 2008. It was okay. He walks you through setup, which helps. Also, his instructions are usually really easy to...
September 23, 2013 at 2:05 pm
I think you can use it. The best way to find out is to use a "sandbox" database (or something you can mess up and it won't matter), and...
September 23, 2013 at 1:18 pm
Since the SQL to return the records you want is really simple, I would just join this...
SELECT r.jobnumber
re.code
FROM repheader r
INNER JOIN repairtype re ON re.code = r.code
to your other query....
September 22, 2013 at 4:08 pm
use a cartesian product. (two tables in the query, no join). One has People, one has Events. No join means the tables get multiplied. Filter as...
September 22, 2013 at 10:40 am
You're missing the "Add 14 hours" part...
=DateAdd("h",14,DateAdd("d",-1,Today))
September 21, 2013 at 11:12 pm
I'll give you that I'm not an SSIS guy, but if the format is always the same, you should be able to create a variable for the filename, then strip...
September 21, 2013 at 8:51 pm
absolutely reeks of a homework assignment.
If you can group by half hours, then you're golden. Try something like getting the number of half hours since midnight, and then grouping...
September 21, 2013 at 2:11 pm
No. I was leaving out a bunch of stuff. It was the bare bones of a stored procedure. One of the differences between a view and a...
September 20, 2013 at 9:51 pm
Are the pick lists for 3 possible values really necessary? Simplify, then you're done.
You could do this...
SELECT bioID
, FirstName
, LastName
, Sex
, Status
FROM Bio INNER JOIN Sex ON Bio.SexID=Sex.SexID
INNER JOIN [Status]
ON...
September 20, 2013 at 9:02 pm
Viewing 15 posts - 3,211 through 3,225 (of 3,406 total)