Viewing 15 posts - 511 through 525 (of 1,554 total)
It seems a bit awkward, but.. should this script only gather the data from all tables then, so that each table's data is saved as a plain ascii file?
This is pretty...
April 28, 2006 at 1:00 am
You should never use RETURN for other stuff than return (ie status) codes. If you decide to use return for returning stuff like rowcount, you no longer have the ability to...
April 28, 2006 at 12:48 am
I don't think there's any difference between TOP and SET ROWCOUNT in functionality.
If both are used, then ROWCOUNT overrides TOP if it's smaller.
Also, MS recommends TOP over ROWCOUNT to be...
April 27, 2006 at 4:12 am
Well, there are backups and there are backups.
Normally a 'backup' is the entire database, which also ensures you that all stuff inside stick together in a correct way. Won't a...
April 27, 2006 at 4:03 am
Remi,
he wants delete.. not drop
Though the idea is valid for deletes too
/Kenneth
April 26, 2006 at 7:23 am
The deleted and inserted tables are copies of the table the trigger is placed on that is accessible only from within a trigger. You use them just like any other...
April 26, 2006 at 6:05 am
Yes you can, you can give a pre-command and post-command and also a where clause to sp_MSforeachtable.
But... be aware that this proc is nothing else than a shorthand shortcut for...
April 26, 2006 at 6:01 am
I think you need to explain a little more about what you are trying to do. Could you give a very simple example describing the things you are wondering about?
/Kenneth
April 26, 2006 at 5:56 am
It's pretty much a case of eating the cake and still keeping it - can't have both..
If you want to limit the rows returned, then TOP or SET ROWCOUNT n...
April 26, 2006 at 5:52 am
Sometimes when you have 'creative' SQL and you find a 'feature' (ie a bug) that causes the server to AV, this message may pop up. Check the serverlogs for any...
April 25, 2006 at 5:50 am
You can only restore a database when there is noone in it, it must be empty from *all* users, including your own connection that does the restore.
Make sure that no...
April 25, 2006 at 5:44 am
Haven't actually tested it when there also is a ordered subquery in the select list, but the problem is just what the message says... You need to say 'TOP'.
April 25, 2006 at 5:34 am
You must be consistent and clean out all old legacy syntax everywhere you still have it.
The error comes when you have a view written in ANSI style (which is good),...
April 24, 2006 at 8:46 am
Insert Table1 (col1, col2 ....)
Select col1, col2....
from BackupTable b
left join Table1 t
on t.id = b.id
where t.id IS NULL
..should do it.
To check first, just run the select part without...
April 24, 2006 at 3:46 am
Have you actually tried the example Venkat posted? There is no 'company' nor 'country' in that example.
If your actual columnnames are different, then change accordingly to how your columns are...
April 24, 2006 at 3:41 am
Viewing 15 posts - 511 through 525 (of 1,554 total)