Viewing 15 posts - 406 through 420 (of 1,156 total)
I added some more flexibility to the script. I do not know if you want to process all files in a directory but this will process all files that...
March 4, 2008 at 5:38 pm
I posted a TSQL solution at the other link.
http://www.sqlservercentral.com/Forums/Topic464002-338-1.aspx?Update=1
March 4, 2008 at 4:18 pm
You may need to delete items from the @Directory table to make sure you only process the files you want. You can do a simple delete after the directory...
March 4, 2008 at 4:17 pm
You can do something like this, using openrowset.
DECLARE @Path VARCHAR(25),
@FormatFilePath VARCHAR(25)
@i int,
@file varchar(25),
@FilePath varchar(25),
@sql NVARCHAR(500)
SET @i = 1
SET @Path = 'C:\Test'
SET @FormatFilePath = 'c:\Test\testfmt.xml'
--===== Create a directory table
DECLARE @Directory...
March 4, 2008 at 4:13 pm
I dont think you can use cast in SSIS packages. You should use the WSTR datatype. Like this:
SUBSTRING((DT_WSTR,10)[RECD09], 1,5)
Note: I set it at 10 to prevent an...
March 4, 2008 at 3:23 pm
Jeff good solution. 🙂
We need to expand on this a little further to meet requirments.
You would need to supply data for the SourceFile column, which does not exist in the...
March 4, 2008 at 3:04 pm
Do any of your maintenance plans have a cleanup task? This is what removes outdated backups from the file system.
March 4, 2008 at 1:34 pm
Double post.
My answer is here.
http://www.sqlservercentral.com/Forums/Topic464002-338-1.aspx?Update=1
March 4, 2008 at 1:07 pm
Follow the link I posted. All you have to do additionally is use a derived column to create the filename. Like I said before you will have to...
March 4, 2008 at 1:06 pm
You can either do this via TSQL or SSIS. In SSIS, you need to create for each container. In the container you will set a variable to the...
March 4, 2008 at 12:57 pm
You can also just back it up to a UNC.
BACKUP DATABASE [Test] TO DISK = N'\\MyPath\Test.bak' WITH NOFORMAT, NOINIT, NAME = N'Test-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, ...
March 4, 2008 at 12:30 pm
March 4, 2008 at 12:25 pm
Do you use windows authentication? If so, all of your developers should be in a group. You could disable the login for that group.
Personally, I...
March 4, 2008 at 12:21 pm
Click on the source connections via the connection manager. Then look over at the properties at retain same connection. By default this is false.
March 4, 2008 at 12:00 pm
I think it should be DBCC SHRINKFILE ('Logfilename') to get the log file minimize to its size..
Yes it is.
Maybe I am missing something here but this sounds like...
March 4, 2008 at 11:28 am
Viewing 15 posts - 406 through 420 (of 1,156 total)