Viewing 15 posts - 6,001 through 6,015 (of 7,191 total)
Have a look at the CONVERT topic in Books Online. This gives you all sorts of date formats.
John
April 22, 2008 at 2:27 am
Steve
Anything that changes your database in any way will cause your log to grow: DML statements, DDL statements, reindexing, TRUNCATE TABLE, bcp, BULK INSERT....
John
April 21, 2008 at 7:40 am
There could be a Windows or third-party scheduler running stuff on your SQL Server. Try setting Profiler to start at 3:09 in the morning and capture what happens.
John
April 21, 2008 at 7:30 am
You'll need to speak to whoever wrote the asp.net C# code in order to get the dynamic SQL generated in the way you expect it.
John
April 21, 2008 at 7:07 am
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
Viewing 15 posts - 6,001 through 6,015 (of 7,191 total)