Solved

xp_sendmail cant find the attachment

Posted on 2006-06-22
4
254 Views
Last Modified: 2008-01-09
hi experts,

i developed a vb apps that creates an excel file containing data from various sources.  the end of that vb apps is to write something into an SQL table.  that sql table has an insert trigger.  all the trigger does is to email the excel file that was created to someone.

i tested the apps and it went fine.  when i transferred the apps to the production server which is in a citrix environment that's when the problem started.  it can't find the attachment.  the vb apps creates the excel file in the same pc where the application was ran.  the sql server resides in a different pc.  i tried creating the file in the same location as the sql server but i cant access that server from the citrix box.  

does anyone have any idea?

thanks and regards.

ann
0
Comment
Question by:wala_lang
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
kenpem earned 125 total points
ID: 16967043
Speak to your network administrator. Find out where the drive is mapping to, and make sure you're allowed access to it.
0
 
LVL 12

Expert Comment

by:ill
ID: 16967237
1. create a share on pc where application run,
2. give access for this share to acoount sql server is running under,
3. reference attachment with full network path e.g. \\PC_01\excel_share\workbook1.xls
0
 

Author Comment

by:wala_lang
ID: 16980427
i tried referencing the file using the full network path but SQL is still unable to access it.  i would just like to point out that the citrix environment resides in a separate box that is not part of the network.  it can access the data from the sql server because the admin opened up port 1433 and i used that port in my connection string.
0
 
LVL 12

Expert Comment

by:ill
ID: 16990053
there must be some path where both, your PC and citrix box, have access.You really have to contact admin in this case.
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question