Viewing 15 posts - 826 through 840 (of 1,347 total)
??
Not sure what your question is then. If the column is not-null and not identity, then you have to insert something into it. What you insert into it depends on...
December 16, 2005 at 4:05 pm
Important piece of info missing - is the column an Identity ?
December 16, 2005 at 3:29 pm
If it helps any, it's on my Sql2K install CD, under \devtools\include.
Been a while since I ran that installer, but I expect you need to select "Custom .." when running...
December 16, 2005 at 3:16 pm
Since the general approach here seems to be to use a sledgehammer to drive in a small screw, I'd suggest removing the sledgehammer (T-SQL) and using the appropriate screwdriver (VBScript).
If...
December 16, 2005 at 2:20 pm
I think you'll need to get into parsing the output of the FTP DIR command, then issue subsequent GETs based on that parsing.
December 16, 2005 at 2:14 pm
Also note, File.Copy() is a procedure.
That means you either use Call and parentheses, or you omit call and parentheses:
Call fil1.Copy("\\icmrecamo\Alertes\AlertesInvalides" & DateComplete & ".txt")
or
fil1.Copy...
December 16, 2005 at 1:02 pm
Then you're going to have to make your code more robust & report errors:
Set fil1 = fso.GetFile("\\icmrecamo\Alertes\ExportAlertes\AlertesInvalides.txt")
fil1.Copy ("\\icmrecamo\Alertes\AlertesInvalides" & DateComplete &...
December 16, 2005 at 12:59 pm
First off, you definitely need the SET.
Second, this does nothing but waste cycles:
Set oRS = CreateObject("Adodb.Recordset")
Set oRS= DTSGlobalVariables("RSTables").Value
oRS is a reference. When you set it to the results of CreateObject,...
December 16, 2005 at 12:14 pm
>>Isn't the less than pointless?
Why would it be pointless ? It depends on the functionality required. What if table2 represents some point in time, and you're trying to return all...
December 16, 2005 at 11:34 am
Check the user credentials of the login that SQL Agent is started under. Chances are it doesn't have necessary access permissions to a UNC share.
December 16, 2005 at 11:30 am
You're executing the dynamic SQL like this:
EXEC('INSERT INTO Project01tmp (' + @strColNames + ')SELECT '
+ @strColNames + ' FROM Project01PreTemp')
Try adding a PRINT statement to debug the contents of what's...
December 15, 2005 at 2:52 pm
To wildcard the filenames, you're going to have to use dynamic SQL to generate the appropriate OpenRowSet statement.
You can use DTS. Or you can use T-SQL.
Here's a T-SQL example:
-- A...
December 15, 2005 at 2:18 pm
So really, you need the intersection of column names between the 2 tables, right ? Only include a column in the Insert/Select statements if the column is in *both* tables...
December 15, 2005 at 2:10 pm
>>The IDENTITY values won't be in order of field2 and 4?
Yes, they will, as long as the table is pre-created and you use INSERT INTO ... SELECT FROM.
The problem occurs...
December 15, 2005 at 12:36 pm
I would check for SELECT's that use the TOP operator without an ORDER BY, where it is assumed (incorrectly) that records always come back in a certain order.
I would also...
December 15, 2005 at 11:31 am
Viewing 15 posts - 826 through 840 (of 1,347 total)