SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Opening Internet Explorer Using SQL-CODE


Opening Internet Explorer Using SQL-CODE

Author
Message
kalrpuli
kalrpuli
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 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.
Lowell
Lowell
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28472 Visits: 39967
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!

Gopi Muluka
Gopi Muluka
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1646 Visits: 262
Did you tried this?
Exec xp_cmdshell '"C:\Program Files\Internet Explorer\iexplore.exe"'


Lowell
Lowell
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28472 Visits: 39967
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!

Gopi Muluka
Gopi Muluka
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1646 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
Lowell
Lowell
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28472 Visits: 39967
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!

kalrpuli
kalrpuli
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 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.
kalrpuli
kalrpuli
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 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
Lowell
Lowell
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28472 Visits: 39967
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!

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search