Calling Console Application that uses WebBrowser from SQL Server - Not Running

Hi there. I am working in a program automation that needs to get files from a website and put it in a database. It is done but as I need a console application and need webbrowser that comes from Windows Forms, I am trying to call it from the SQL Server using
the xp_cmdshell but when it runs the .exe, it execute the block that is before the Application.Run() command but when it reaches this line, it stay running on Task manager but it not execute my code. How can I fix this? I had first created a Windows form application
but it was not working anyway and then I tried a console application and then I use the [STAThread] and Application.Run(). At least it runs the file from SQL Server but is not executing all my code, I think that it stops on Application.Run() line. Any help
will be very useful.
Thanks for now.

Thanks for the response. What I mean is that it just run the part of the code that is just using the Console, that's the code:
// Main Method
[STAThread]
public static void Main()
clearDatabase(myConnection);
Console.Title = "Suframa Itens Robot";
//If log file exists, it is deleted
if ( File.Exists(@"suframaLog.txt") )
File.Delete(@"suframaLog.txt");
wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(loginWebsite);
try
//It is called as the program uses the WebBrowser Class from Windows Forms namespace
//and it is a console Application
Application.Run();
catch ( Exception ex )
Log(ex.Message);
As you can see, I call a function on start named ClearDatabase, when I call the file from sql server it executes, the tables are cleared, but what I think is that the problem stop when reach the line Application.Run() as it is the line that allows the remaining
code to execute as it uses events from WebBrowser class. 
It is a program automation that needs to get a lot of files from a website that needs login and read line by line from the files and put on server, if I call it from the executable it runs fine, the only problem is when calling from SQL Server, Do you know
how to fix this?
Thanks.

