Viewing 15 posts - 466 through 480 (of 727 total)
We told you the benefits. No headaches when dealing with oddly named objects. That's it.
April 18, 2007 at 6:58 pm
Since you're already using a batch file for the copy, I'd probably use it for the delete as well. Let me introduce you to an excellent batch file resource....
April 18, 2007 at 6:09 pm
What level of granularity are you looking at? Hour, 30 minutes, 10 minutes, minute, second, millisecond, etc? While initially I didn't see a way it could be done without a...
April 18, 2007 at 6:02 pm
Because it's not only reserved words (spaces in object names causes problems, for example), and because writing code to only put brackets around things that break the mold is more...
April 18, 2007 at 5:56 pm
Also, isn't it master.sys.xp_delete_file for 2005, as opposed to dbo?
April 18, 2007 at 12:47 pm
Yep, you're missing the "extension", which goes between the path and the datetime. Use the extension without the period, such as N'bak'
April 18, 2007 at 12:44 pm
Since it's undocumented, I'm not sure, and it's been a while, but doesn't the date need to be an nvarchar datatype, instead of datetime? If not, I know there have...
April 18, 2007 at 12:39 pm
By the way, the fact that you get duplicates means that you have some DBs that have either multiple Servers or multiple Members. While the DISTINCT takes care of it...
April 18, 2007 at 12:28 pm
If that worked, and you didn't have nulls showing up before as defaults, then something was populating them with empty strings.
April 18, 2007 at 12:00 pm
Add the indexes to the populated tables. If it takes more than a minute or two, I'd be surprised. A million records is nothing to SQL Server, as you'll find people...
April 18, 2007 at 11:56 am
Peter found at least one of the problems.
By the way, you're actually halfway there to debugging dynamic SQL, which is one of your complaints about it. That print statement you...
April 18, 2007 at 11:53 am
To make this easier, comment out the EXECUTE portion of this script at the bottom and then run it. If you don't get the error, then paste the results of...
April 18, 2007 at 11:47 am
XCOPY \\sourceserver\sourcevolume\sourcepath\sourcefilename \\destinationserver\destinationvolume\destinationpath\destinationfilename
You can use COPY instead of XCOPY, but I use XCOPY as it gives more switches that I may or may not need down the road.
April 18, 2007 at 11:30 am
Unless there are confidentiality reasons, I'd still recommend posting your code. Based on your error, I'm guessing it will be a lot more complex trying to debug it without the...
April 18, 2007 at 11:24 am
Then I'd personally go with the batch file. You can even call it from a job if you'd like.
April 18, 2007 at 11:22 am
Viewing 15 posts - 466 through 480 (of 727 total)