Viewing 15 posts - 9,766 through 9,780 (of 18,926 total)
I'm sure Jeff will come up with a more complete answer, but one example is that you'll create that view, then a few weeks later, someone else will use this...
June 21, 2007 at 8:03 am
You should be able to get this to work...
SELECT TOP 100 PERCENT ITEMNMBR, SUM(TRXQTY) AS Expr1, SUM(CASE WHEN datediff(month, docdate, getdate()) = 0 THEN TRXQTY ELSE 0 END) AS period1
FROM dbo.IV30300
GROUP...
June 20, 2007 at 2:56 pm
First question : data warehouse or transactional database (reporting or working)?
June 20, 2007 at 9:42 am
It can be done, quite easily, I might add. We're just telling you that it's a very bad idea.
If you insist, I can give you some working code to get...
June 20, 2007 at 9:40 am
Why would you want to do that? Why would you have 4 different columns in the same table with the same data (time1, time2, time3, time4)?
Check out the case statement...
June 20, 2007 at 8:39 am
There seem to be some syntax error in the code you posted. Are you able to post the exact code you are getting in the profiler? Maybe we're just missing...
June 18, 2007 at 3:37 pm
You got to write an article about this. I'm sure you can win an award or something!!!
No need to point out that this is a bad idea. Not even a...
June 18, 2007 at 3:00 pm
I go with what I know... I never used osql.
Thanks for the tip
.
June 18, 2007 at 2:53 pm
I'm sure you checked that... but is there a default value to those parameters?
Are they set to something from the calling application?
June 18, 2007 at 2:34 pm
If you run the script builder of enterprise manager, you can select all tables, then in the 2nd page, uncheck build create and drop scripts, then in the last page,...
June 18, 2007 at 2:32 pm
Job make a sp that starts the job (sp_start_job?!). Make a vbs file that uses windows authentication (so no login info is visible).
I never had to do this but I'm...
June 18, 2007 at 2:04 pm
This is the execution code of a procedure with outout parameters. Check that procedure and see if the last 2 params are set to te joehack value somehow.
June 18, 2007 at 1:14 pm
From his own words :
AFAIK only the Developer Edition will allow you install the actual database engine with all the extras on a non-server OS, that's why the client...
June 17, 2007 at 2:53 pm
Use the union all version. Then add the column name as a varchr description column. The other way to do it is to le the application reversve engeneer this one...
June 15, 2007 at 2:55 pm
SELECT CASE WHEN start proposal date < start review date AND start proposal date < finish review date AND start proposal date < submit to client date THEN start proposal...
June 15, 2007 at 1:39 pm
Viewing 15 posts - 9,766 through 9,780 (of 18,926 total)