Opening Internet Explorer Using SQL-CODE

  • 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.

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Did you tried this?

    Exec xp_cmdshell '"C:\Program Files\Internet Explorer\iexplore.exe"'

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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.

  • 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

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply