"oj" <nospam_ojngo@home.com> wrote in message
news:eRWUqPMgEHA.2812@tk2msftngp13.phx.gbl...
> Thanks for the update. I did not know such was even possible.
>
> "Anubis" <anubis@bluestreem.com.au> wrote in message
> news:%23$jGWDMgEHA.2908@TK2MSFTNGP10.phx.gbl...
> > Hello Oj,
> >
> > I have got the OPENROWSET to work however the URL couldn't have any sub
> > DIR's
> >
> > Database=http://server/folder <== Generated an error
> > Datebase=http://server/ <== Retruned the results as did
> > Database=ftp://server/
> >
> > This functionality seems to be built into this function however it
appears
> > as though is isn't documented.
> >
> > Thanks to all for your help!
> > -Steve
> >
> >
> >
> > "oj" <nospam_ojngo@home.com> wrote in message
> > news:OtEmHuDgEHA.3428@TK2MSFTNGP11.phx.gbl...
> > > OLEDB provider cannot reference an url as a datasource. Thus, you
cannot
> > > reference an url. The datasource has to be somewhere that sqlserver
> > > (executed under sqlserver service or proxy acct depending user's
> security
> > > level) can get to.
> > >
> > > 1. Read up on xp_cmdshell and pay attention to the proxy acct stuff;
> this
> > > should give you some understanding as to how sqlserver accesses
network
> > > resources.
> > > 2. Read up on sp_oa*; you can access external data on the web by
> invoking
> > > 'msxml2' provider.
> > >
> > >
> > > "Anubis" <anubis@bluestreem.com.au> wrote in message
> > > news:OD7GqPDgEHA.2908@TK2MSFTNGP10.phx.gbl...
> > > > Hello,
> > > >
> > > > Thank you to oj who helped me get this far...
> > > >
> > > > I have one final question remaining with the OPENROWSET function...
> > > >
> > > > SELECT *
> > > > FROM OPENROWSET ('Microsoft.Jet.OLEDB.4.0',
> > > >
> 'Text;Database=
http://192.168.0.50/Texts/;HDR=YES;FMT=Delimited','SELECT
> > *
> > > > FROM TextFile1.csv') AS TableA
> > > >
> > > > When I attempt to run this I get the following error:
> > > >
> > > > Server: Msg 7399, Level 16, State 1, Line 6
> > > > OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
> > > > [OLE/DB provider returned message: Internal internet failure.]
> > > >
> > > >
> > > > The URL is correct as I can successfully get the directory listing.
> > > >
> > > > Any help with this would be great, however just to answer your
> > > questions...
> > > >
> > > > No, I can't simply use a directory listing such as C:\Texts\ or
> > > \\MyPC\Texts
> > > > as these are unavailable in my situation.
> > > >
> > > > Thanks
> > > >
> > > > -Steve
> > > >
> > > >
> > >
> > >
> >
> >
>
>