Viewing 15 posts - 181 through 195 (of 223 total)
We do it like this:
Dim oFS
Dim gFile
Dim sFile
Dim oFolder
Set oFS = CreateObject("Scripting.FileSystemObject")
' Instatiate the Bulk Load object
Set objXMLBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad.3.0")
objXMLBL.ConnectionString = "provider=SQLOLEDB.1;data source=(local);database=your database name;integrated security=SSPI"
objXMLBL.KeepIdentity = False
objXMLBL.CheckConstraints =True
objXMLBL.SchemaGen =...
February 9, 2005 at 9:33 am
You could also try something like this,
INSERT INTO TABLENAME(COLUMN LIST)
SELECT * FROM OPENROWSET('MSDASQL', 'Driver={Microsoft Text Driver (*.txt; *.csv)};
DefaultDir=Path to File Here;','SELECT * FROM File Name Here ')
If this is...
February 3, 2005 at 7:51 am
Congrats Frank,
With all the posts you've put out I wasn't sure you had time for that 🙂
Four boys of my own (youngest being 10) and I can agree the time...
January 25, 2005 at 9:29 pm
Carl,
Here is a example from the Microsoft VBScript site that uses the Timer function. With a little modification it might do the trick for you.
The following example uses the Timer...
January 6, 2005 at 8:20 am
I haven't found anything yet that prevents execution of packages other than the password options. I would be very interested if someone does have a simple solution to this also.
Good...
January 6, 2005 at 7:59 am
Another option would be to use an ActiveX transform. In the transform use a Lookup query to validate the Brochure Code. Have an Error Function using an ADO connection to...
December 29, 2004 at 10:27 am
Here is a sample of how to do it (I hope it fits your needs).
FUNCTION MAIN() 'This would be the start of your function
DIM oPkg
DIM stpRecipient
Set oPkg = DTSGlobalVariables.Parent
'CREATE A...
November 18, 2004 at 9:37 am
This site has an example of passing Global Variables between packages - I use this method a good bit myself.
November 18, 2004 at 7:08 am
November 18, 2004 at 7:03 am
If you don't have access to VB and it is an ActiveX Script you can use the MsgBox to display values at given points.
November 5, 2004 at 8:01 am
If these are the only files in that folder I would setup a Global Variable to hold the path to the directory and then use the FileSystemObject to read in...
September 23, 2004 at 7:17 am
Tiago,
I did miss a ")" in the sample - sorry bout that.
Try this,
IF IsNull(DTSSource("Fld1")) = cBool(True) THEN
DTSDestination("Fld1") = " "
ELSE
DTSDestination("Fld1") =...
September 21, 2004 at 12:23 pm
Ramesh,
There is also a handy little tool available from http://www.sqldts.com called DTSBackup 2000, and the price is just right
September 21, 2004 at 7:32 am
Soumil,
There is some information concerning string lengths at http://www.sqldts.com that should help you.
September 20, 2004 at 12:50 pm
Ritesh,
The DTS wizard is copying (or at least trying to :angry the logins along with the tables. I would create a new DTS package...
September 17, 2004 at 8:21 am
Viewing 15 posts - 181 through 195 (of 223 total)