Server 2012 Event 307 - Printed Document Name

I created a printer monitoring system that pulls events from the event logs of a server and then compiles this information into reports.  I can tell how many pages printed per printer for a period of time, I can tell what users are my highest printers
and once in awhile for some reason I would actually review what was printed.
I use this data to determine when another printer is needed or not needed.  I used the printed document name to justify not replacing a $5000 color laser printer. because they printed personal stuff more than business. 
This process worked great until I installed Windows Server 2012, and I have tested this on Windows 8 and have the same result. (I only care about the server though.  ;) )
In the event log: Microsoft-Windows-PrintService/Operational
In server 2003, event 10: Had printed document name
Server 2008 and Server 2008 R2: Had printed document name. 
Why is this no longer there, or was this an oversight? 
I asked this at TechEd and there was not a Microsoft person there who could answer my question and they referred me to the forums.  Can someone tell me what I can do to turn this on, was this an oversight, bug, etc.
-------------------------------------------------- Michael Moore, MBA, MCITP, MCSE, MCTS, MCSA, MCP.

Hi,
What are the models of your printers?
I would like to confirm that have you update the printer drivers from the printer manufacturer for Windows Server 2012?
In addition, if you have Windows Server 2003, 2008, and 2012 in the same envirment? If so, you may try to get the event information from the previous operating system.
Regards,
Arthur Li
TechNet Subscriber Support
If you are
TechNet Subscriptionuser
and have any feedback on our support quality, please send your feedback here.
Arthur Li
TechNet Community Support

