Viewing 15 posts - 61 through 75 (of 175 total)
This works as well. http://www.sqlservercentral.com/scripts/Administration/62729/
I gave up on xp_delete_file.
April 21, 2010 at 4:27 pm
Elliott W (4/21/2010)
April 21, 2010 at 11:07 am
If you can query the system tables then this is clearly the best method but I have no idea if this is possible.
See this as an alternate method.
If...
April 15, 2010 at 11:40 am
The SQLCMD utility could be a solution.
April 12, 2010 at 1:49 pm
On your source instance create a linked server to you archive instance. Then reference your linked server in the insert statements.
April 7, 2010 at 2:03 pm
Thank you gentlemen, I learned something new today. Much preferrable to the date calculation method.
April 7, 2010 at 10:24 am
A linked server could work.
or you could use SSIS. Run the import wizard from management studio, configure and save your package, schedule your package.
April 7, 2010 at 10:14 am
Use IF...ELSE
http://msdn.microsoft.com/en-us/library/ms182717(SQL.90).aspx
My month end check is a little different
declare @currentdate char(8)
declare @lastmonthdate char(8)
SET @currentdate = (SELECT convert(char(8), getdate(), 112))
SET @lastmonthdate = (SELECT convert(char(8),DATEADD(dd, -DAY(DATEADD(m,1,getdate())), DATEADD(m,1,getdate())), 112))
PRINT @currentdate
PRINT...
April 6, 2010 at 9:17 am
eConnect is the accepted GP mechanism for importing data. Good luck.
March 26, 2010 at 3:38 pm
I would check with GP and see if this is supported. Some systems especially accounting systems don't support direct updating of the database and you may damage data integrity.
They may...
March 26, 2010 at 11:55 am
I think this is the main problem: the database desing comes after processes and data-flow analysis, that can have been done poorly. A perfect database design based on a poor...
March 25, 2010 at 12:54 pm
Why destroy information which may be useful, that is the timestamp?
Change your restore script to dynamically set the fname of the file to be restored.
http://blog.tech-cats.com/2007/10/sql-server-script-to-restore-database.html
http://www.sqlservercentral.com/scripts/Backup+%2f+Restore/66372/
March 25, 2010 at 12:30 pm
I would review security best practices. Search 'sql server security best practices'.
If the question is "How do you insure the security of the server?" your answer could be "by following...
March 23, 2010 at 1:02 pm
If you are using the Import/Export wizard I believe you can still save the package at the end of the process even though its failing. Then open the package in...
March 2, 2010 at 9:53 am
Viewing 15 posts - 61 through 75 (of 175 total)