Search Results

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: AaronASterling ; Forum: MS SQL and child forums
Forum: MS SQL Mar 9th, 2008
Replies: 5
Views: 3,483
Posted By AaronASterling
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
Posted By AaronASterling
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
Posted By AaronASterling
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. ...
Showing results 1 to 3 of 3

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC