Re: Text file to sql challenge...

From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 10/08/04


Date: Fri, 8 Oct 2004 08:27:33 -0400

THe crux of your problem is that the stored procedures ALWAYS run on the SQL
Server, so the context of the file system is the SQL Server. IF you Share
the directory and SQL has permision you may use a UNC name..... I created a
stored procedure several years ago which copied files from one server to
another... The SP generated a string with DOS copy commands and Exec'd it
from xp_cmdshell (by default only admins can use this function.)

-- 
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Anubis" <anubis@bluestreem.com.au> wrote in message
news:edYpQrSrEHA.2764@TK2MSFTNGP11.phx.gbl...
> Hello All,
>
> I pose this challenging situation to see if anyone has any suggestions as
to
> my solution:
>
>
>
> PROBLEM:
>
> Text files with dynamic name are stored on one of several web servers.
> Each web server accesses the same database.
> On the database there is a stored procedure which is called from the web
> server
> This procedure collects the information from the file located on the web
> server and inserts the information into a table.
>
>
> I have tried many different solutions to this situation however the only
> requirements are the following:
> The text files reside and must reside on each webserver
> The processing eg import from text file to sql table must be done via
stored
> procedure invoked by a web page on that web server.
> The text file names must remain dynamic as they are automatically
generated
> by each web service.
>
> Services:
> All web servers are IIS6 (Win 2003) on a single domain with active
> directory.
> SQL Server is the standard edition out of the box with SP3
>
>
>
> Any solutions people can come up with are most welcome!
>
> Thanks
> -Steve
>
>
>


Relevant Pages

  • Re: Challenging question
    ... use it as a stand alone db, but if you are using a Web Service, then I can't ... > SqlCe on my Handheld w/ some data downloaded onto it from Sql Server. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: On DataTable, two databases
    ... informations) through the web service to hide the complexity of the data. ... Half of the columns are taken from the 1st DB (SQL Server) and the other ... I've thought about the linked server functionnalities between the two sql ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web Service using Windows Authentication
    ... domain/login for the server. ... database access to the database your web service is using. ... >this user account in a SQL server, ...
    (microsoft.public.sqlserver.security)
  • RE: SBS 2003 Unable to connect to database STS_Config
    ... Uninstall the SQL server from the SBS 2k3 server from add/remove programs ... Uninstall Microsoft SQL Server Desktop Engine (SHAREPOINT) ... If AV software install any extra IIS virtual directory, ...
    (microsoft.public.windows.server.sbs)
  • Re: Memory issues with 64-bit SQL Server 2005 on 64-bit Win 2003 C
    ... I also checked the individual patch levels for the .NET drivers, SQL Server ... The SQL Server is fully patched, however Windows Update reported that the OS ... Lock pages in memory -- I guess you might have taken care of it as well. ...
    (microsoft.public.sqlserver.clustering)