Viewing 15 posts - 6,001 through 6,015 (of 7,187 total)
It looks as if it is the date that's the problem, then. Have you tried changing the double quotes to single quotes?
John
April 21, 2008 at 6:16 am
OK. Did you get any error message? What was in the columns that were not inserted to? Are there any triggers on the table? What is...
April 21, 2008 at 4:52 am
I don't understand. If the difference is in date formats, why have you highlighted values that appear to represent sums of money? Please show us what the query...
April 21, 2008 at 4:39 am
The thing about using temp tables is that it will materialise the whole of the "view". With a CTE, it will only take out what you need.
Consider the following
SET...
April 18, 2008 at 9:47 am
One way of doing it (not necessarily the most efficient or most secure) is to use xp_cmdshell to run the dir command in the folder your backup files are in....
April 18, 2008 at 8:49 am
Use sp_who2. It's an undocumented stored procedure similar to sp_who, but it provides more information.
John
April 18, 2008 at 6:29 am
Anirban Paul (4/18/2008)
from #a
group by [id]
order by max([order]) asc
The above T-SQL statement is wrong. You required Group By clause as you are using MAX function. The statement will...
April 18, 2008 at 6:20 am
Use the first query, but put the column name in brackets in the third row, the same way you did in the first.
By they way, if you are going to...
April 18, 2008 at 4:58 am
Have you posted all of your code? If so, what is it supposed to do? It fetches the results into the variables, but then moves on without actually...
April 18, 2008 at 4:54 am
The first thing I would try is getting rid of the semicolons. I don't think they're strictly necessary.
John
April 18, 2008 at 4:42 am
What is your stored procedure trying to do? The code you have posted only creates and populates the temp table. It doesn't do anything with it. If...
April 18, 2008 at 4:38 am
Use the HAVING clause so that you only return results with sum = 0. Then join that result set to the original table to get the rows that...
April 18, 2008 at 4:30 am
sp_helptext should give you what you're looking for. But you may have to grant your user higher permissions than it already has - check out the Permissions section of...
April 18, 2008 at 4:26 am
Helin
It's not something I've done before. But one thing you could try is to monitor the sys.dm_exec_requests view and check that cpu_time and/or logical_reads are increasing all the time...
April 18, 2008 at 4:15 am
Just because you can put it all on one drive, it doesn't mean you should. For optimum performance, you should put data and log files on physically separate disks....
April 17, 2008 at 7:38 am
Viewing 15 posts - 6,001 through 6,015 (of 7,187 total)