SQL Server Database - Transaction logs growing largely with Simple Recovery model

Hello,
There is SQL server database on client side in production environment with huge transaction logs.
Requirement :
1. Take database backup
2. Transaction log backup is not required. - so it is set to Simple recovery model.
I am aware that, Simple Recovery model also increases the transaction logs same as in Full Recovery model as given on below link.
http://realsqlguy.com/origins-no-simple-mode-doesnt-disable-the-transaction-log/
Last week, this transaction log became of 1TB size and blocked everything on the database server.
How to over come with this situation?
PS :  There are huge bulk uploads to the database tables.
Current Configuration :
1. Simple Recovery model
2. Target Recovery time : 3 Sec
3. Recovery interval : 0
4. No SQL Agent job schedule to shrink database.
5. No other checkpoints created except automatic ones.
Can anyone please guide me to have correct configuration on SQL server for client's production environment?
Please let me know if any other details required from server.
Thank you,
Mittal.

@dave_gona,
Thank you for your response.
Can you please explain me this in more details -- 
What do you mean by one batch ?
1. Number of rows to be inserted at a time ?
2. or Size of data in one cell does matter here.
As in my case, I am clubbing together all the data in one xml (on c# side) and inserting it as one record. Data is large in size, but only 1 record is inserted.
Is it a good idea to shrink transaction log periodically, as it is not happening itself in simple recovery model.
HI Mittal,
Shrinking is bad activity yu should not shrink log files regularly, in rare case if you want to recovery space you may do it.
Have manual chekpoints in Bulk insert operation.
I cannot tell upfront what should be batch size but you can start with 1/4 th of what you are currently inserting.
Most important what does below query return for database
select log_reuse_wait_desc from sys.databases where name='db_name'
The value it returns is what stopping the log from getting cleared and reused.
What is version and editon of SQl server we are talking about. What is output of
select @@version
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP

Similar Messages

  • SQL Server transaction log not truncating in simple recovery model mode

    The transaction log for our SQL Server database is no longer truncating when it gets to the restricted file growth limit set by the autogrowth settings. Previously - as expected - it would reach this limit and then truncate allowing further entries. Now
    it stays full and the application using it shuts down. We are using 2008 R2 and the recovery model is set to simple. Is this a known behaviour / fault which can be resolved ? Thanks.

    As already suggested check wait type in log_reuse_wait_desc from sys.databases and open transaction on the database.
    Also, check long running SPIDs are waiting for from sys.sysprocesses from wait_type column
    0 = Nothing - What it sounds like.. Shouldn't be waiting
    1 = Checkpoint - Waiting for a checkpoint to occur. This should happen and you should be fine - but there are some cases to look for here for later answers or edits.
    2 = Log backup - You are waiting for a log backup to occur. Either you have them scheduled and it will happen soon, or you have the first problem described here and you now know how to fix it
    3 = Active backup or restore - A backup or restore operation is running on the database
    4 = Active transaction - * There is an active transaction that needs to complete (either way -
    ROLLBACK or COMMIT) before the log can be backed up. This is the second reason described in this answer.
    5 = Database mirroring Either a mirror is getting behind or under some latency in a high performance mirroring situation or mirroring is paused for some reason
    6 = Replication - There can be issues with replication that would cause this - like a log reader agent not running, a database thinking it is marked for replication that no longer is and various other reasons. You can also see this reason and it is
    perfectly normal because you are looking at just the right time, just as transactions are being consumed by the log reader
    7 = Database snapshot creation You are creating a database snapshot, you'll see this if you look at just the right moment as a snapshot is being created
    8 = Log Scan I have yet to encounter an issue with this running along forever. If you look long enough and frequently enough you can see this happen, but it shouldn't be a cause of excessive transaction log growth, that I've seen.
    9 = An AlwaysOn Availability Groups secondary replica is applying transaction log records of this database to a corresponding secondary database
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • How can I get an accurate count of computers (workstations) logged in to my SQL Server database?

    We license our software by number of workstations.
    I have a query that I have used for years to get an accurate count of the workstations logged in to my SQL Server database. For simplicity, all users use the same login name/password. This is built in to the script that attaches to the DB. They
    have access only to that DB with the exception of
    USE [Master] GRANT VIEW SERVER STATE to MyUser
    The query that has been working is below:
    Basically this relies on the mac address (Master.dbo.sysprocesses.net_addre
    SELECT COUNT(Users) AS UserCount FROM (SELECT COUNT(Master.dbo.sysprocesses.hostname) AS Users FROM Master.dbo.sysprocesses LEFT OUTER JOIN Master.dbo.sysdatabases ON Master.dbo.sysdatabases.dbid = Master.dbo.sysprocesses.dbid WHERE (Master.dbo.sysdatabases.name = 'MyDatabase') GROUP BY Master.dbo.sysprocesses.net_address) AS UserCount_1
    ss), since both Workstation names and ip addresses can be duplicated.
    Recently this has stopped working at a number of customers. Suddenly individual workstations are showing multiple net addresses for the same workstation causing a substantial overcount of users. This may be related to SQL Server 2012 - not sure.
    What I need is a very reliable way to get a count of workstations logged in to my database.
    If anyone can tell me why I am suddenly getting multiple net_addresses for each workstation and how to prevent that that would be one possible solution.
    Otherwise if anyone can give me a rock solid way to get a workstation count other than the above that would be great. Our largest customer is 50 users by the way.
    Thanks in advance for any help.
    Kim

    I think your count is getting skewed because of duplicate rows in sysprocesses because of parallelism. Add DISTINCT to your query:
    SELECT COUNT(Users) AS UserCount
    FROM
    ( SELECT COUNT(DISTINCT Master.dbo.sysprocesses.hostname) AS Users
    FROM Master.dbo.sysprocesses LEFT OUTER JOIN Master.dbo.sysdatabases
    ON Master.dbo.sysdatabases.dbid = Master.dbo.sysprocesses.dbid
    WHERE (Master.dbo.sysdatabases.name = 'MyDatabase'
    GROUP BY Master.dbo.sysprocesses.net_address) AS UserCount_1
    Satish Kartan www.sqlfood.com

  • Connection with MS -SQL server Database

    Hi Experts,
    We are new with Oracle SES.
    We have created one table in MS SQL server 2005 in testing database called as Northwind, table is EMPdate with adding required column name as "URL","KEY","CONTENT","LASTMODIFIEDDATE","LANG".
    Now we create database source in Oracle SES by giving following things
    Database Connecting String: jdbc:sqlserver//<Loaclhost>:1433;databasename=Northwind
    UserId:
    Password:
    Query: Select URL,KEY,CONTENT,LASTMODIFIEDDATE,LANG,'text/html' CONTENTTYPE from EMPdate
    path separator: #
    Document Count : -1
    Parse Attributes :false
    And create Source & when we run schedule on this datadase source we got error that "invalid SQL command"
    Please can you provide sequence of steps to create MS SQL Server database source & generate the statistics.
    Thanks

    Hi,
    Thanks for the response.
    Running the Schedule for Stats collection -- I mean,the Schedule step whcih could be the immediate step just after database source creation
    The Crawl of the SQL Server not succeeded is Crawl Error
    which is located in C:\oracle\product\10.1.8\oradata\ses2\log direcory.
    We succeded with Web,ORACLE TABLE and FILE system sources as they were documented in the manual.
    Please Suggest all the steps to configure SQL server as Source
    Thanks in Advanace
    Cheers,
    Ramesh

  • How to view the login log in window NPS after login cisco switch and without SQL server database

    how to view the login log in window NPS after login cisco switch and without SQL server database
    in summary 
    there is only log with event id 4400
    A LDAP connection with domain controller XCPAWS20.cyberport.noc for domain NOC2 is established.

    Hi adil,
    For your issue, you can create a custom security token service (STS) and then set up a trust relationship between a SharePoint 2010 farm and the custom STS.
    For more information, you can refer to the articles:
    http://forums.asp.net/t/1335229.aspx?Sharing+Authentication+Ticket+Between+ASP+NET+and+Sharepoint
    https://msdn.microsoft.com/en-us/library/office/ff955607(v=office.14).aspx
    http://www.paraesthesia.com/archive/2011/02/01/working-with-windows-identity-foundation-in-asp-net-mvc.aspx/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Sql developer won't connect with SQL server database on cluster

    Hello,
    I have a microsoft SQL server database on a windows cluster. Name for this cluster is like XXX/YYY
    When I try to connect to this database with SQL developer, I get a failure, mentioning:
    "Status : Failure -Cannot connect to Miscrosoft SQL Server on XXX/YYY"
    As far as I know, I have installed the correct jtds driver (version 1.2.5), since I can connect to sql server databases on single server hosts.
    Does anyone know how to connect to databases on windows clusters?
    Edited by: Ingmar on Jan 16, 2012 4:08 PM
    Edited by: Ingmar on Jan 16, 2012 4:22 PM

    Hi Ingmar,
    Try this is in the port box
    1433/dbname;instance=YYY
    dbname can be omitted
    -Turloch
    SQL Developer team
    1/Giving an instance name in SQLDeveloper connection to SQL Server (from August 2011)
    MS SQL Server Connection
    The correct syntax to deal with this is in the port box
    1433/dbname;instance=instance
    dbname can be omitted
    2/cluster configuration (uses instance name)
    http://stackoverflow.com/questions/1160024/jdbc-connect-string-for-sql-server-cluster
    where vvv\iii is the cluster address: jdbc address is:
    "jdbc:sqlserver://vvv;instanceName=iii"
    3/jtds url details available in
    http://jtds.sourceforge.net/faq.html

  • Not able to connect with Sql Server Database

    Hi,
    I'm not able to connect with Sql Server database.during making connection I'm getting the following error:
    "Status : Failure -I/O Error: SSO Failed: Native SSPI library not loaded. Check the java.library.path system property."
    Please help
    Regards,
    Neeraj Goel

    Hi,
    I'm using Sql Server 2000.
    I downloaded the driver from the given site and still having the same problem. Do I need to copy the driver file in some specific folder.
    Regards,
    Neeraj Goel

  • Report with sql server database

    hi
    i m trying to create a report for sql server database
    first time it was developed successfully but when i tried to run it next time it throws error
    REP-4100 : Failed to execute data source
    JDBCPDS -62008 : SQL Server Error:
    S1000 [Microsoft SQL Server Driver] Connection is busy with results for another hstmt
    now today when i tried to develop a new report it shows two new errors:
    1.
    REP-4100 : Failed to execute data source
    JDBCPDS -62008 : SQL Server Error:
    S0002[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name
    2.
    REP-4100 : Failed to execute data source
    JDBCPDS -62008 : SQL Server Error:
    08S01[Microsoft][ODBC SQL Server Driver]Communication link failure

    Srini,
    yes you can use report Buider with Sql Server through jdbc driver.
    When you define the report datasource, you just have to set the JDBC conection infos.
    Patrick.

  • Connect a Microsoft SQL Server Database with eclipse

    Hi all,
    I am having problem to connect a Microsoft SQL Server Database with eclipse. Is it possible to do it? And could someone explain me how, please? When I want to create a connection from the data source explorer, I have in the list of connection only derby and jdbc. Is anything else that I have to download?
    Thank you in advance for your help.

    Just choose generic JDBC and locate/specify the driver yourself. Exactly the same as you would use when you wrote JDBC code yourself.

  • Connecting BO universes with SAP on a SQL server database

    Hello,
    The aim is to make a secured connection between a BusinessObjects universe and an SAP system that runs on a SQL server database.
    We will have in the nearby future 1 SAP system for several customers (SAP in the clouds). For those customers we want to maintain their BusinessObjects connection with the SAP system as it is for the moment. This means that the customers who are working with their current BO system (5.1.6) connect for the moment between BusinessObjects and their local SAP system  via the universe connection (Oracle driver and user). These customers should connect in the nearby future to a central SAP system and only be able to see the data of their own company (based on a client number). Iu2019m wondering if we could use the SAP-authorisation mechanism in order to do so. This would mean that we define an SAP user in SAP and that we define the same user in BusinessObjects and that there is a layer in between (cfr. The sap java connector) that allows a secure connection for a client to only its specific data (based on client number f.i.)
    Can you tell me if there exists already a solution for this for BO 5.1.6 or what is the pre-requisite in order to do so. I know that the Best Practices of SAP-Bo use already this kind of mechanism but then we talk about BO XI 3.0 and ECC 6.0 linked via a Java Connector. Does there already exists something like that for the connection between an SAP system (on a SQL server database) and a BusinessObjects 5.1.6 system.
    Thanks in advance for your answer.
    Thierry Renaer

    Hello,
    Thank you for your reply. And what about BO XI 3.0? What should we be using?
    Ik have been using the SAP Java Connector but I'm wondering if there exists more user friendly (read easily adaptable) tools in order to provide a secure connection between SAP BO XI 3.0 and SAP ECC.
    Many regards
    Thierry Renaer

  • Vix file in UI builder doesn't recieve data from Webservice application that communicates with SQL server database

    I have created Web service VI ("Prikaz insolacije.vi") which has two input string terminals (FROM / TO) for dates and two output terminals for data (1-D array) collected from database (MS SQL server). This VI communicates with database using functions from database palette with appropriate DSN and SQL query. There are two tables with two data columns (Time and Insolation) in Database.
    This VI works when you run it in Labview 2010, but when I used it as sub VI in UI builder it doesn't return any data.
    Could you please help me find a solution. Is it possible to communicate with SQL server database this way or there is another way?
    There are two attachmet files: Image of .vix file in UI builder and .vi file ("Prikaz insolacije.vi")
    Please help me ASAP!
    Thanks,
    Ivan
    Solved!
    Go to Solution.
    Attachments:
    vix file in UI builder.png ‏213 KB
    Prikaz insolacije.vi ‏35 KB

    Status is False and source string is empty. It behaves like there is no code in VI.
    I tried to access web service directly using following URL:
    http://localhost:8080/WSPPSunce/Prikaz_insolacije/2009-11-05/2009-11-01
    and it doesn' t work. It returns zeros.
    The response is:
    <Response><Terminal><Name>Insolacija</Name><Value><DimSize>0</DimSize></Value></Terminal><Terminal><Name>Vrijeme</Name><Value><DimSize>0</DimSize></Value></Terminal></Response>

  • Issue with connecting to SQL Server Database in 11g

    Hi
    We successfully created odbc connection say "Test" to read SQL Server database using odbc admin.The issue we are facing in 11g is, we are unable to import tables using the database connection "Test" in to Admin tool.
    In 10g we did not come across this issue. We used the same credentials and process incase of 10g and 11g to read SQL Server database, but we are facing the connection issues incase of 11g.
    Please, let us know is there any change need to be done to any config files or is there any way to overcome this issue.
    Thanks.

    Hi,
    What do you mean by 'we are unable to import tables using the database connection'
    Do you get an error message or the connection fails or what
    Please add the details about the issue in order to help
    Regards
    Adil

  • Connection of jtable of swing  with sql server database in netbeans 6.5

    i want to know how to retrieve values from sql server database in a jtable in netbeans 6.5 and i also want edit and delete buttons in in row so that by clicking on it a particuler record can be updated and deleted.please help me it is urgent

    Just in case anyone has the same issue:
    I found that latest JDK v 12 as some problems:
    http://www.nabble.com/Problem-Adding-Server-in-Server-List-td21810860.html
    I installed JDK update 11 and re-installed netbeans. Now everything is working fine.
    ~ Tushar

  • Error while invoking SQL Server Database

    hello all,
    please help me with this error...I have given the datasource name in the XA datasource tab of connection factory..
    <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [InsertData.ScsApTransactions]. Caused by weblogic.jdbc.sqlserverbase.ddc: [FMWGEN][SQLServer JDBC Driver][SQLServer]Invalid object name 'dbo.SCS_AP_Transactions'.. Please see the logs for the full DBAdapter logging output prior to this exception. This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "-208" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>[FMWGEN][SQLServer JDBC Driver][SQLServer]Invalid object name 'dbo.SCS_AP_Transactions'.</detail></part><part name="code"><code>208</code></part></bindingFault></bpelFault>
    Thanks,

    I figured out the solution for my problem today....
    I have not selected the option "support global transactions " for my Non-XA SQL Server datasource...now i can get the data from SQL Server Database...

  • Content database transaction log is full

    Hi guys,
    i am facing some very serious issues right here, SharePoint content can't be updated because the transaction log drive for the logs is full. the following message is displayed in the event viewer
    'The transaction for database wss_content_guid is full. To find out why space can't be reused see the log_reuse_wait_desc column in sys.databases'
    Pls help

    Hi,
    The recommended way to truncate the transaction log if you are using a full recovery model is to back up the log. SQL Server 2005 automatically truncates the inactive parts of the transaction log when you back up the log. It is also recommended that you pre-grow the transaction log to avoid auto-growing the log. For more information about growing the transaction log, see Managing the Size of the Transaction Log File (http://go.microsoft.com/fwlink/?LinkId=124882). For more information about using a full recovery model, see Backup Under the Full Recovery Model (http://go.microsoft.com/fwlink/?LinkId=127985). For more information about using a simple recovery model, see Backup Under the Simple Recovery Model (http://go.microsoft.com/fwlink/?LinkId=127987).
    We do not recommend that you manually shrink the transaction log size or manually truncate the log by using the Truncate method.
    Transaction logs are also automatically backed up when you back up the farm, Web application, or databases by using either the SharePoint Central Administration Web site or the Stsadm command-line tool. For more information about the Stsadm command-line tool, see Backup: Stsadm operation (Windows SharePoint Services).
    So I would suggest you backing up SharePoint by either the SharePoint Central Administration Web site or the Stsadm command-line tool.
    For more information about Best Practice on Backups, please refer to the following articles:
    Best Practice on Backups
    http://blogs.msdn.com/joelo/archive/2007/07/09/best-practice-on-backups.aspx
    Back up logs (Windows SharePoint Services 3.0)
    http://technet.microsoft.com/en-us/library/cc811601.aspx
    Hope this helps.
    Rock Wang
    Rock Wang– MSFT

Maybe you are looking for

  • EFI update today

    After doing the latest EFI update today my WiFi will not work

  • Want BW Report within Portal in Editable mode

    HI Gurus,               I hav created Bex Appln iView from Query string obtained from "Query Designer". Now I am able to view Selection screen. When I enter some values and execute Report gets generated. But this report is in Display mode.           

  • How do I save a Pages document as a PDF that allows whoever I send it to to edit/type in responses in certain areas?

    I am trying to create a PDF document using Pages '09 where whoever I sent it to can type in responses for certain things. It is like a workbook. However, I created a document with various text boxes, saved it as a pdf, and then opened it. I was unabl

  • Quantity recource related billing

    Hello, i have an issue with the billing quantity. At first i´m creating a sales order with quantity 1 (service material) for a WBS element. The second step ist the billing request (DP91), and the quantity is ok. I´m using doctyp L2 and kondition EK01

  • JRE and EBS 12.1.2/3

    APPS - 12.1.2 (upgrade to 12.1.3 in QA testing) APPS Tier hardware - Linux x86_64 - SLES 10 SP2 DB - 11.2.0.3 - zLinux - s390 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ My next question is about JRE and the recent updates/vulnerabilities published by Oracl