Does SQL Server remember dropped databases?

Hi!,
I need to create reports that will tell me the number of databases that are created and dropped across our estate on a daily basis. I don't need to recover the databases, just report their name and the date created & dropped.
Is that info stored in SQL Server anywhere?
Thanks,
Zoe

That information is available in the default trace (if enabled):
http://www.sqlusa.com/bestpractices/default-trace/
https://www.simple-talk.com/sql/performance/the-default-trace-in-sql-server---the-power-of-performance-and-security-auditing/
Kalman Toth Database & OLAP Architect
Free T-SQL Scripts
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Similar Messages

  • Insert and update tables from SQL server to oracle database tables

    Hi,
    I am having problem while update data from sql server to oracle database tables.
    I am doing one way insert +updates that is from SQL Server tables ==> Oracle database tables
    I am using tools Sql server Integration service. I can insert data from sql server to oracle but update can't. Please help me how can I update + insert from sql server to oracle database tables easily.
    Thanks in advance.

    Hi,
    What about using Oracle SQL Developer for migration
    http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
    HTH

  • Does sql server could export a partition from a partition table ?

    Dear :
       Does sql server could export a partition from a partition table ? 
      For example, I need to export all old partition,which is '2013' and drop them.  It is easy in oracle. but how to do with sql
    server 2012 ?

    where do you want it to be exported to? Another server instance? if yes you can do piecemeal restore if partition is in a separate filegroup and you're on full recovery model
    http://msdn.microsoft.com/en-IN/library/ms177425.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Transaction accross multiple SQL Server 7.0 databases

    Does any body know which driver to use to perform distributed transaction accross mutiple SQL Server 7.0 databases invloving CMPs .
              Any help appreciated.
              [att1.html]
              

    Hi,
    You can perform this action with the Oracle Migration Workbench. Just install the Workbench on the same machine as your SQL Server database.
    You can then configure the workbench to point to the oracle database on your Sun machine.
    You can use the Oracle database on your Sun machine for both your destination database (the database to which you migrate your SQL Server schema and data) and workbench repository.
    In order to do this you will need to configure a tnsnames.ora entry. The tool that will do this configuration for you should be started up at the end of the workbench installation. It is a fairly straightfoward process.
    You then need to create a user in your oracle database that will store the workbench repository.
    Once you have comleted these steps you will be able to migrate SQL Server on NT to Oracle on Sun.
    It is exactly the same process as migrating to Oracle on NT except you are pointing the Workbench to Oracle on a Sun box.
    Regards
    John

  • Does Sql Server compartible with Citrix version 6.5 .?

    Does Sql Server compartible with Citrix version 6.5 .? provid link

    Hi Piya Sahu,
    You post the same question 3 times. Please avoid this practice on Forum, I 
    have merged the same thread. Thanks for your understanding.
    As other post, Citrix supplies to ensure compatibility with upcoming database releases. The following databases are supported for the XenApp data store, for example, Microsoft SQL Server 2005 SP4, Microsoft SQL Server 2008, and Microsoft SQL Server 2008R2
    and so on.
    For more information, you can review the following article about System Requirements for Citrix XenApp 6.5.
    http://support.citrix.com/proddocs/topic/xenapp65-w2k8/ps-system-requirements-w2k8-xa65.html
    There is an detail about hardware and software requirements for installing SQL Server. You can review it.
    http://msdn.microsoft.com/en-us/library/ms143506(v=sql.90).aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • I want to use the SQL Toolkit of NI and SQL Server as my databasis on a server. Do I need to install a client in each computer I want to handle the data into SQL tables or I need only a ODBC driver?

    I want to use the SQL Toolkit of NI and SQL Server as my databasis on a server. Do I need to install a client in each computer I want to handle the data into SQL tables or I need only a ODBC driver?

    You only need the ODBC driver on each computer. If you are distributing the SQL Toolkit app as an executable and do not install the whole toolkit on each computer, you'll need the SQL Toolkit support files. This is about a dozen files. You can get the list at http://digital.ni.com/public.nsf/websearch/b814be005f9da9258625658700550c75?OpenDocument.

  • How to store jpeg images in SQL server using NI database Connectivity Toolset. Can anyone please help me in this regard.

    Please tell how to store jpeg images in SQL Server using NI Database Connectivity Toolset.

    http://www.w3schools.com/sql/sql_datatypes.asp
    You setup a field as BLOB and store the binary of the picture there. Depending on the database it can be called differently as you can see in the link, in SQL server there's even a Image datatype.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How to connect java project to sql server 2008 r2 database

    i want to create an java application which has to create a database and later access it. My problem is that i am not able to connect sql server 2008 r2 database driver on to the netbeans.i have sql server 2008 r2 installed on my system.please
    suggest me the step by step procedure to establish the connection

    Hi ENG,
    To establish a connection to SQL Server from a Java project, you have to download the JDBC driver for SQL Server from
    here.
    After extracting the jar files(like sqljdbc.jar) from the above link, add the driver to the netbeansIDE.
    Test establishing a connection with the below Java Class.
    import java.sql.*;
    public class Test {
    public static void main(String[] srg) {
    String driverName = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; //load the jdbc driver
    String dbURL = "jdbc:sqlserver://localhost:1433; DatabaseName=test"; //connection string to the db hosted on localhost
    String userName = "sa"; //user name
    String userPwd = "123456"; //password
    Connection dbConn;
    try {
    Class.forName(driverName);
    dbConn = DriverManager.getConnection(dbURL, userName, userPwd);
    System.out.println("Connection Successful!"); //print Connection Successful! if connection establishes
    } catch (Exception e) {
    e.printStackTrace();
    A demonstration video from Youtube for you reference.
    Connect NetBeans Project with Microsoft SQL Server 2008 - YouTube
    Since this is a question regarding Java, I suggest you post your subsequent questions to a java dedicated forum. It is appropriate and more experts will assist you.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Migrating SQL Server 7.0 Database to Oracle8i Enterprise Edition

    Hello,
    I am running SQL Server 7.0 and Oracle8i Enterprise Edition on a
    Windows 2000 Server OS. I need to migrate the SQL Server 7.0 database
    over to Oracle8i side. I have tried the SQL Server 7.0 export utility
    and the Oracle8i import utility without much luck. I am now trying to
    use the Migration Workbench for version 8.1.7 and am having even less
    luck than the SQL Server 7.0 export utility. I have, also, tried
    downloading Oracle's latest ODBC driver for v8.1.7 without any luck.
    As far as I can tell, the problems are occuring with the BIT to
    NUMBER(1) conversions (the data is captured as 0s and -1s instead of
    0s and 1s) and the CROSS JOINs in the views.
    I have also been to the otn.oracle.com news groups and there doesn't
    seem to be much there either.
    Has anyone had any success with the Migration Workbench and if so, how
    many scripts, "massages", etc. needed to be done?
    I have only begun working with Oracle in the last 3 weeks and would
    TRUELY appreciate any help anyone can give me.
    Thank you in advance,
    Ferda Taylor
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Ferda Taylor ([email protected]):
    Hello,
    I am running SQL Server 7.0 and Oracle8i Enterprise Edition on a
    Windows 2000 Server OS. I need to migrate the SQL Server 7.0 database
    over to Oracle8i side. I have tried the SQL Server 7.0 export utility
    and the Oracle8i import utility without much luck. I am now trying to
    use the Migration Workbench for version 8.1.7 and am having even less
    luck than the SQL Server 7.0 export utility. I have, also, tried
    downloading Oracle's latest ODBC driver for v8.1.7 without any luck.
    As far as I can tell, the problems are occuring with the BIT to
    NUMBER(1) conversions (the data is captured as 0s and -1s instead of
    0s and 1s) and the CROSS JOINs in the views.
    I have also been to the otn.oracle.com news groups and there doesn't
    seem to be much there either.
    Has anyone had any success with the Migration Workbench and if so, how
    many scripts, "massages", etc. needed to be done?
    I have only begun working with Oracle in the last 3 weeks and would
    TRUELY appreciate any help anyone can give me.
    Thank you in advance,
    Ferda Taylor
    <HR></BLOCKQUOTE>
    Hi Ferda,
    Could you send a reproducable testcase to [email protected] along with the error.log file which is located in %ORACLE_HOME%/omwb/log/ directory.
    null

  • What is the correct wording to connect to an SQL Server Express 2014 database?

    I am connecting to an Access 2007 database:
    oleConnection = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\...\\Db.accdb");
    What is the correct wording to connect to an SQL Server Express 2014 database?
    bhs67

    Hello,
    Please make sure you change RemoteServer with the computer name of the intended SQL Server server.
    Make sure the SQL Server instance have enable TCP/IP and Named Pipes protocols. Use the following article to enable them:
    http://msdn.microsoft.com/en-us/library/ms191294.aspx
    Start SQL Server Browser Service using SQL Server Configuration Manager.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Replacing a SQL Server 2005 Express Database with a SQL CE 3.5 database

    I am just googling for the past few days to find out the answer to this problem..
    I have an app developed over few man-years of effort - with vb.net and SQL 2005 Express Db. Now we use VS 2010 sp1 with .net 3.5 sp1.  We have used plain T-SQL commands and the app was performing admirably well. The DB has about forty tables. The data
    volume is about 200 to 300 mb max - but mainly it stays about 50 to 60 mb in many places. We are also using XML data transfers to backup the data.
    Now we want to shift to SQL CE 3.5 or 4.0 - just to avoid the pain of SQL Express download and installation by the users. We have successfully created a 3.5 and 4.0 sdf files. But when we change the connection from a mdf file to the sdf file in the VS2010 settings
    area, it just goes fine - the connection string is accepted and the app starts. But we get the usual error no 26 - unable to locate the database file - and a five line message that it is not able to connect to the sql server.
    Are we missing something ? We have included the sqlce dll in the references.. but just not able to make the app connect to the sdf file..
    All the codes, datasets, adapters, queries are just intact in the app - but just we are not able to connect to the sdf database.
    We would appreciate help in this regard and also in doing a build with SQL Ce with Inno Setup which we have been using so long.
    Finally there is too much of SQL CEs around - but 3.5, 3.5 sp2 and now CE 4.0 seems to be ones to go in for. Which one is really the best for our app - 3.5 or 4.0 ?
    Thanks in advance.

    we change the connection from a mdf file to the sdf file ... All the codes, datasets, adapters, queries are just intact in the app...
    Agree with Erik, just changing the connection string don't work, you have to use data access components from
    System.Data.SqlServerCe Namespace instead of
    System.Data.SqlClient Namespace
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • SQL Server 2012 Deploy Database to SQL Azure...

    I have spent many days trying to copy a simple test database from my PC to SQL Azure but with little success.  Then I installed SQL Server 2012 and see a new task:
    Deploy Database to SQL Azure...  It looks like an automated extraction to DAC and then creating the Azure database all in one step.
    I was elated, but got hit with the following three types of errors.
    One or more unsupported elements were found in the schema used as part of a data package.
    Error SQL71564: The element Extended Property: [dbo].[Accounts].[Address].[MS_Description] is not supported when used as part of a data package (bacpac).
    Error SQL71564: Table Table: [dbo].[Activities] does not have a clustered index.  Clustered indexes are required for inserting data in this version of SQL Server.
    Error SQL71564: Element User: [NT AUTHORITY\NETWORK SERVICE] has an unsupported property AuthenticationType set and is not supported when used as part of a data package.
     (Microsoft.SqlServer.Dac)
    May I know what I can do on the on-premise database to rid of the first and third error?
    Thanks.

    Hello,
    1) Remove the Extended Property from the (?) column Address in table Accounts.
    BTW, for small databases it's sometimes easiere to generate a script for the database (and modify it slightly) instead of using the Wizard
    Olaf Helper
    Blog
    Xing
    What is Extended Property?   What is this .MS_Description?   I can't see it in the table designer or the Column Properties.  (I don't know whether this was corruption caused by Data Sync I used earlier.)  How do I remove it.
    Of all the methods of copying SQL Server to Azure SQL, this one gives the least mistakes.  If I can solve this Extended Properties thing hopefully I can migrate the database over.

  • DTS Import of MDB in SQL Server 2000 Drops Memo Field Data

    I have used DTS in SQL Server 2000 to import an MDB filed (MS ACCESS) of a table.  When the table is imported the primary key is lost and the memo field data is completely gone. 
    I use the tranformation option in the DTS wizard to add the primary key and make sure the data type for the memo field is varchar and has a size of 8000.  I need that large size since I am storing lots of html code. 
    When I preview the data I see the html code that is supposed to get imported.  However, when I return all rows from the table in Enterprise Manager the field is empty.
    So I tried to manually copy the data from the MS Access Database into SQL Server.  Could not figure out if SQL Server has an interface like MS Access to simply copy data into a table.  So I linked to the tables from MS Access to the SQL Server table. 
    When I opened the linked table I see the data in the description field.  However, if I return the rows from within SQL Server no data is present.
    I have some ASP code trying to read the data in the SQL Server table.  However, nothing is returned and when I run the SQL Statement, nothing gets returned.  The SQL statement returns all rows.  All the other data is present but nothing in the description field. 
    What am I doing wrong?  Any suggestions anyone, please!
    TIA 

    It is important to know the version of MS Access. I will recomend you to use nvarchar datatype instead of varchar. May be the description field contain unicode characters.
    Refer this link to understand more on datatype mapping between access source and sql server destionation.
    http://blogs.msdn.com/b/ssma/archive/2011/03/06/access-to-sql-server-migration-understanding-data-type-conversions.aspx?Redirected=true
    Regards, RSingh

  • Sharepoint 2013 SSRS Interaction with Sql Server 2012 Reporting Services connecting to Sql Server 2008 R2 database

    Hi
    I'm working on upgrading sharepoint 2010 to sharepoint 2013 with sql server 2008 r2. I've ran into some problems but have been able to get a test farm upgraded. However to run SSRS 2013 it seems Sql Server 2012 Reporting Services are required. Upgrading
    to a full sql server 2012 database isn't an option. I know that sql server 2012 reporting services can use sql server 2008 r2 as a catalog and content database so I was wondering could this be a workaround? Importantly would I need a separate machine/virtual
    machine to host sql server 2012 reporting services? or could it live on the sql server 2008 r2 machine? Any pointers appreciated. Thanks Dan

    Remember that SSRS must be deployed on the SharePoint server. Having said that, yes you can install SSRS 2012 SP1 on a server running SQL 2008 R2. And yes, you can use 2008 R2 as your Database Engine server while SSRS 2012 SP1 runs on the SharePoint server.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • SQL Server 2012 - Dropping Snapshots takes hours

    We recently did a SQL Server upgrade from 2005 to 2012. We have a nightly job that drops a snapshot of an active database. The snapshots gets created again later in the day. Before upgrading, in SQL 2005 the Job that drops the snapshots used to finish in few
    seconds. But once the server has been upgraded to 2012, the same job takes close to an hour to complete.
    The log files for the job contains a message "Nonqualified transactions are being rolled back. Estimated rollback completion: 0%. [SQLSTATE 01000] (Message 5060) Nonqualified transactions are being rolled back. Estimated rollback completion: 100%."
    This message is repeated several times. While monitoring the underlying database, we have found some blocking on the database during that time. But if I am correct, a blocking on the underlying database should not delay a statement to drop its snapshot. May
    I know if I am correct? If so, what could be the reasons for this delay after upgrading to 2012? Any missing settings at the server or database level? Thanks.

    Hi, Please check fot eh entire errors from the error log file. the error: "Nonqualified transactions are being rolled back. Estimated rollback completion: 100%." usually come with another statement like "Database 'MyDB' is already
    open and can only have one user at a time.", Another option might be right after the message that you post that you get "Cannot open backup device '<some path to a file> Not Found'". In short, we are missing part
    of the error massage :-)
    In the example above when you see "Database 'MyDB' is already open and can only have one user at a time." then the problem is pretty clear.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

