What about testing it on the server itself. Does the query succeed in 
the Query Analyzer?

I guess there you will get more information about any errors.

Greetings / GrĂ¼sse
Gert Franz
Customer Care
Railo Technologies GmbH
[EMAIL PROTECTED]
www.railo.ch

Join our Mailing List / Treten Sie unserer Mailingliste bei:
deutsch: http://de.groups.yahoo.com/group/railo/
english: http://groups.yahoo.com/group/railo_talk/



Robert Rawlins - Think Blue schrieb:
> Thanks AJ,
>
> SQL and CF are both on the same box for sure, are there likely to be any
> logs create anywhere by SQL that are likely to give me a better picture of
> what's going wrong?
>
> Thanks,
>
> Rob
>
> -----Original Message-----
> From: AJ Mercer [mailto:[EMAIL PROTECTED] 
> Sent: 23 April 2007 14:25
> To: CF-Talk
> Subject: Re: Bulk Insert
>
> The text file needs to be on the SQL server
>
> Is CF and MS-SQL on the same box?
> If not, you will need to get the text file onto the SQL Server.
>
> On 4/23/07, Robert Rawlins - Think Blue
> <[EMAIL PROTECTED]>
> wrote:
>   
>> Following on from my query this morning about the stored proc, I've
>> started
>> dabbling with the query in CF to start with, just as it feels more
>> familiar.
>>
>>
>>
>> I'm struggling to get the following piece of code working though:
>>
>>
>>
>>       <cfquery name="qCommitLogs" datasource="MyDSN">
>>
>>             BULK INSERT DeviceStaging
>>
>>             FROM 'D:\test.txt'
>>
>>             WITH (FIELDTERMINATOR = ',')
>>
>>       </cfquery>
>>
>>
>>
>>       <p>Done</p>
>>
>>
>>
>> This just returns a blank page, no error messages and nothing gets
>> inserted
>> into the database table. Both the TXT file and DeviceStaging are 4 columns
>> and the datatypes appear to match.
>>
>>
>>
>> 00:00:00:00:00,1,2007-01-01 12:00:00,1
>>
>> 00:00:00:00:00,1,2007-01-01 12:00:00,1
>>
>> 00:00:00:00:00,1,2007-01-01 12:00:00,1
>>
>> 00:00:00:00:00,1,2007-01-01 12:00:00,1
>>
>> 00:00:00:00:00,1,2007-01-01 12:00:00,1
>>
>>
>>
>> Columns are:
>>
>>
>>
>> MacAddress Varchar(50)
>>
>> Port TinyInt
>>
>> DateTime DateTime
>>
>> Class TinyInt
>>
>>
>>
>> Any ideas on where to started with this?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Rob
>>
>>
>>
>>
>>
>>
>>     
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276019
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to