dbTalk Databases Forums  

Connect to Excel files from Diff locations?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Connect to Excel files from Diff locations? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ashok Gupta \(sujashi\)
 
Posts: n/a

Default Connect to Excel files from Diff locations? - 08-07-2003 , 05:06 AM






Hello,

I am working transforming data from multiple Excel files to SQL Server 2000.
Here is the setup:
1. My SQL Server is on a diff computer named DBServer
2. My computer is MyComp
I open the DTS in Enterprise manager from my computer and setup the DTS
package. When i setup connection to Excel, i need to select the Excel file,
the path I enter is ("c:\data\file.xls")
All is ok, and I run it successfully. I saved the package and over.

If i run this package from my computer then its ok, what if I got to some
other computer and run this? where will it find the file from (my comp is
switched off)? So the question is can I select a path (to excel file ) on
the DBServer? It doesnt allow, it picks from the local computer only. I copy
the file to DBServer and If i share the folder from the DBServer and connect
as \\DBServer\Data\File.xls it works. but is it appropriate (or the only way
out?) It means i need to copy all the files to server in order to access
them?

Thanks in advance
--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no rights.



Reply With Quote
  #2  
Old   
Ashok Gupta \(sujashi\)
 
Posts: n/a

Default Re: Connect to Excel files from Diff locations? - 08-07-2003 , 05:46 AM






Thanks for the reply.
So you mean to say I sd be using \\computer\path\file.ext type names for
location , right?
One more thing, if the the dts runs as a sheduled job in sql server in that
case the files will be searched relative to the sql server.

--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no rights.
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
If you ever access files you should use the UNC path and not drive
letters.
DTS will look for the file relative to the PC that pushes the GO button

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Ashok Gupta (sujashi) >" <<ashokghr/hotmail/com/> wrote in message
news:#vP$DuMXDHA.1620 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Hello,

I am working transforming data from multiple Excel files to SQL Server
2000.
Here is the setup:
1. My SQL Server is on a diff computer named DBServer
2. My computer is MyComp
I open the DTS in Enterprise manager from my computer and setup the DTS
package. When i setup connection to Excel, i need to select the Excel
file,
the path I enter is ("c:\data\file.xls")
All is ok, and I run it successfully. I saved the package and over.

If i run this package from my computer then its ok, what if I got to
some
other computer and run this? where will it find the file from (my comp
is
switched off)? So the question is can I select a path (to excel file )
on
the DBServer? It doesnt allow, it picks from the local computer only. I
copy
the file to DBServer and If i share the folder from the DBServer and
connect
as \\DBServer\Data\File.xls it works. but is it appropriate (or the only
way
out?) It means i need to copy all the files to server in order to access
them?

Thanks in advance
--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no
rights.







Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Connect to Excel files from Diff locations? - 08-07-2003 , 06:41 AM



Yes. Scheduled = On the server

http://support.microsoft.com/?kbid=269074

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Ashok Gupta (sujashi) >" <<ashokghr/hotmail/com/> wrote

Quote:
Thanks for the reply.
So you mean to say I sd be using \\computer\path\file.ext type names for
location , right?
One more thing, if the the dts runs as a sheduled job in sql server in
that
case the files will be searched relative to the sql server.

--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:OxRMh2MXDHA.2648 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
If you ever access files you should use the UNC path and not drive
letters.
DTS will look for the file relative to the PC that pushes the GO button

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Ashok Gupta (sujashi) >" <<ashokghr/hotmail/com/> wrote in message
news:#vP$DuMXDHA.1620 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Hello,

I am working transforming data from multiple Excel files to SQL Server
2000.
Here is the setup:
1. My SQL Server is on a diff computer named DBServer
2. My computer is MyComp
I open the DTS in Enterprise manager from my computer and setup the
DTS
package. When i setup connection to Excel, i need to select the Excel
file,
the path I enter is ("c:\data\file.xls")
All is ok, and I run it successfully. I saved the package and over.

