Viewing 15 posts - 181 through 195 (of 541 total)
Ah, vb...
'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************
Function Main()
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(DTSGlobalVariables("ImportFile").Value) then
Set f = fso.GetFile(DTSGlobalVariables("ImportFile").Value)
msgbox("File Size: " & f.size/1000 & " KB")
set f = Nothing
End If
set fso...
March 4, 2005 at 12:54 pm
"First of all get rid of the Data Driven Query task".
Word...those things are utter crap. If you follow phillcart's advice your processing will be much faster, and you will be...
March 4, 2005 at 12:39 pm
I would greatly caution you against using the temp table. Check out the two scripts below; the 1st set of statements costs 30% of the total cost. This will scale to larger recordsets...
March 2, 2005 at 6:59 pm
Just an FYI, but the seed value is just that...as seed that is used the first time only. The increment is always applied to the last id generated, no matter...
March 2, 2005 at 6:19 pm
Or you can just run this statement:
delete c1
From company_contact c1
JOIN company_contact c2
on c1.company_ID = c2.Company_ID
and c1.contact_type_id = c2.contact_type_id
and c1.contact_name = c2.contact_name
where c1.contact_id > c2.contact_id
March 1, 2005 at 12:15 pm
Yeah, that's what I figured...one of those hard-to-catch bugs (somebody should tell Steve or Andy, but they probably can't fix the office plugin). can you see this?
February 25, 2005 at 3:18 pm
Put your logic in a stored procedure and call that from vb. What you are trying to do it possible, but much more difficult in VB then using tSQL.
cl
February 25, 2005 at 2:58 pm
Testing....do you see the picture below? I used the "Image Insert" option at the top.
February 25, 2005 at 2:54 pm
Good job, PW; you get one "WOW" point.
Spreading the gospel of set based processing.
cl
February 25, 2005 at 12:34 pm
to create the first version of the DTS command string, use <SQL Install Root>\80\Tools\Binn\dtsrunui.exe; it's much easier to set it up that way. Then follow the advice above, substituting the...
February 25, 2005 at 12:27 pm
"Could someone elaborate on the staging method and can this be done real-time rather than batch?"
It can, but it would not be something from within SQL 2K. As far as...
February 24, 2005 at 12:54 pm
I've run into this problem before. You'll see a similar error if you try to open up a DTS package with OLAP processing in it on a SQL Server that...
February 22, 2005 at 7:11 pm
Here's a clever solution (now that you already have one . But this works for all cases.
Under your SQLServer install, execute the utility called...
February 18, 2005 at 11:57 am
Viewing 15 posts - 181 through 195 (of 541 total)