Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Reading text file from SQL Jobs

Posted on 2008-06-20
1
Medium Priority
?
551 Views
Last Modified: 2013-12-07
I have a job running on SQL Server 2000 under SQL Server Agent. This job calls a component which in turn opens Internet Explorer and load a page by calling a method on the object. The code inside the job is:
-----
Dim MyCOM
 set MyCOM= CreateObject("ObjectName.ClassName")
MyCOM.loadIE  "PageName","ServerName"
set MyCOM= nothing
-----

The COM method accepts server name and the page name as its parameters. Currently I type in the sever name in the job. I need to make this server name dynamic. So I am planning to read this server name from a text file which I can store in a directory on the sever.
Can I use file system object to ready the server name from a text file and them pass it as a parameter to this COM method? If yes, how can I do that?
Any other idea to achieve my goal will also be appreciated.

0
Comment
Question by:rranjan7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
rranjan7 earned 0 total points
ID: 21832206
Never mind. I was able to figure this out by myself.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

688 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