Similar Messages

  • KB fix for print document name in event logs on Server 2012 and Server 2012R2

    It appears as though the requested corrections to the documentation where never honored
    Note After you apply the hotfix or update, you can show the printed document name in the event by enabling a specific Group Policy.
    The policy name:
    Computer Configuration \ Administrative Templates \ Printers
    Allow job name in event logs 
    The Windows 8 / Server 2012 fix is:
    Event ID 307 does not show the printed document name in Windows
    http://support.microsoft.com/kb/2938013/en-us
    2012R2 is in the April Roll up.
    Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2 Update: April 2014
    http://support.microsoft.com/kb/2919355/en-us
    Alan Morris Windows Printing Team

    In my simple test, I see that the Group-Policy does exist on 2012R2 but not for 2012.
    I isolated the registry changes so I can update a 2012 only system... that text is below.
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows NT\Printers]
    "ShowJobTitleInEventLogs"=dword:00000001
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers]
    "ShowJobTitleInEventLogs"=dword:00000001
    I hope this helps others out since it took sometime to narrow this down. Thank you.

  • Printing document name and date with document

    hi all.
    former pc user here.
    is there a way to automatically print the name of a document and the time it was printed on documents that I print on the mac?
    how does this work?
    can i set it globally by printer driver?
    can i set it globally by software?
    or can i only set it by manually doing this on each document?
    thanks

    Here is a script which add automatically a date_time stamp to PDF created thru Print in a PDF file.
    --{code}
    --[SCRIPT ranger PDFs dans un dossier]
    Attach this folder action script to the folder in which "Print as PDF" store its files.
    It will move them in a storage folder with a date_time stamped name.
    Yvan KOENIG (VALLAURIS, France)
    2011/10/04
    -- two instructions used for tests
    set this_folder to ((path to desktop as text) & "PDFs recipient:") as alias
    set added_items to {((path to desktop as text) & "PDFs recipient:OS X Lion / à propos de Récupération Lion.pdf") as alias}
    on adding folder items to this_folder after receiving added_items
              set nom_du_dossier to "stamped PDFs"
    Build the path to storage folder *)
              if nom_du_dossier ends with ":" then
                        set dossier_de_stockage to "" & this_folder & nom_du_dossier
              else
                        set dossier_de_stockage to "" & this_folder & nom_du_dossier & ":"
              end if
    If the storage folder doesn't exist, create it *)
              tell application "System Events"
                        if not (exists folder dossier_de_stockage) then make new folder at end of folder ("" & this_folder) with properties {name:nom_du_dossier}
              end tell
    Main loop *)
              repeat with un_fichier in added_items
                        tell application "System Events" to tell disk item ("" & un_fichier)
                                  try
                                            set isPDF to type identifier is "com.adobe.pdf"
    If the file is a PDF, grab some infos *)
                                            if isPDF then set {the_ext, origName} to {name extension, name}
                                  on error
                                            set isPDF to false
                                  end try
                        end tell -- System Events
                        if isPDF then
    If the file is a PDF, move it to the storage folder with a date_time stamped name *)
                                  if the_ext is "" then
                                            set new_name to origName & (do shell script "date +_%Y%m%d_%H%M%S.PDF")
                                  else
                                            set new_name to (text 1 thru -5 of origName) & (do shell script "date +_%Y%m%d_%H%M%S.PDF")
                                  end if -- the_ext…
      do shell script "mv " & quoted form of POSIX path of un_fichier & space & quoted form of POSIX path of ("" & dossier_de_stockage & new_name)
                        end if -- isPDF
              end repeat
    end adding folder items to
    --[/SCRIPT]
    --{code}
    Attach it to the folder in which you send the PDFs created by Print in a PDF.
    Yvan KOENIG (VALLAURIS, France) mardi 4 octobre 2011 11:49:42
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Server 2012 gpo deploy printer connection failed.

    Run gpresult.exe /f /h gpresult.html from a command prompt on effected machines and look at what the problem is when applying that GPO.
    Post results if you need help understanding it.

    Hi, 
    I want to deploy 5 printers on a domain using gpo.I created a GP to deploy a printer connection to computers in an OU that contained only one computer. The GP also created a mapped drive for the user on the computer. The test was successful but when I added multiple printers and copied the GP to another OU the drive was successfully mapped on all machines but the printers did not appear in the list of printers available on the machines. I decided to remove the printers and place them in a separate OU but when I try to add the printers to the new OU I get an error stating "the specified domain either does not exist or cannot be contacted."
    Any help on this would be appreciated. Thanks in advance. 
    This topic first appeared in the Spiceworks Community

  • Unable to set (ssl) certificate on a SQL Server 2012 clustered instance

    Hello everyone!
    I'm trying to encrypt the SQL Server communication with SSL but I can't add the certificate in the configuration manager. I've found and tried a lot of different explaination but none of them worked. I'll described what I've done and hope someone will point
    out what I'm missing.
    Here is my situation:
    - SQL Server 2012 Enterprise Edition. Instance name = INSTANCE, FQDN =  SQINSTANCE.mydomain.com. The instance is running under a customized service account: mydomain\sql_sa
    - Two cluster nodes running Win Server 2008R2: NODE1.mydomain.com and NODE2.mydomain.com. Cluster itself is CLUSTER.mydomain.com
    What I've done:
    1) Asked the team in charge to generate a certificate issued to "SQINSTANCE.mydomain.com" with aliases to "NODE1.mydomain.com", "NODE2.mydomain.com" and "CLUSTER.mydomain.com". I get a certificate with "p7b"
    as extension
    2) Connect on "NODE2.mydomain.com" with account "mydomain\sql_sa". Opened MMC and added the certificate under "Personnal" folder. I tried to add it with "Current user" and "Local computer" settings. Saw both
    on internet since I use a specific service account
    3) Get the thumbprint of the certificate and add it under HKLM\Software\Microsoft\Microsoft SQL Server\MSSQL11.INSTANCE\MSSQLServer\SuperSocketNetLib\Certificate. (I triple checked to remove blanks or special characters)
    4) Reboot the node
    5) Open the SQL Server Configuration Manager, go to the network properties. Certificate does not appear in the list
    I tried to check with certutil and saw the certificate in the output. Some guys talked about some private key but I don't see this particularity in my situation. I tried to check if the certificate is valid and, according to the criterias, it is.
    Does anyone can help me with this?

    Hi,
    Are you sure you've got the certificate correct?  http://msdn.microsoft.com/en-us/library/ms191192.aspx
    To use encryption with a failover cluster, you must install the server certificate with the fully qualified DNS name of the virtual server
    on all nodes in the failover cluster. For example, if you have a two-node cluster, with nodes named test1.<your
    company>.com and test2.<your
    company>.com, and you have a virtual server named virtsql, you need to install a certificate for virtsql.<your
    company>.com on both nodes. You can set the value of the ForceEncryptionoption
    toYes
    In your case, shouldn't it be created for CLUSTER.mydomain.com?
    Thanks, Andrew
    My blog...

  • Print document's name in Event Log ID #307 on Server 2012

    Creating a new printer server using Windows Server 2012.  Everything is working out fine so far, however I just ran into one problem that didn't happen in our Server 2008R2 print server.
    When looking at print jobs that have completed under:  event logs --> Microsoft --> Windows --> PrintService --Operational, I have noticed that Event ID 307 is not displaying the printed document's name in Server 2012 (it did for Server 2008R2). 
    In Server 2012, the document name simply displays as "Print Document" instead of displaying the document's name.
    Anyone have any ideas on how to get the document's name to properly display in the event logs?
    Thanks for any help.

    Hi Alan,
    I have configured a Server 2012 R2 standard as print server to manage printers and Monitor the print usage of users, however I am not getting the Print logs (Event Log ID 307) in the default event logs directory on the print Server.
    I perform some search and come to know that it’s a known problem in Server 2012 and there is Hotfix available. I installed the Hotfix mentioned here
    http://support2.microsoft.com/kb/2938013/en-us , but still logs are not getting generated.
    I also made the below setting for the logs.
    Creating Registry entry
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows NT\Printers] "ShowJobTitleInEventLogs"=dword:00000001
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers] "ShowJobTitleInEventLogs"=dword:00000001
    The policy name: Computer Configuration \ Administrative Templates \ Printers
    Allow job name in event logs
    Keep printed Docs setting is also enabled on all the printers installed on Print Server.
    Noting seems to be working here or am i doing something wrong here.
    Regards
    Mukesh

  • Remote Desktop local printer redirection problem - Server 2012 Foundation

    Hi,
    I am trying to print from Windows Server 2012 Foundation to my local printer hosted on Windows 7.
    When I enable local resources in the RDP client, I can see my printers on the server like redirected. All seems like no problem occured. But only print does not work. ;-)
    I can see the document name in the queue with Error status.
    I tried set up GP with disabling Easy print, the drivers are identical on both machines, event logs are clear.
    The server is freshly installed, running only File server role. No Domain controller role is set. No Terminal Service is set (i think in Foundation is it not possible), only allowed RDP.
    RDP client is the newest. I have not any problem to print from other servers (WS2003, WS2008R2) using this printer. Everytime is the printer automatically redirected to TS*** port and works.
    I spent few hours searching solution with no effect.
    Any idea? Many thanks!

    Hi,
    Did you find any error message during this issue?
    Please check you have enabled necessary port for printer redirection on server side. You can check “Do not allow client print redirection” is disable under GPO setting. Also the user must have enough permission to print the document. Please check below link
    for more information.
    1. Terminal Server and Printer Redirection
    2. Five reasons printer redirection causes Windows printing problems in RDS
    Hope it helps!
    Thanks,
    Dharmesh

  • Print Server 2012 R2

    Hi,
    I am planning to implementation of Print server 2012 r2, but I am little confusion, below futures are available in 2012 r2?
    Machine Name
    User Name
    Document Name
    Date /Time
    Printer Name
    Page count 
    Limitation of printing 
    Thanks,

    Hi,
    I am asking for below features
    Machine Name
    User Name
    Document Name
    Date /Time
    Printer Name
    Page count 
    Limitation of printing
    still can't understand clear...
    Best,
    Howtodo

  • Intermittent RDP Printing - Windows server 2012 R2

    On a server windows 2012
    R2 with any update installed, remote users
    can't print to redirected printersintermittently.
    In the event log, it is an event id
    372 with the following description:
    Unable to print the document Print Document
    owned by #username#on
    the printer #printername#on #servername#
    (redirected 3). Try to
    print the document again, or restart
    the print spooler.
    Data Type: RAW. Size
    of the spool file in bytes: 345 378.
    Number of bytes printed: 0.
    Total number of pages in the document: 1.
    Number of pages printed: 0. The client computer:
    \ \#rdp_servername#. Win32 error code
    returned by the print processor: 122.
    The data area passed to a
    system call is too small.
    I can't find any solution on the forums.
    Has anyone had similar experiences?
    thanks
    Roberto

    Hi Roberto,
    Thank you for posting in Windows Server Forum.
    This error might be caused by one of the following conditions:
    -  The printer is not reachable on the network
    -  Windows cannot allocate sufficient memory
    -  There was invalid or incomplete data received by the print spooler
    -  A driver upgrade failed
    -  There is a bad printer device driver
    Please check below article for more information.
    Event ID 372 — Print Spooler Status (For reference)
    http://technet.microsoft.com/en-us/library/dd393167(v=ws.10).aspx
    Hope it helps!
    Thanks,
    Dharmesh

  • Administrator cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2

    Hello, dear Colleagues.
    User with administrators rights cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2. 
    If to launch "Devices and Printers" on server, all printer properties on "Advanced" tab are inactive (see screen below). 
    But I can change it manually with "Print Management". Features become active.
    The main purpose - to uncheck "Enable advanced printing features"  with powershell
    scripts.
    $erroractionpreference = "continue"
    $colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
    ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
    If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
    Write-host $objPrinter.Name
    Write-Host $objPrinter.RawOnly
    $objPrinter.RawOnly = "True" # Untick and update the object in WMI
    $objPrinter.Put()
    It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error
    Exception calling "Put" with "0" argument(s): "Generic failure "
    At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
    + $objPrinter.Put()
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
    Can you help me with that? Look like somethings with rights.
    Thank you.

    Hello, Alan
    Morris.
    Thanks for your reply.
    I've tried to runs PS Script both locally and remotely, previously running Powershell ISE as Administrator.
    I've noticed interesting thing - if to
    check "Enable advanced printing features"
    manually thru Print Management snap-in, script works fine. But, time to time after some manipulations on print server, this advanced feature returns to enabled state automatically by system, I think. In this case PS Script does not work. Next, if to disable
    feature manually again (thru Print Management snap-in),
    and enable manually again, PS Script will work. Very strange situation.
    Thanks.

  • XML Schema Collection (SQL Server 2012): How to create an XML Schema Collection that can be used to Validate a field name (column title) of an existing dbo Table of a Database in SSMS2012?

    Hi all,
    I used the following code to create a new Database (ScottChangDB) and a new Table (marvel) in my SQL Server 2012 Management Studio (SSMS2012) successfully:
    -- ScottChangDB.sql saved in C://Documents/SQL Server XQuery_MacLochlainns Weblog_code
    -- 14 April 2015 09:15 AM
    USE master
    IF EXISTS
    (SELECT 1
    FROM sys.databases
    WHERE name = 'ScottChangDB')
    DROP DATABASE ScottChangDB
    GO
    CREATE DATABASE ScottChangDB
    GO
    USE ScottChangDB
    CREATE TABLE [dbo].[marvel] (
    [avenger_name] [char] (30) NULL, [ID] INT NULL)
    INSERT INTO marvel
    (avenger_name,ID)
    VALUES
    ('Hulk', 1),
    ('Iron Man', 2),
    ('Black Widow', 3),
    ('Thor', 4),
    ('Captain America', 5),
    ('Hawkeye', 6),
    ('Winter Soldier', 7),
    ('Iron Patriot', 8);
    SELECT avenger_name FROM marvel ORDER BY ID For XML PATH('')
    DECLARE @x XML
    SELECT @x=(SELECT avenger_name FROM marvel ORDER BY ID FOR XML PATH('Marvel'))--,ROOT('root'))
    SELECT
    person.value('Marvel[4]', 'varchar(100)') AS NAME
    FROM @x.nodes('.') AS Tbl(person)
    ORDER BY NAME DESC
    --Or if you want the completed element
    SELECT @x.query('/Marvel[4]/avenger_name')
    DROP TABLE [marvel]
    Now I am trying to create my first XML Schema Collection to do the Validation on the Field Name (Column Title) of the "marvel" Table. I have studied Chapter 4 XML SCHEMA COLLECTIONS of the book "Pro SQL Server 2008 XML" written by
    Michael Coles (published by Apress) and some beginning pages of XQuery Language Reference, SQL Server 2012 Books ONline (published by Microsoft). I mimicked  Coles' Listing 04-05 and I wanted to execute the following first-drafted sql in
    my SSMS2012:
    -- Reference [Scott Chang modified Listing04-05.sql of Pro SQL Server 2008 XML by Michael Coles (Apress)]
    -- [shcColes04-05.sql saved in C:\\Documents\XML_SQL_Server2008_code_Coles_Apress]
    -- [executed: 2 April 2015 15:04 PM]
    -- shcXMLschemaTableValidate1.sql in ScottChangDB of SQL Server 2012 Management Studio (SSMS2012)
    -- saved in C:\Documents\XQuery-SQLServer2012
    tried to run: 15 April 2015 ??? AM
    USE ScottChangDB;
    GO
    CREATE XML SCHEMA COLLECTION dbo. ComplexTestSchemaCollection_all
    AS
    N'<?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="marvel">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="avenger_name" />
    <xsd:element name="ID" />
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>';
    GO
    DECLARE @x XML (dbo. ComplexTestSchemaCollection_all);
    SET @x = N'<?xml version="1.0"?>
    <marvel>
    <avenger_name>Thor</name>
    <ID>4</ID>
    </marvel>';
    SELECT @x;
    GO
    DROP XML SCHEMA COLLECTION dbo.ComplexTestSchemaCollection_all;
    GO
    I feel that drafted sql is very shaky and it needs the SQL Server XML experts to modify to make it work for me. Please kindly help, exam the coding of my shcXMLTableValidate1.sql and modify it to work.
    Thanks in advance,
    Scott Chang

    Hi Scott,
    2) Yes, FOR XML PATH clause converts relational data to XML format with a specific structure for the "marvel" Table. Regarding validate all the avenger_names, please see below
    sample.
    DECLARE @x XML
    SELECT @x=(SELECT ID ,avenger_name FROM marvel FOR XML PATH('Marvel'))
    SELECT @x
    SELECT
    n.value('avenger_name[1]','VARCHAR(99)') avenger_name,
    n.value('ID[1]','INT') ID
    FROM @x.nodes('//Marvel') Tab(n)
    WHERE n.value('ID[1]','INT') = 1 -- specify the ID here
    --FOR XML PATH('Marvel')  --uncommented this line if you want the result as element type
    3)i.check the xml schema content
    --find xml schema collection
    SELECT ss.name,xsc.name collection_name FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
    select * from sys.schemas
    --check the schema content,use the name,collection_name from the above query
    SELECT xml_schema_namespace(N'name',N'collection_name')
    3)ii. View can be viewed as virtual table. Use a view to list the XML schema content.
    CREATE VIEW XSDContentView
    AS
    SELECT ss.name,xsc.name collection_name,cat.content
    FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
    CROSS APPLY(
    SELECT xml_schema_namespace(ss.name,xsc.name) AS content
    ) AS cat
    WHERE xsc.name<>'sys'
    GO
    SELECT * FROM XSDContentView
    By the way, it would be appreciated if you can spread your questions into posts. For any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Windows storage server 2012 share not connecting by share name but connecting thru IP address from windows XP machines

    We have a windows storage server 2012 (HP storage server) in our domain. All of sudden We had a issue, connecting the server shares using the share name only from XP machines, but it is connecting through IP address with a delayed response. We are getting
    the below error message from all the windows XP SP2 machines in our domain.
    "\\<share name> is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have a access permissions.
    Login Failure: The target account name is incorrect."
    But it is connecting while we are trying from windows 7 machines.  Also the other server shares (Windows 2003 server) are connecting without any issues using the share name. In addition to this we gave everyone permission for this share. And it worked
    well before but not now. Could you please suggest any solution for this complex issue?
    Thanks,
    UdayaKumar S

    Hi,
    We are getting the below critical alert mail often from our storage server. This could be the problem? 
    vent from Blade NODE01.*****.com, In Enclosure: EM-E83935ED70F6, Network Interface Lost Connectivity.
    Description: "A network interface has failed. An Ethernet adapter's status changed from OK to Error, or an Ethernet team's status changed to Error from another state."
    Source: CIM Indication from CSP Provider
    Date: 02-06-2014 Time: 18:52:26
    Blade: NODE01.****.com
    NetworkAddresses:
    Severity is Critical
    Recommended Actions: Check the network cables, switches, and hubs for the cause of the failure.
    Note: For More information please refer the Windows System Logs in the Event Viewer

  • Server 2012 - VSS Event ID 8194 - Unexpected error querying for the IVssWriterCallback interface. hr = 0x80070005 Access is denied

    I'm seeing an error popping up in the application log on both nodes of my Server 2012 cluster.  The events seem to occur when DPM begins a system state/bmr backup of the node.  The DPM Backups usually complete successfully, but over the course
    of a sync or consistency check this event might appear 8-10 times in the application log of the cluster node.  The event reads:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="VSS" />
    <EventID Qualifiers="0">8194</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-05-13T05:15:50.000000000Z" />
    <EventRecordID>11424</EventRecordID>
    <Channel>Application</Channel>
    <Computer>node1.domain.com</Computer>
    <Security />
    </System>
    <EventData>
    <Data>0x80070005, Access is denied.
    </Data>
    <Data>
    Operation:
    Gathering Writer Data
    Context:
    Writer Class Id: {e8132975-6f93-4464-a53e-1050253ae220}
    Writer Name: System Writer
    Writer Instance ID: {c9b83054-b318-4486-a5aa-6c36b591b3f8}</Data>
    <Binary>2D20436F64653A20575254575254494330303030313330302D2043616C6C3A20575254575254494330303030313235342D205049443A202030303030313631362D205449443A202030303031353238382D20434D443A2020433A5C57696E646F77735C73797374656D33325C737663686F73742E657865202D6B204E6574776F726B53657276696365202020202020202D20557365723A204E616D653A204E5420415554484F524954595C4E4554574F524B20534552564943452C205349443A532D312D352D3230</Binary>
    </EventData>
    </Event>
    If I run 'vssadmin list writers' after the backup job completes, all writers report their state as stable with no errors.  
    I came across this error recently when trying to troubleshoot another issue, but looking back, I can see that these have been going on for a while.  The first instance I see occurred in early March.  
    Any suggestions on what I can do to clear up this error?

    Please checked the ACLs:
    Takeown /f %windir%\winsxs\temp\PendingRenames /a
    icacls %windir%\winsxs\temp\PendingRenames /grant "NT AUTHORITY\SYSTEM:(RX)"
    icacls %windir%\winsxs\temp\PendingRenames /grant "NT Service\trustedinstaller:(F)"
    icacls %windir%\winsxs\temp\PendingRenames /grant BUILTIN\Users:(RX)
    Takeown /f %windir%\winsxs\filemaps\* /a
    icacls %windir%\winsxs\filemaps\*.* /grant "NT AUTHORITY\SYSTEM:(RX)"
    icacls %windir%\winsxs\filemaps\*.* /grant "NT Service\trustedinstaller:(F)"
    icacls %windir%\winsxs\filemaps\*.* /grant BUILTIN\Users:(RX)
    net stop cryptsvc
    net start cryptsvc
    Then please verified:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSS\VssAccessControl
    NT AUTHORITY;NETWORK SERVICE;LOCAL SERVICE are set to 1
    TechNet Subscriber Support in forum |If you have any feedback on our support, please contact [email protected]

  • Can't change printer port on Windows 8.1 and Server 2012 R2

    1. Install "Lexmark X646e Class Driver" using a in-box print driver (i.e. one comes with the Windows installation base) .
    2. Go to "Printer properties" -> "Port"
    3. Select a custom monitor port, and the following error occurs in Event Viewer.
    An error occurred while configuring print queue 'Lexmark X646e Class Driver'. Printer driver 'Lexmark X646e Class Driver' may not be used in conjunction with a non-inbox port monitor.
    Same steps applied on Windows 8 and Server 2012, and not issues found. The restriction/limitation is newly added in Window 8.1 and Server 2012 R2. 
    Changing to a custom monitor port after printer driver installation is very important for us.
    How can we solve or workaround the above issue, so it can behave like Windows 8 and Server 2012? 

    What Port Monitor just so I can bubble this information to some others?
    Alan Morris Windows Printing Team
    Hi Alan:
    We developed a custom printing system, which involved the following configurations:
    1. Create a custom port monitor on server 2012 r2.
    2. Change an existing print queue to use this custom port monitor, and share this print queue.
    3. All workstations will print to this shared print queue on the server.
    The goal is to manage/monitor the print information in StartDocPort for all printing for instance.  This is what we've been doing for a long time.
    Now we upgraded our system from server 2012 to server 2012 R2, but we can't change the port monitor to our ones anymore.
    I've tried the Type3 printer driver, such as Brother Color Type3 Class Driver, unfortunately it didn't work if the installation is using "Add a printer", and select the driver from the list.   
    The only way to make it work is to install the printer driver using the one downloaded from the vendor's website, this will bypass Windows "Add a printer". 
    Is there any chance we can make this to behave like server 2012 or earlier? Modify registry keys?
    Cheers
    Steven

Maybe you are looking for

  • My new iPod Touch 5g gets hung up when updating apps.

    The blue installation line freezes when complete and a duplicate app then appears. Solution?

  • Please help me: Failed 8310 OS update to OS 4.5 via Desktop Manager

    Hello BB Community, As of this morning, I can't use my Blackberry curve 8310......for anything. My problems started just as I was about to do a routine USB cable sync between my BB and Outlook. I was informed by Desktop Manager v 4.7 that OS 4.5 is a

  • POSSIBLE BUG in APEX Version 3.2 "Copy Page"

    Has anyone experienced an error in the *"Copy Lists of Values" step in the "Copy Page" application in 3.2*? I am experiencing a _"Report Error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small"_ sometimes when I copy a pag

  • OLAP variable for data selection

    hi all , can any own explain how the OLAP variable is used for data selection in the info package. how the value is changing in the Variable. thanks in advance rajan

  • Middle-click for pasting not working

    I'm not too sure what the problem is, but here's my setup: I've got X installed, with a minimal .xinitrc for wmii (following https://wiki.archlinux.org/index.php/Wmii) Right now, it's really just until wmii; do true done I've got the following in /et