Maybe you are looking for

  • Video doesn't play while audio does during playback

    I use FCE 1.0.1 and since I upgraded to Leopard I have had a little problem. When I put the video setting in Fire-Wire, it plays fine with audio playing through my camcorder. But when I put the video setting in Real Time to play the audio through my

  • Installing Actions in PSE 9 Downloaded from App Store

    Hi everyone, I'm seeing quite a few folks who downloaded PSE 9 from Mac's app store that can't install actions into PSE.  I've connected to their computers, unhid hidden folders, and looked for the navigation path I would have expected.  That doesn't

  • F110 for Accounts receivable

    Points available. <b>Is the F110 payment only used for outgoing payments? Can it  be used to process incoming payments from customers? If yes, how do we go about setting the config? Is it similar to the config used in FBZP?</b> Thanks in advance!

  • Exposé and MacBook Pro

    I just replaced my 2006 MacBook (white) with a 2010 MacBook Pro 13". I used to use F10 and F11 a lot for Exposé to either tile all the open windows for the current application or clear the screen. Now, on my new MBP, there is a dedicated key (F3) to

  • Regarding the path variable. somebody please help !!!

    I have a small problem, I have to change the path variable often. So I thought of creating two .bat files to change it when i needed. But the problem is in XP... set Path=%Path%;C:\myfolder; command doesnt seems to be working. Actually it doesnt chan