Viewing 15 posts - 5,671 through 5,685 (of 7,191 total)
Rambler (10/29/2010)
How can I find out transaction log name for every database in...
October 29, 2010 at 9:33 am
There are loads of threads on how to do this, if you'd care to search for them. You need to do something like this (not tested):
WITH MyWords AS (
SELECT
ROW_NUMBER()...
October 29, 2010 at 4:16 am
Doug
Please supply table DDL and sample data, and then we will be able to provide a tested solution.
Thanks
John
October 27, 2010 at 8:58 am
Why not just do it like this:
SELECT * FROM employees
WHERE emp_city = @city
AND emp_department = @department
AND emp_name = @name
I recommend that you read this:
http://www.sommarskog.se/dynamic_sql.html
John
October 21, 2010 at 8:01 am
wware (10/21/2010)
Truncate does not fail for me...?
That's because you haven't defined a foreign key constraint.
John
October 21, 2010 at 7:25 am
Unless you already had something set up to track changes on your tables, there is no way of doing what you require. For the future, create triggers on those...
October 21, 2010 at 6:16 am
I've seen this happen before where the location for the SQL Server Agent log file doesn't have the right permissions on it or doesn't exist.
John
October 21, 2010 at 6:02 am
yjeevanrao.net (10/21/2010)
Hi john,Thanks for your spontaneous response. can you please give me any guide lines how to do this.
Jeevan.
Jeevan
Search on the internet for introductory tutorials for SSIS, then work...
October 21, 2010 at 5:35 am
Jeevan
You can write scripts to do this in T-SQL, but file manipulation isn't what T-SQL is designed for, so you're probably best creating a SSIS package to back up the...
October 21, 2010 at 4:56 am
Hugo Kornelis (10/21/2010)
Iulian -207023 (10/21/2010)
With all these restrictions what kind of application would use truncate table?
An application that does not use triggers, is not involved in transactional replication or merge...
October 21, 2010 at 3:07 am
As far as I know, xp_delete_file and others like it are undocumented, not deprecated. That means you should take care when using them since they could be deprecated or...
October 21, 2010 at 1:34 am
Use maintenance plans. I think the task you need is called Maintenance Cleanup.
John
October 20, 2010 at 1:48 am
I think I would start by removing the cursor from the trigger and instead insert the data as one set into the timetable table. You'll get performance problems when...
October 18, 2010 at 8:58 am
Something nobody's mentioned is foreign key constraints. If another table has a dependency on the table you are deleting from, and your foreign keys don't have cascading deletes, you'll...
October 18, 2010 at 4:59 am
Please will you provide some sample data in the form of INSERT statements, and show us what you've already tried? You'll find that more people will be willing to...
October 18, 2010 at 4:16 am
Viewing 15 posts - 5,671 through 5,685 (of 7,191 total)