Solved

xp_sendmail cant find the attachment

Posted on 2006-06-22
4
249 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now