Viewing 15 posts - 1,066 through 1,080 (of 1,315 total)
If the dbf table has some kind of autonumber or timestamp field (or one could be added), so your scheduled task can use something like "WHERE {timestamp} > {last run time}",...
September 1, 2005 at 6:30 am
The ROUND() function has a little-known third argument that specifies whether to round or truncate. ROUND(<value>,2,1) would solve the problem better than the code in the article.
August 25, 2005 at 8:16 am
The differential backups can be used to initialize the standby database, but there is no need to apply them afterwards.
You're restoring the log backups every 15 minutes, there's nothing in...
August 25, 2005 at 8:08 am
You can't set the options on multiple databases in one statement. But you can set multiple options on one database in one statement.
ALTER DATABASE <db> SET READ_ONLY, SINGLE_USER
[ WITH...
August 25, 2005 at 7:54 am
No, they're both correct statements.
The current realtime state of the data that hasn't changed is, by definition, the same as it was when the snapshot was created.
A query against a...
August 24, 2005 at 10:49 am
Restoring the master database is a different animal. You can only restore the master database if you started SQL Server in single-user mode, so the normal checks for other connections...
August 24, 2005 at 9:07 am
I'm not sure who Leonid is, but over the weekend I realized the script I posted would not work for some dates. (Tells you how exciting my weekends are.)
Here is...
August 22, 2005 at 9:17 am
Converting a datetime to a float gives you a number in days (the fractional part is the time), and floor() will truncate it to a pure date. You get an error if...
August 19, 2005 at 12:48 pm
select TheDate,
dateadd(d, 6 - ((cast(floor(cast(FirstDayOfMonth as float)) as integer) - 1) % 7), FirstDayOfMonth) as FirstMondayOfMonth,
dateadd(d, -(cast(floor(cast(LastDayOfMonth as float)) as integer) + 3) % 7, LastDayOfMonth) as LastFridayOfMonth
from (
select...
August 19, 2005 at 9:29 am
Substituting the other msdb may work, but you probably want to get the DTS packages out of it so you can put the original msdb back. You might have maintenance plans,...
August 19, 2005 at 8:01 am
Try to find out what table(s) have all this data. An extra 500MB should be easy to spot. I looked around at a number of my servers and can't find...
August 19, 2005 at 7:45 am
BCP and DTS do not pretend to have reporting capabilities, they are just ways to dump query results to a text file. I might be tempted to use a script...
August 18, 2005 at 4:30 pm
You're welcome to stop by any time and troubleshoot my server configuration.
Try to remember that I didn't say to never use ALTER TABLE. I said that ALTER may have a...
August 18, 2005 at 3:19 pm
That's a very tiny MAY, in my experience. I can INSERT/SELECT 15 million rows in minutes on most of the servers I work with, but I have seen ALTER take...
August 18, 2005 at 10:27 am
If you have sufficient disk space, copying the data to build a new table may run much faster than updating the existing table. Obviously it is a lot more work,...
August 18, 2005 at 9:39 am
Viewing 15 posts - 1,066 through 1,080 (of 1,315 total)