If i run this package from my computer then its ok, what if I got to
some
other computer and run this? where will it find the file from (my comp
is
switched off)? So the question is can I select a path (to excel file )
on
the DBServer? It doesnt allow, it picks from the local computer only.
I
copy
the file to DBServer and If i share the folder from the DBServer and
connect
as \\DBServer\Data\File.xls it works. but is it appropriate (or the
only
way
out?) It means i need to copy all the files to server in order to
access
them?

Thanks in advance
--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no
rights.









Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Connect to Excel files from Diff locations? - 08-07-2003 , 06:42 AM



Right Click on the Data Transformation Folder in EM | Open Package |
Navigate to the file and double click it | Enter the password given for it
on the website.



--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Ashok Gupta (sujashi) >" <<ashokghr/hotmail/com/> wrote

Quote:
One more thing, I have just checked your sample regarding importing named
range. I got .dts file in the zip file I have downloaded, can u tell me
how
to use this .dts file???? I am using SQL Server 2000 client on Win XP. SQL
Server is running on Win 2K

--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:OxRMh2MXDHA.2648 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
If you ever access files you should use the UNC path and not drive
letters.
DTS will look for the file relative to the PC that pushes the GO button

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Ashok Gupta (sujashi) >" <<ashokghr/hotmail/com/> wrote in message
news:#vP$DuMXDHA.1620 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Hello,

I am working transforming data from multiple Excel files to SQL Server
2000.
Here is the setup:
1. My SQL Server is on a diff computer named DBServer
2. My computer is MyComp
I open the DTS in Enterprise manager from my computer and setup the
DTS
package. When i setup connection to Excel, i need to select the Excel
file,
the path I enter is ("c:\data\file.xls")
All is ok, and I run it successfully. I saved the package and over.

If i run this package from my computer then its ok, what if I got to
some
other computer and run this? where will it find the file from (my comp
is
switched off)? So the question is can I select a path (to excel file )
on
the DBServer? It doesnt allow, it picks from the local computer only.
I
copy
the file to DBServer and If i share the folder from the DBServer and
connect
as \\DBServer\Data\File.xls it works. but is it appropriate (or the
only
way
out?) It means i need to copy all the files to server in order to
access
them?

Thanks in advance
--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no
rights.









Reply With Quote
  #5  
Old   
Ashok Gupta \(sujashi\)
 
Posts: n/a

Default Re: Connect to Excel files from Diff locations? - 08-07-2003 , 06:55 AM



Well Well, I scanned almost all the menus, sub menus there but seems like
that got skipped.......amaging.

Thanks

--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no rights.
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Right Click on the Data Transformation Folder in EM | Open Package |
Navigate to the file and double click it | Enter the password given for it
on the website.



--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Ashok Gupta (sujashi) >" <<ashokghr/hotmail/com/> wrote in message
news:uz3LTFNXDHA.1204 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
One more thing, I have just checked your sample regarding importing
named
range. I got .dts file in the zip file I have downloaded, can u tell me
how
to use this .dts file???? I am using SQL Server 2000 client on Win XP.
SQL
Server is running on Win 2K

--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:OxRMh2MXDHA.2648 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
If you ever access files you should use the UNC path and not drive
letters.
DTS will look for the file relative to the PC that pushes the GO
button

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Ashok Gupta (sujashi) >" <<ashokghr/hotmail/com/> wrote in message
news:#vP$DuMXDHA.1620 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Hello,

I am working transforming data from multiple Excel files to SQL
Server
2000.
Here is the setup:
1. My SQL Server is on a diff computer named DBServer
2. My computer is MyComp
I open the DTS in Enterprise manager from my computer and setup the
DTS
package. When i setup connection to Excel, i need to select the
Excel
file,
the path I enter is ("c:\data\file.xls")
All is ok, and I run it successfully. I saved the package and over.

If i run this package from my computer then its ok, what if I got to
some
other computer and run this? where will it find the file from (my
comp
is
switched off)? So the question is can I select a path (to excel
file )
on
the DBServer? It doesnt allow, it picks from the local computer
only.
I
copy
the file to DBServer and If i share the folder from the DBServer and
connect
as \\DBServer\Data\File.xls it works. but is it appropriate (or the
only
way
out?) It means i need to copy all the files to server in order to
access
them?

Thanks in advance
--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no
rights.











Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.