Forum: MS SQL Mar 9th, 2008 |
| Replies: 5 Views: 3,483 Give this a shot from within sqlcmd or osql....
EXEC sp_addumpdevice 'DISK', 'MyBackupToFTPland', 'DirectoryYouCanFTPFrom\backup.bak'
BACKUP DATABASE yourdatabase
TO MyBackupToFTPLand |
Forum: MS SQL Mar 7th, 2008 |
| Replies: 7 Views: 851 It seems to be exactly what the original poster wanted. What exactly do you mean by 'its a static solution?' Wouldn't any query need to be recalculated every time to ensure accurate real time... |
Forum: MS SQL Mar 7th, 2008 |
| Replies: 7 Views: 851 You want something like:
SELECT columnyouwant1,...,columnyouwantn, rowcount = COUNT(B.ForeignKey)
FROM TableB AS B
GROUPBY B.ForeignKey
Load that into a temporary table. lets call it T. ... |