May 27, 2010 at 7:48 am
How to open internet explorer from sqlserver 2005 production server and it should automatically open for every 1 minute.Which procedure has to be used.
May 27, 2010 at 8:04 am
wrong tool for the job.
what are you trying to accomplish? is this a keep alive so your web page stays in the server cache?
what's wrong with calling iexplorer.exe from windows Scheduled tasks once a minute?
why must it be done in SQL?
i notice two different users are asking the same question...this is not a homework assignment, is it?
Opening IE With Sqlserver code
Opening Internet Explorer Using SQL-CODE
Lowell
May 27, 2010 at 8:08 am
Did you tried this?
Exec xp_cmdshell '"C:\Program Files\Internet Explorer\iexplore.exe"'
May 27, 2010 at 8:18 am
Gopi Muluka (5/27/2010)
Did you tried this?
Exec xp_cmdshell '"C:\Program Files\Internet Explorer\iexplore.exe"'
the problem with that is it will spawn an iexplorer instance, but not clean up after itself...after one hour, you'd have 60 instances of ie taking up memory, right? a whole day and 24*60 ie's that are not disposed of.
Lowell
May 27, 2010 at 9:02 am
totally agree with you..
SQL Server is not a correct tool for this kind of requirement, but I am suggesting him that it is possible to open a IE browser thru T-SQL
May 27, 2010 at 9:06 am
oh yeah we are on the same page. there's another thread on CLR that got me all excited becasue i got it to work to read a web page...for me, i added it and was using it to harvest info off the web.
i've also used Watin(Web Application Testing In .NET), which allows you to automate a web page by creating an Ie or FireFox isntance...you cna use it to fill out forms; that has a setting to destroy it's borwser on completion....
someone has a good signiture line aobut how SQL is like a hammer and using the right tools for the job...you can use it to saw boards in half, but you won't like the results.
Lowell
May 27, 2010 at 10:59 pm
That I am asking,i have given short assignment in my company that yu have to open internet explorer through sql-code in server.
gopi i tried using cmd_shell but no result.
i am thinking that there is must a procedure for opening internet explorer through sql-code.I am trying but not getting the exact code for that.
can we create package through active-x and write script and execute the code can we try this.
May 28, 2010 at 1:29 am
Some are saying that we can open IE with CLR. whats the CLR.Could any one please explain the process involved in CLR.
Thanks in advance
May 28, 2010 at 4:50 am
again, if you explain why you want to open IE thru sql and not other methods we could help you better. detailed info gets detailed answers...vague statements gets vague answers.
CLR is the ability to call .NET code you would have to write. It can use a large number of items/programs, I'd say it requires a decent amount of programming skills to use and deploy.
explain why you cannot use a scheduled task to simply call a specific web page?
Lowell
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply