Forum: MS SQL Apr 12th, 2008 |
| Replies: 2 Views: 784 This forum is for MySQL. an open source SQL server. This post belongs in the MS SQL forum. They will have your answer. But you could try sqlcmd if the command line doesn't scare you. It should... |
Forum: MS SQL Mar 9th, 2008 |
| Replies: 4 Views: 2,388 Please post the results. I am curious too see which is fastest. thanks |
Forum: MS SQL Mar 9th, 2008 |
| Replies: 5 Views: 3,480 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 8th, 2008 |
| Replies: 4 Views: 2,388 Cursors are slooowwwwwww. you can add the ON DELETE CASCADE option to the foreign key in the sale_detail and sale_address tables. This makes it so that whenever you delete an entry in the parent... |
Forum: MS SQL Mar 7th, 2008 |
| Replies: 7 Views: 850 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: 850 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. ... |