Similar Messages

  • Best practise for creating an application that connects to a SQL Server database

    I have created an application that connects to a SQL Server database and views information using a datagrid and performs several updates when a button
    is selected.  
    I have created a SQLcontrol.vb using the following code:
    Imports System.Data.Sql
    Imports System.Data.SqlClient
    Public Class SQlControl
    'connection 1
        Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
        Public sqlcmd As SqlCommand
        Public sqlda As SqlDataAdapter
        Public sqldataset As DataSet
        Public Function hasconnection() As Boolean
            Try
                SQLCon.open()
                SQLCon.close()
                Return True
            Catch ex As Exception
                MsgBox(ex.Message)
                Return False
            End Try
        End Function
        Public Sub runquery(query As String)
            Try
                SQLCon.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon.State
    = ConnectionState.Open Then
                    SQLCon.Close()
                End If
            End Try
        End Sub
        Public Sub runquery1(query As String)
            Try
                SQLCon1.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon1)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon1.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon1.State
    = ConnectionState.Open Then
                    SQLCon1.Close()
                End If
            End Try
        End Sub
    End Class
    A code for one of my button which views displays data grid contains the following code:
    Private Sub Button1_Click_1(sender As Object,
    e As EventArgs) Handles Button1.Click
            If SQL.hasconnection
    = True Then
                SQL.runquery("select 
    * from tablea")
                If SQL.sqldataset.Tables.Count
    > 0 Then
                    DGVData.DataSource = SQL.sqldataset.Tables(0)
                End If
            End If
        End Sub
    I am fairly new to vb.net and have read a few books and followed a few tutorials on youtube, what I would like to know is, are there any disadvantages
    to the way I have connected to a SQL database using the SQLControl.vb.  A lot of the vb books include data adapter and dataset within the form, I'm not sure if I'm following best practice by have the connection details outside of the form.
    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter
    and dataset.  It all works fine but I just wanted to know of any potential issues?
    Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
    Thanks

    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter and dataset.  It all works fine but
    I just wanted to know of any potential issues
    1) You are not using Sepration of concerns for a solution that is doing data access, like using a DAL.
    http://en.wikipedia.org/wiki/Separation_of_concerns
    2) You are directly issuing SQL commands at the UI, leading to sql injection attacks.
    3) You are not using a UI design pattern, which leads you to tightly couple database activity to the UI.
    http://www.codeproject.com/Articles/228214/Understanding-Basics-of-UI-Design-Pattern-MVC-MVP
    @System243trd, parameters are important to prevent SQL injection attacks (people will insert SQL commands into the database if you do not perform basic checking of what you are passing to the database). If you write a stored procedure try to make
    the variables the correct SQL server data type to avoid problems later of people trying to call it directly.  Darnold924 is right, I see no code to prevent against SQL injection attacks. In addition, during development in some instances LocalSQLDB
    database system is used and during deployment you usually need to use the production SQL server database. Moreover,  Linq-to-SQL is used on Windows Phone 8.1 and it is required for phone development later and so I highly recommend learning
    it if you plan on developing windows phone applications.
    @System243trd, If you want the code for the windows phone app I think it uses the MVVM model or that might be for universal apps or regular windows phone apps. I have been using the windows phone Silverlight pivot or panorama template (it might
    be pieces of both). I've already submitted to the windows phone marketplace and it had to go through certification first. I plan on later making an article on it but I need to first fix one or two simple problems I have with it.  Here's a link to
    the source code if you later want to look at the source code (in vb.net): 
    https://jeffsblogcodesamples.codeplex.com/downloads/get/1445836
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - Sherlock Holmes. speak softly and carry a big stick - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog
    - http://www.computerprofessions.us

  • Error Deploying Web application that Connects to MS SQL Server

    Hello I have Created a data Source that connects to a SQL Server Database and its conecting but whenever i try running the web server that contains a web page that accesses a Datasource (Microsoft) I get this error
    Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.microsoft.sqlserver.jdbc.SQLServerDriver
    06/04/26 12:26:37 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.microsoft.sqlserver.jdbc.SQLServerDriver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
    Even though I chose the option to Upload the library with the deployment, Do i have to manually load the SQL Server Libraries

    with com.microsoft.sqlserver.jdbc.SQLServerDataSource it does'nt get created.. with com.microsoft.sqlserver.jdbc.SQLServerDriver it does get created

  • JDeveloper 11.1.1.2.0 - Panel Dashboard using Data from SQL Server 2008

    Hi All,
    I am using JDeveloper 11.1.1.2.0 and am trying to create a cross application dashboard. This dashboard would show 2 panel's of data from an Oracle Database (Already completed this) and two panel's of data from a SQL Server 2008 Database.
    I have successfully installed a SQL Server 2008 database locally on my machine. I have downloaded the JDBC drivers from the Microsoft website and I have two JAR Files:
    * sqljdbc.jar
    * sqljdbc4.jar
    I have created a SQL Server connection within the JDeveloper connections panel and I can successfully query my database.
    I have created a New application module and set its connection to a JDBC connection with the credentials specified within the Connections tab. I then added the two JAR files as libraries to the Model project and
    ran the Application Module tester. This succesfully shows some records.
    Within the View Project I Created a new page and dropped the View Object on as a table. I then go to Run the page and get an error relating to the JDBC drivier not being found. I have read a few posts about adding it to Weblogic lib files and modifying the start up scripts but can anyone give me a definitive working solution? I also tried changing my Application Module to using a DataSource, but I also have the same problem within the Weblogic console (it cannot create a data source for SQL SERVER as it does not have the drivers).
    Any help is greatly appreciated.
    Thanks

    Thanks for the responses.
    I have edited C:\oracle\Middleware\wlserver_10.3\common\bin\commEnv.cmd to add the entries as follows...
    set WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%BEA_HOME%\utils\config\10.3\config-launch.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;%FEATURES_DIR%\weblogic.server.modules_10.3.2.0.jar;%WL_HOME%\server\lib\webservices.jar;%ANT_HOME%/lib/ant-all.jar;%ANT_CONTRIB%/lib/ant-contrib.jar;%WL_HOME%\server\lib\sqljdbc.jar;%WL_HOME%\server\lib\sqljdbc4.jar
    You can now see the additional entries at the end of the classpath.
    The Weblogic home is set as follows set WL_HOME=C:\oracle\Middleware\wlserver_10.3
    I have placed the files in C:\oracle\Middleware\wlserver_10.3\server\lib
    I restarted the server. Logged into the Weblogic console and tried to create a datasource with the Microsoft Drivers but still no luck. I gave the Oracle Microsoft Driver a go and it seemed to work! I'm guessing that there is a driver bundle in.

  • Migrating Functions that return TABLE from SQL Server to Oracle

    I have some functions in SQL Server that return a TABLE datatype. When these functions are moved to Oracle 9i using Migration Workbench, they give compilation errors. In the migrated function it says that the DDL stmt is passed to the ddl file, but the table is not created. I checked the ddl stmt for temporary tables and it is wrong. Its a create table stmt with no size for varchars and we can't even edit these stmts in the workbench.
    Also the migrated function has the table name for return type, which doesn't works in Oracle. Oracle needs a datatype to be returned from Oracle.
    How do we return a table from a function?

    Yes.
    If you do not enclose the object names (table/view/index etc) in double-quotes, they are stored in uppercase format in the data dictionary.
    If you enclose them in quotes, they are stored in the same case ans you entered. As such, while accessing such objects, you need to tell Oracle not to convert the names to uppercase, hence the requirement to supply the names in quotes.

  • Problems with loading source model using omw from sql server 7 into oracle 9i

    I am migrating data from sql servr 7 into oracle 9i. when doing capture phase i get the following error.
    ==>failed to load source model.[microsoft][odbc sql server][sql server]select permission
    denied on column 'password' of object 'syslogins', database master, owner dbo.
    Why is this so...is it bcz of something with my odbc link...
    also is there any way to load only tables and not system tables when doing capture phase.
    any help asap will be much appreciated.
    thanks

    Hi,
    You must ensure that you have the correct password to login to SQL Server.
    The Workbench requires some of the tables in the Master database.
    Regards
    John

  • Does MVC application that support membership require SQL Server installation when deploy on hosting server?

    Hi all,
    This is my scenario:
    I created a new MVC project using VS 2012, and this project supports membership registration through SqlProvider which store membership information into a built-in database that created by VS2012. The connection string that VS2012 set is to point to the
    file name (.mdf) directly within the project's App_Data folder. The project runs without problem on my local under the VS 2012 environment with Sql Server 2008 installed (however the database file can't open with SQL 2008 because it is created to work with
    SQL 2012 through VS 2012). My questions are:
    1. If I don't have Sql 2008 or Sql 2012 installed, will the project still work under VS 2012 environment?
    2. If I deploy the project to a new hosting server without Sql 2012 install, will the project still work under IIS environment?
    3. If I don't want to use Sql 2012 database, can I tell VS 2012 to create Sql 2008 database instead?
    Thanks,
    Sam

    Hello Sam,
    1. Only "particular", as soon as function tries to access the SQL Server database (file), the web site will fail
    2. See 1.
    3. Install an additional SQL Server 2008 instance and use that one
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Distributing an application that uses componentworks++

    I am new to using MS. 
    I am going to distribute a Visual C++ application to a remote site, sending the customer a DVD.
    The application is an MFC application that uses ComponentWorks++ (from Measurement Studio)  and NiDaq.
    What do I need to be able to distribute this application?  Do I need to license each  target for MS?  Do I need to separately install Component Works++ on the target?
    Thanks,
    Menchar

    I'm still having some issues ...
    We went ahead and used InstallShield 12.0 to create a release file (setup.exe).  We're using MS 1.0.1 so we didn't have merge modules, but rather a bunch of .ocx and .dll files in a /redist    folder that looks to be the stuff you distribute to get a ComponentWorks++ application deployed.  So we included all of those and InstallShield deployed them into the WinNT system folder.
    Our app also uses NI-DAQ 6.9, and my understanding is that NI-DAQ must be run on its own installer as provided by NI.  So we didn't include any NI-DAQ stuff.
    We tried testing our release on a WindowsNT virtual machine (clean machine).  We first installed NI-DAQ, then ran our app installer (setup.exe).  Install of NI-DAQ and our app appears to go OK, but when we run the application in the virtual machine it fails to start, giving us a popup that says it can't find the CVI rte!  We installed the CVI RTE just for giggles but it still died on startup.  Does NI-DAQ 6.9 use the CVI runtime engine?
    My question now is, can we expect our app to start on the virtual machine?  The app is designed to run without any NI-DAQ HW present.  I am able to run it on an XP machine without any NI-DAQ HW, but that machine also has ComponentWorks++ 1.0.1 installed, VC++ 6.0 SP 5, and NI-DAQ of course as well (but no NI DAQ HW), and I didn't install the application, I just ran the executable after building it on the XP machine.  The app also runs OK on the intended WinNT 4.0 target - but the target has NI-DAQ HW & SW, all of MS 1.0.1 (including CVI), and VC++ 6.0 SP5 installed.
    So I can't say I've been able to create a distribution that will install and run on a system that doesn't already have NI-DAQ, CW++ and VC++ installed.  I can't find any relevant help on the NI site for these old versions of CW++.
    I'm also curious if there's a dependency between CW++ and CW?  I.e., from a VC++ application, could it have a dependency on CW (my understanding CW is for VB only).
    I see what looks like a VC6 runtime of some sort in the CW /redist folder - is this an extension of the Microsoft VC runtme dll? 
    Thanks for any help with this, it's funky working with these old versions - I have to support some long-lived systems deployed overseas.
    Menchar

  • Migrating from SQL Server to Oracle - Emulating SQL Server databases

    I want to offer Oracle connectivity from an ADO.NET application that was developed for SQL Server. The application accesses multiple databases, each having the same schema but each storing different data that is confidential to the users of each database. I’ve been reading up on Oracle but have not yet found a way to group tables, views, etc. in a way that would emulate the ‘databases’ of SQL Server.
    The application currently uses the SQL ‘CREATE DATABASE’ command to generate each database and then populates each with the appropriate tables. However, CREATE DATABASE appears to work differently with Oracle, creating a new instance rather than a new ‘internal database’. I’m wondering if CREATE TABLESPACE would give me the functionality I’m looking for, if it were subsequently possible to refer to a specific table within a specific tablespace.
    I guess it comes down to whether it’s possible to access specific groups of tables, views, etc. within Oracle (e.g. Groups A, B and C, each having relational tables T1, T2 and T3, and be able to access and update data within any specific table, say, B-T2), while also being able to limit access to any of the Groups.
    Would ODP.Net offer advantages over the System.Data.OracleClient for this architectural problem?
    Any thoughts on how best to proceed would be most welcome. Thanks in advance for any ideas you might have.

    Sorry for the delay closing-out this thread but I work from a rural location and we lost our internet service for the two-weeks prior to the holidays. Now back on-line so let's wrap-up.
    Oracle and SQLServer are now both being accessed from my ADO.Net application, so a big thanks to all who've helped me with this first use of the forum. Hopefully these final comments might help someone else in turn...
    In migrating from SQLServer to Oracle I initially found it hard to stop thinking about accessing multiple databases on a single dataserver and start thinking more about a single instance of a database that supports muliple users, any one of which can be assigned the same schema. While I had used the SQL CREATE command to produce miltiple databases within SQLServer, it serves a completely different purpose for Oracle, creating an entirely new instance that I did not require.
    Other differences that I ran in to included Oracle utilizing 'sequences' to autoincrement identities, whereas SQLServer lets you specify the identify while creating a table (here SQLServer may simplify declaration but Oracle's approach may be more powerful, e.g. if the same identity applies across multiple tables). Also ADO.NET command parameters use an '@' prefix in SQLServer but ':' for Oracle. But by-and-large few changes were required to my SQL to get up and running with Oracle (I found the 'Oracle Database SQL Reference' useful but no substitute for logging into Oracle and just trying each string in the 'SQL Commands' area).
    Clearly I'm no database expert and I've barely scratched the surface with Oracle, but after logging in through the 'Database Home Page' I've found Oracle to offer a very 'clean' and logical interface that made it easy to move around the application and get a 'feel' for its organization and what it can do before digging furhter into the documentation. The 'Object Browser' is also a great way to quickly view and edit your various tables, views, sequences, triggers, etc., and ditto your data. In short, I think I'm going to like Oracle.
    Thanks again and bye for now.

  • How to move data from Sql Server 2008 R2 to Visual Foxpro 6.0 dbf file format

    I have some data that resides in SQL that needs to be automated via a SSIS package to create the output to a Visual Foxpro 6.0 format for use by another application that cannot access the SQL server.
    How can this be done with SSIS

    use the OLEDB provider from Microsoft http://www.microsoft.com/en-us/download/details.aspx?id=14839
    Arthur My Blog

  • Data length problem migrating from sql server 7 to oracle 8i

    I just migrated SQL Server 7 database to Oracle 8i db and everything seemed to have ran ok except that in my newly created oracle database, the field size is doubled. For instance a field with nvarchar(4) in sql server would convert to varchar2(8). Has anyone ran into this problem and also does anyone know how to fix it? Thank you so much.

    Hi Roberto,
    You cannot use Workbench 1.2.2 to migrate from SQL Server 7 to
    Oracle 8.
    However, the good news is that we have a new verion of the
    workbench that will have a plugin that can migrate from SQL
    Server 7.0 to Oracle8.
    A beta version will be downloadable from this web-site in approx
    one week. Eventhough this version is a beta version, it has
    undergone some rigourous testing and is very close to production.
    Regards
    John
    Roberto Werneck (guest) wrote:
    : I would like to know if it is possible to use the workbench
    : 1.2.2 to migrate from SQL Server 7 to Oracle 8. If possible
    what
    : kinds of problems would i probably have. If not, how can i get
    : the Beta version ?
    : Thanks,
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Can I preserve carriage returns in a string variable from SQL Server?

    I have an OLE data source that pulls data from sql server via a SELECT query.  One of the fields is an NVARCHAR(max) which goes into a string variable which is later used in an expression.  I am noticing that in the expression, carriage returns
    / line breaks in this field are being lost.  Does anyone know how I can preserve these in the expression?

    Thanks everyone for the suggestions.  I am certain there are both \r and \n in the database as when I print the field and then copy/paste to textedit to show the hidden characters, I can see both the CR and LF's.  
    I have implemented a workaround that is by no means elegant, but it gets the job done.
    I found that \r and \n will evaluate in an expression but if they are part of another string variable, SSIS escapes them. My workaround was to change my OLE_DB select statement (which fetches the custom SQL query) to explicitly change the hidden characters
    to '\r' and '\n' respectively:
    SELECT REPLACE(REPLACE([CUSTOM_SQL],char(13),'\r'),char(10),'\n')
    Then, in my SSIS expression, I de-escaped these characters:
    REPLACE(REPLACE(@[User::vAlertCustomSQL],"\\r","\r"),"\\n","\n")
    Now when the expression is executed, the SQL is formatted correctly and oddly placed comments in the query no longer break the query.  

  • Migrating from Sql Server 7 to Oracle 8

    I would like to know if it is possible to use the workbench
    1.2.2 to migrate from SQL Server 7 to Oracle 8. If possible what
    kinds of problems would i probably have. If not, how can i get
    the Beta version ?
    Thanks,
    null

    Hi Roberto,
    You cannot use Workbench 1.2.2 to migrate from SQL Server 7 to
    Oracle 8.
    However, the good news is that we have a new verion of the
    workbench that will have a plugin that can migrate from SQL
    Server 7.0 to Oracle8.
    A beta version will be downloadable from this web-site in approx
    one week. Eventhough this version is a beta version, it has
    undergone some rigourous testing and is very close to production.
    Regards
    John
    Roberto Werneck (guest) wrote:
    : I would like to know if it is possible to use the workbench
    : 1.2.2 to migrate from SQL Server 7 to Oracle 8. If possible
    what
    : kinds of problems would i probably have. If not, how can i get
    : the Beta version ?
    : Thanks,
    Oracle Technology Network
    http://technet.oracle.com
    null

  • SQL Server not releasing memory

    Hello,
    I have created one stored procedure, which inserts data into 1 table.
    It inserts around 1 million records at a time using XML input.
    Problem is with SQL server memory I think. When I run this stored procedure and check the performance in the morning when server is not so busy, it finishes with less than 10 seconds.\
    However, if I continuously test this stored procedure multiple times, it gives huge variation in performance.
    Also, I call this stored procedure from C# front and there I have made sure that I am disposing Connection object every time.
    After few runs, I have to restart my server computer as it doesn't allow me to run any of the query on that server.
    So my question is :
    What is that which occupies whole server memory?
    Is there any thing which I can write in stored procedure to release memory once it is done?
    Please assist me on this.
    Thank you,
    Mittal.

    Hello,
    I have created one stored procedure, which inserts data into 1 table.
    It inserts around 1 million records at a time using XML input.
    Problem is with SQL server memory I think. When I run this stored procedure and check the performance in the morning when server is not so busy, it finishes with less than 10 seconds.\
    However, if I continuously test this stored procedure multiple times, it gives huge variation in performance.
    Also, I call this stored procedure from C# front and there I have made sure that I am disposing Connection object every time.
    After few runs, I have to restart my server computer as it doesn't allow me to run any of the query on that server.
    So my question is :
    What is that which occupies whole server memory?
    Is there any thing which I can write in stored procedure to release memory once it is done?
    Please assist me on this.
    Thank you,
    Mittal.
    >> 1. What is that which occupies whole server memory?
    Probably your application or the other application, but this need to be checked and not guess! Your machine execute hundreds if not hundreds of thousands applications on the same time! most of them are services that you do not see any
    GUI. The SQL Server itself might execute hundreds if not hundreds of thousands transactions and these might interfere one another (lock tables or rows, use the same resources and so on).
    * as a first test you should try to execute the query using a more reliable application like the SSMS. I recommend to try execute the query throw the SSMS several times and check the behavior.
    >> 2. Is there any thing which I can write in stored procedure to release memory once it is done?
    There are several option to free memory that used by SQL Server, but do you really need it?!? This is probably not the solution for your case. in the best option it will only give you a workaround.
    * SQL Server do not use more resources that you let it (configure it). If you are using SQL EXPRESS than you have some limitations regarding the resources (for example memory and CPU and database size...).
    Make sure that you configure the SQL Server not to use to much resources, so that other applications like the operating system will have what they need! There is no logic in restart the machine if the only
    problem is with specific application (unless you have problems like memory leak which in rare cases can not be treat otherwise)
    http://mrbool.com/how-to-clean-up-memory-sql-server/29242
    https://msdn.microsoft.com/en-us/library/ms178067.aspx?f=255&MSPPError=-2147217396
    ** start monitor the SQL Server resources, locks and waits
    https://technet.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.brentozar.com/sql/locking-and-blocking-in-sql-server/
    *** Give us more information instead of stories :-)
    Post codes that you use, post DDL+DML and so on.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Right way to code an AIR application that uses sqllite database

    I am developing an AIR application that uses sqllite database.I want to know the correct way in which I should create the connections and SQLstatements according to MVC pattern.For example,whether i should have a single SQLStatement object for all my sql operations or I should use separate objects for insert,delete,select etc.I know how to open connection,execute statements and all,but i want to know the professional way of writing it.

    Make a controller for connect to db and save the connection in global varible (in model). Use this connection variable whenever u wanna execute the sql statements. Create seperate dao's for each table. Queries should be executed under the daos. You can call the method under the dao for execute the query from controller and show the result in view.

Maybe you are looking for

  • Interactive Report with PL/SQL Function Source

    Is it possible to create interactive report with PL/SQL function source returing a query? If not, has anyone done any work to simulate the interactive reporting feature for a normal report using API?

  • Adobe Reader X - cannot view local PDF's fully or web PDF's at all

    I have downloaded Adober Reader X onto my Windows XP IE v8 PC, yet I cannot fully open any PDF documents. On local PDF's I can see part of them, scroll up and down them, and print them though. When looking at local docs I can also see the desktop beh

  • Can't use camera in group call.

    I am unable to use my camera while in a group call. The camera works, but whenever i try to turn it on through the call quality tab it says that there are too many people in the call/conversation. Even though there are only three to four people activ

  • Mobile Me Gallery --- iCloud

    Is there something that is like the Gallery with MobileMe on iCloud? I like to post pics for family etc and Gallery was perfect for that.

  • Apps showing up twice in suggested apps for open with

    Brand new MacBook Pro with clean install of 10.8.2 (not restored from backup).  Had this thing for two days and today is the first time that I'm trying to use it.  Don't have a lot installed on it yet.  In other words, we're about best case scenario