Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Opening Internet Explorer Using SQL-CODE Expand / Collapse
Author
Message
Posted Thursday, May 27, 2010 7:48 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, October 26, 2012 4:30 AM
Points: 11, Visits: 76
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.
Post #928980
Posted Thursday, May 27, 2010 8:04 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 11:55 AM
Points: 12,905, Visits: 32,165
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #928995
Posted Thursday, May 27, 2010 8:08 AM
UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: Tuesday, August 7, 2012 6:19 PM
Points: 1,480, Visits: 262
Did you tried this?
Exec xp_cmdshell '"C:\Program Files\Internet Explorer\iexplore.exe"'

Post #928999
Posted Thursday, May 27, 2010 8:18 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 11:55 AM
Points: 12,905, Visits: 32,165
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #929011
Posted Thursday, May 27, 2010 9:02 AM
UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: Tuesday, August 7, 2012 6:19 PM
Points: 1,480, Visits: 262
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
Post #929055
Posted Thursday, May 27, 2010 9:06 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 11:55 AM
Points: 12,905, Visits: 32,165
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #929062
Posted Thursday, May 27, 2010 10:59 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, October 26, 2012 4:30 AM
Points: 11, Visits: 76
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.
Post #929452
Posted Friday, May 28, 2010 1:29 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, October 26, 2012 4:30 AM
Points: 11, Visits: 76
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
Post #929497
Posted Friday, May 28, 2010 4:50 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 11:55 AM
Points: 12,905, Visits: 32,165
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #929575
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse