Viewing 15 posts - 5,986 through 6,000 (of 7,185 total)
Are you using SQL Server 2000 or 2005? I think 2000 doesn't support TOP with a variable.
John
April 22, 2008 at 7:24 am
If your C# code is generating syntactically invalid SQL and you can't change that, then I'd say there's nothing you can do.
John
April 22, 2008 at 5:07 am
Karthik
The easiest way is to have the application to give you the table name. It must have used something like "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME IN 'Table1', 'Table2'"...
April 22, 2008 at 5:04 am
Maybe SQL Server is using an out-of-date execution plan. You can use Profiler to capture the execution plan and duration of a stored procedure. If it increases as...
April 22, 2008 at 4:49 am
In which case the application logic that generates the list will also have the name of the table. It will therefore be fairly simple to generate the select statement...
April 22, 2008 at 4:27 am
I don't know whether it's possible to do it the way you describe. But one alternative would be to remove the MasterId column from the Group table and add...
April 22, 2008 at 4:00 am
OK, but beware of last names like O'Higgins and McDonald and van Gogh and first names like Anne Marie and Jean-Christophe.
John
April 22, 2008 at 3:23 am
Karthik
It looks to me as if it would be quicker and easier to do this with views. But if you insist on doing it like this, please tell us...
April 22, 2008 at 3:17 am
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
Viewing 15 posts - 5,986 through 6,000 (of 7,185 total)