DB Deploy to Azure from SSMS 2012 keeps failing

I have been attempting to deploy an existing test db from my local SQL Server 2012 instance (LocalDb) to azure using the SSMS 2012 Deploy to Azure tool.  I keep getting this error:
I assume there is something wrong with the Azure user permissions not allowing the user creation?  If so, how I fix.  if not, what else should I check?
Simon.

Hi Simon,
Please refer to the following statement to query the database user and role:
select m.name as Member, r.name as Role
from sys.database_role_members
inner join sys.database_principals m on sys.database_role_members.member_principal_id = m.principal_id
inner join sys.database_principals r on sys.database_role_members.role_principal_id = r.principal_id
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support

Similar Messages

  • Messages from my iPhone keep failing, I can't receive texts either - any ideas?

    Messages from my iPhone keep failing, I can't receive texts either - any ideas?

    Settings > General > Reset > Reset Network Settings.
    Beyond that, contact the carrier as SMS is a carrier feature.

  • Deploy CR 10 from VS 2005 C#  fails to login on 2nd try

    Hi,
    I'm new to CR and .NET in general, but I've got a working app on my development m/c.  I built a setup project in .NET and deployed the app to our test lab.
    From there I was able to generate a report on my first request, but when I returned to the dialog that I use to collect parms and select the report I need I fail to login the CR (Oracle).
    To be clear, my app builds 4 different reports, from my m/c I ran successful display as many copies of those reports as I have tried.  But, on the test lab m/c I can request any (1)one of the 4 reports, but as soon as I request a 2nd one the app fails with the Login failed message.
    I've already included the CrystalReportsRedist2005_x85.msm merge module.
    Anyone have any ideas about how to solve this problems
    thanks.
    Danny
    For anyone dealing with connection problems and may be interested in how I've resolved my connection problems:
    It turns out that the problem wasn't in CR10 or the setup project.  It was with the ODBC connection to Oracle9i. My m/c has a later version of Oracle9i then the version on the m/c in the test lab (9.2.0.5.0 vs 9.2.01.0)
    The the temp fix is to revise the SQLNET.ORA file.  Eventually we will need to install Oracle patches to correct for the ORA-12154 TNS could not be resolved error.  This is going to be necessary for all client m/c's before going live.
    Good luck to anyone dealing with similar issues.
    Danny

    Hi!
    I am having the same issue in Oracle Weblogic Server 10.3.0.
    I resolved it by increasing the memory in the setDomainEnv.sh
    MEM_ARGS="-Xms1G -Xmx1G"
    export MEM_ARGS
    MEM_PERM_SIZE="-XX:PermSize=384m"
    export MEM_PERM_SIZE
    MEM_MAX_PERM_SIZE="-XX:MaxPermSize=384m"
    export MEM_MAX_PERM_SIZE
    Anyway I don't know why this resolved it and why the exception is not a memory error. I have tested version 10.3.2 and it doesn't report this errors with the same memory assigned.

  • OS X Mavericks does not install from app store, keeps failing

    Got ready to download the OS x Mavericks today from the app store.
    Clicked on install, entered my Apple ID, Starting downloading and boom, just hangs half way through, wont restart the download, have to keep logging off and back in to allow the app store to let me download it again. No other updates in the queue waiting to update, all i just wanna do is install Mavericks thats it. Please tell me how i can manually download this and make sure it completes and then install it offline if possible?
    Thanking you in advance

    There is nowhere other than the App Store to download it from. You may find other sites offering it online, but if you do, those sites are distributing it illegally and you should not trust those copies.
    As to the problem, it's possible that this is an issue with your network. Try downloading on another network. Also, disable any anti-virus software, or any other kind of internet filtering/blocking software.

  • LR4 upgrade from LR3 registration keeps failing

    I was beta testing LR4, and bought the upgrade today (to upgrade from LR3).. entered the serial number into LR4 Beta to upgrade, entered my registration info, and keep getting this pop up afterwards.  Tried contacting Adobe chat support, and got nowhere.  Idiots in India.  I have tried downloading the file from Adobe as well (instead of just registering the beta) .. keep getting this error (I'm using a Mac):
    I try clicking the "goto Adobe.com" button, and it takes me to an "error 404" page.

    Hi,
    Remove all the versions of LR from the computer and then remove this file from this location  (USER)Library/Application Support/Adobe/Lightroom/Lightroom x.0 Registration file
    Then install LR by downloading from adobe.com and then serialize with your serial number and then check.

  • SSIS 2012 package runs under SSDT but fails with permission error from SSMS

    I have a simple package that pulls data from a text file located on a Windows file server that runs successfully from SSDT on my client.
    However, when deployed and running the package via SSMS from the client, the package fails with a permission error, with the error stating that the data file could not be opened.
    I have done some investigation and have seen some info that states that a package run from SSMS runs under the account on which you are logged on to the machine, which I would have thought is correct. This is therefore the same account when running from
    SSDT (which works) and I can see from the SSIS Report that the 'Caller' is stated as my account, so if this is the case why isin't the package working.
    I've also seen an MSDN forum answer which stated the opposite that the package when run from the IS Catalog in SSMS doesn't run under the account on which the client is logged on with, which is the opposite of the above, but doesn't indicate which account
    it is using.
    So what account is being used to run SSIS 2012 packages from the IS catalog from within SSMS ?
    If it is the account on which you are logged onto the client running SSMS, why is it not working when the account has the necessary permissions (as provent when running from SSDT) ?

    I am aware it's using my account and not one of the service. There's nothing in the posts above which suggests I'm using the service account. I don't know why people keep assuming that I'm running the package from a job. I've never stated that in any of
    the posts I'm running the package from a job. It's been made quite clear I'm running the package from the IS Catalog on SSMS:
    "This is simply selecting a package from the IS Catalog, right-clicking and selecting Execute package.", as per the Nov 18 post, and in the original post "....So what account is being used to run SSIS 2012 packages from the IS catalog from
    within SSMS".
    Just to be clear, the package is NOT being run from a job. It's using the Execute package option when selecting the package within SSMS from the IS Catalog and it's running under the account on which I am logged on to my client.
    Please read carefully. I was just answering your question "So what account is being used to run SSIS 2012 packages from the IS catalog from within SSMS ?" and stating that you where right and that it uses your account to run the package
    when you execute a package manually from the Catalog and that you can prove that by logging the system variable.
    A good suggestion about using a share in the task to map the drive and I will try this. I would find it strange that SSMS requires this mapping whereas SSDT does not though.
    Ok let us know your findings. If it doesn't work you can also test it with a password and username:
    net use f: \\financial\public  yourpassword /user:username
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • I can't see sql server express 2012 from ssms 2008 R2 -- what do I need to download?

    I'm running sql server 2008 R2 Developer on a win7 (pro) workstation.   I would like to keep this installation because it has SSRS and Analysis Server. But I was not able to attach a sql 2012 DB so I downloaded Sql Server Express 2012 (per the
    picture below - 1st option selected) and installed it.   Sql Server Express 2012 appears to be running -- per my services list, but I cannot see the instance in ssms 2008 R2. Do I need to uninstall Sql Server Express 2012 and then download another
    option (from the picture below)? How should I proceed so that I can have a working/workable instance of Sql Server Express 2012 that I can see in ssms (whatever required version) and also keep sql server 2008 R2?  which download should I select (from
    the picture below?
    Rich P

    Should I uninstall Sql server 2012 first?
    Rich P
    No you do not need to uninstall any thing
    >> Sql Server Express 2012 appears to be running -- per my services list, but I cannot see the instance in ssms 2008 R2.
    You need to just download SQL Server 2012 express management studio and use that to connect to SQL Server 2012. And use SSMS 2008 r2 to connect to SQL Server 2008 r2.
    This File :ENU\x64\SQLManagementStudio_x64_ENU.exe
    Although I guess SSMS 2012 express with SP2 would work just fine and you would connect to 2008 R2 database using that.
    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

  • Server 2012 X64 R2 DNS Server keeps shutting down after inplace upgrade from Server 2012 X64

    Hi,
    ever since upgrading from Server 2012 X64 to Server 2012 R2 X64 my dns server keeps shutting down every several minutes before having to do a restart.  When viewing the event log this is all I see..
    The DNS Server service terminated unexpectedly.  It has done this 497 time(s).  The following corrective action will be taken in 60000 milliseconds: Restart the service.
    if I look in the Application Error Log,  I will also find the following:
    Faulting application name: dns.exe, version: 6.3.9600.17031, time stamp: 0x530871fb
    Faulting module name: dns.exe, version: 6.3.9600.17031, time stamp: 0x530871fb
    Exception code: 0xc0000005
    Fault offset: 0x000000000010b0e0
    Faulting process id: 0x1740
    Faulting application start time: 0x01cf531b2e3a7f5e
    Faulting application path: C:\Windows\system32\dns.exe
    Faulting module path: C:\Windows\system32\dns.exe
    Report Id: 90a4ab37-bf0e-11e3-9446-003048df3f03
    Faulting package full name:
    Faulting package-relative application ID:
    I have tried removing and then reinstalling the DNS Server role, but the same situation occurs..
    thanks,

    Hi,
    I'm going crazy,  I've upgraded my Server 2012 Standard to Server 2012 R2 Standard and now my DNS server keeps crashing since the in place upgrade.  I have finally narrowed it down to it only crashes after several minutes if I load the data from
    a file instead of the registry.  As a test I:
    -1- killed all my dns data,
    -2- uninstalled the dns server role
    -3- deleted the /windows/system32/dns directory
    -4- reinstalled the DNS server role
    -5- used the wizard to create a DNS server and a forward zone.
    everything works okay, no crashes,  then I change the advanced propertied of the DNS server to load from file, restart the DNS server and once again it crashes every 2 minutes..
    Please help,  this is killing me..
    thanks in advance..

  • Exe application deployment from SCCM 2012 R2

    Hi,
    is any limitation to deploy the .exe application from SCCM 2012 R2??
    Shailendra Dev

    No limitation. You just need to know how to install it silently. It is a more manual configuration than if you had an MSI.
    Example here
    http://www.gerryhampsoncm.blogspot.ie/2013/03/sccm-2012-sp1-step-by-step-guide-part_20.html
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • How do I completely remove Azure from my Windows Essentials 2012 Server?

    What is the procedure for completely removing Azure from my server?
    The trial was unsuccessful and response from Microsoft Azure support to my emails non-existent.
    But I still get occasional alerts telling me an Azure backup has failed even though I have stopped the schedule. 
    I would just like to clean it from my system.
    Any advice please?

    Hi,
    Do you mean you would like to remove Azure Backup Agent?
    If so you can remove it in Control Panel:
    Press the Windows logo key + Q to open the Apps menu, and then click Control Panel.
    Under the Programs item, click Uninstall a program.
    In Uninstall or change a program, click Azure Backup Agent.
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • What is SCVMM DHCP Server (x64) ? after pushing the agent from scvmm 2012 r2 console

    Hello Guys,
    I have installed the agent from scvmm 2012 R2 console & notice that in add remove Program its shows two things one is " Microsoft System center Virtual machine Manager Agent (x64) other is Microsoft System center Virtual machine Manager DHCP server
    (x64)"
    Need to know what is the role of this "Microsoft System center Virtual machine Manager DHCP server (x64)" on the server & why it get installed with scvmm agent.
    Thanks
    NM-BG
    NM-BG

    This is a good question, and I am happy to explain why you are seeing this agent.
    Windows Server 2012 introduced us for Network Virtualization using the GRE protocol (NVGRE). 
    In order to leverage NVGRE, you would have to manage your hosts entirely with powershell, if you didn't have VMM in place.
    When VMM is in place (and really should be in place, when using NVGRE), VMM act as the complete management layer, also for the NVGRE part. Since NVGRE basically is a
    policy driven technology, VMM need to keep track of every IP address used with NVGRE. During deployment of virtual machines connected to a VM Network with NVGRE (often referred to as Customer Addresses), VMM is able to configure static IP addresses
    on to these VMs, using the agent you are mentioning. This was introduced in VMM 2012 SP1, and is also present in the R2 Release. 
    So to summarize, it is a Hyper-V Switch Extension that is required on all Windows Server with Hyper-V to have DHCP to work correctly.
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

  • Upgrade from SCCM 2012 SP1 CU4 to R2 Fails - Unsupported Upgrade Path

    Hi everybody,
    I'm currently upgrading our SCCM infrastructure to SCCM 2012 R2 after have finished with the upgrade from SCCM 2012 RTM to SP1 CU4, thus far everything works fine, but when I try to update any
    of the site servers, whether CAS or Primary, I'm getting the following error message in the Prerequisites Check:
    I've gone through the system requirements and prerequisites over and over again and I can assure you that every possible update, supported OS, feature set, SQL Server, check list, etc,
    etc, have been followed as per the official documentation available, however I'm stuck in this point, and surely enough I haven't been able to find out a similar case.Additionally I'm adding
    the ConfigMgrPrereq log (the relevant portion of it) in case someone could kindly take a look at it.
    <04-25-2014 02:06:46> ******* Start Prerequisite checking. *******
    <04-25-2014 02:06:47> ********************************************
    <04-25-2014 02:07:00> INFO: Detected current installed build version [7711] for sitecode [BRA]. For Upgrade,
    minimum supported installed build version is [7804].
    <04-25-2014 02:07:00> INFPROSCCMCMS.usersad.everis.int;   
    Unsupported upgrade path;    Error;   
    Configuration Manager has detected that one or more sites in the hierarchy are installed with a version of Configuration Manager that is not supported for upgrade.
    <04-25-2014 02:07:00> INFO: This rule only apply to primary site, skip checking.
    <04-25-2014 02:07:00> INFPROSCCMCMS.usersad.everis.int;   
    Active Replica MP;    Passed
    <04-25-2014 02:07:00> INFO: This rule only applies to primary or secondary site in hierarchy, skip checking.
    <04-25-2014 02:07:00> INFPROSCCMCMS.usersad.everis.int;   
    Parent site replication status;    Passed
    <04-25-2014 02:07:00> <<<RuleCategory: Database Upgrade Requirements>>>
    <04-25-2014 02:07:00> <<<CategoryDesc: Checking the target ConfigMgr database is ready to upgrade...>>>
    <04-25-2014 02:07:00> ===== INFO: Prerequisite Type & Server: SQL:INFPROSCCMCDB.usersad.everis.int
    =====
    <04-25-2014 02:07:00> <<<RuleCategory: Access Permissions>>>
    <04-25-2014 02:07:00> <<<CategoryDesc: Checking access permissions...>>>
    <04-25-2014 02:07:00> INFPROSCCMCDB.usersad.everis.int;   
    SQL Server sysadmin rights;    Passed
    <04-25-2014 02:07:00> INFPROSCCMCDB.usersad.everis.int;    SQL Server sysadmin rights
    for reference site;    Passed
    <04-25-2014 02:07:00> INFO: CheckLocalSys is Admin of <INFPROSCCMCDB.usersad.everis.int>.
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    Site server computer account administrative rights;    Passed
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    SQL Server security mode;    Passed
    <04-25-2014 02:07:09> <<<RuleCategory: System Requirements>>>
    <04-25-2014 02:07:09> <<<CategoryDesc: Checking system requirements for ConfigMgr...>>>
    <04-25-2014 02:07:09> INFO: OS version:601, ServicePack:1.
    <04-25-2014 02:07:09> INFO: Target computer is a Windows server.
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    Unsupported site server operating system version for Setup;    Passed
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    Domain membership;    Passed
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    Pending system restart;    Passed
    <04-25-2014 02:07:09> <<<RuleCategory: Dependent Components>>>
    <04-25-2014 02:07:09> <<<CategoryDesc: Checking dependent components for ConfigMgr...>>>
    <04-25-2014 02:07:09> INFO: Return code:0, Major:10, Minor:50, BuildNum:4000
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    SQL Server version;    Passed
    <04-25-2014 02:07:09> INFO: Get Sql edition:Enterprise Edition.
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    SQL Server Edition;    Passed
    <04-25-2014 02:07:09> INFO: Checking Tcp is enabled to Static port, SQL Server:INFPROSCCMCDB.usersad.everis.int,
    Instance:.
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    SQL Server Tcp Port;    Passed
    <04-25-2014 02:07:09> INFO: Checking if SQL Server memory is limited.
    <04-25-2014 02:07:09> INFO: SQL Server memory is limited.
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    Configuration for SQL Server memory usage;    Passed
    <04-25-2014 02:07:09> INFO: Checking if SQL Server memory is configured to reserve minimum memory.
    <04-25-2014 02:07:09> INFO: Installing the central administration site or primary site, requires SQL
    Server to reserve a minimum of 8 gigabytes (GB) of memory.
    <04-25-2014 02:07:09> WARN: SQL Server minimum memory is 8000 MB.
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;    SQL Server process memory allocation;   
    Warning;    Configuration Manager requires SQL Server to reserve a minimum of 8 gigabytes (GB) of memory for the central administration site and primary site and a minimum of 4 gigabytes (GB) for the secondary site. This memory is reserved by
    using the Minimum server memory setting under Server Memory Options and is configured by using SQL Server Management Studio. For more information about how to set a fixed amount of memory, see
    http://go.microsoft.com/fwlink/p/?LinkId=233759.
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    Case-insensitive collation on SQL Server;    Passed
    <04-25-2014 02:07:09> INFO: Check Machine FQDN: <INFPROSCCMCDB.usersad.everis.int>.
    <04-25-2014 02:07:09> INFO: getaddrinfo returned success.
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    Validate FQDN of SQL Server Computer;    Passed
    <04-25-2014 02:07:09> INFO:CheckSupportedFQDNFormat <INFPROSCCMCDB.usersad.everis.int>
    <04-25-2014 02:07:09> INFO: NetBIOS <INFPROSCCMCDB>
    <04-25-2014 02:07:09> INFPROSCCMCDB.usersad.everis.int;   
    Primary FQDN;    Passed
    <04-25-2014 02:07:09> <<<RuleCategory: Site Upgrade Requirements>>>
    <04-25-2014 02:07:09> <<<CategoryDesc: Checking if the target ConfigMgr site is ready to upgrade...>>>
    <04-25-2014 02:07:09> <<<RuleCategory: Database Upgrade Requirements>>>
    <04-25-2014 02:07:09> <<<CategoryDesc: Checking the target ConfigMgr database is ready to upgrade...>>>
    <04-25-2014 02:07:09> ===== INFO: Prerequisite Type & Server: SDK:INFPROSCCMCMS.usersad.everis.int
    =====
    <04-25-2014 02:07:09> <<<RuleCategory: Access Permissions>>>
    <04-25-2014 02:07:09> <<<CategoryDesc: Checking access permissions...>>>
    <04-25-2014 02:07:09> INFO: The rule 'Administrative rights on site system' has been run on server 'INFPROSCCMCMS.usersad.everis.int',
    skipped.
    <04-25-2014 02:07:09> <<<RuleCategory: System Requirements>>>
    <04-25-2014 02:07:09> <<<CategoryDesc: Checking system requirements for ConfigMgr...>>>
    <04-25-2014 02:07:09> INFO: The rule 'Unsupported site server operating system version for Setup' has
    been run on server 'INFPROSCCMCMS.usersad.everis.int', skipped.
    <04-25-2014 02:07:09> INFO: The rule 'Domain membership' has been run on server 'INFPROSCCMCMS.usersad.everis.int',
    skipped.
    <04-25-2014 02:07:09> INFO: Windows Cluster not found on INFPROSCCMCMS.usersad.everis.int.
    <04-25-2014 02:07:10> INFPROSCCMCMS.usersad.everis.int;   
    Windows Failover Cluster;    Passed
    <04-25-2014 02:07:10> INFO: The rule 'Pending system restart' has been run on server 'INFPROSCCMCMS.usersad.everis.int',
    skipped.
    <04-25-2014 02:07:10> <<<RuleCategory: Dependent Components>>>
    <04-25-2014 02:07:10> <<<CategoryDesc: Checking dependent components for ConfigMgr...>>>
    <04-25-2014 02:07:10> INFPROSCCMCMS.usersad.everis.int;   
    Windows Deployment Tools installed;    Passed
    <04-25-2014 02:07:10> INFO: CheckAdkWinPeInstalled on INFPROSCCMCMS.usersad.everis.int.
    <04-25-2014 02:07:10> INFPROSCCMCMS.usersad.everis.int;    Windows Preinstallation Environment
    installed;    Passed
    <04-25-2014 02:07:10> INFPROSCCMCMS.usersad.everis.int;   
    SMS Provider machine has same domain as site server;    Passed
    <04-25-2014 02:07:10> <<<RuleCategory: Site Upgrade Requirements>>>
    <04-25-2014 02:07:10> <<<CategoryDesc: Checking if the target ConfigMgr site is ready to upgrade...>>>
    <04-25-2014 02:07:10> <<<RuleCategory: Database Upgrade Requirements>>>
    <04-25-2014 02:07:10> <<<CategoryDesc: Checking the target ConfigMgr database is ready to upgrade...>>>
    <04-25-2014 02:07:10> ***************************************************
    <04-25-2014 02:07:10> ******* Prerequisite checking is completed. *******
    <04-25-2014 02:07:10> ******************************************<04-25-2014 02:07:10> INFO: Updating
    Prerequisite checking result into the registry
    <04-25-2014 02:07:10> INFO: Connecting to INFPROSCCMCMS.usersad.everis.int registry
    <04-25-2014 02:07:10> INFO: Setting registry values
    If you wonder whether it might be related to this error:
    -2014 02:07:00> INFO: Detected current installed build version [7711] for sitecode [BRA]. For Upgrade, minimum supported installed build version is [7804].
    I confirm that this one site is a secondary one that's attached to a primary site and this log is from the CAS server, I managed to tall it and delete it from that site, but still appears listed
    on the CAS management console, any idea how to force the removal of a secondary site that's attached to a primary from the CAS site when it has been removed already from said primary?
    I've already tried the
    Preinst /DELSITE XXX  command but it only works when the site to remove it's attached to the local site and certainly not from a CAS
    Finally,  the version, build number and everything is correct, no idea what could be the problem, does anybody know a way to bypass this or force the re-evaluation of this rules, I've got
    the impression that it's being cached somehow.
    Any help would be highly appreciated,
    Thank you.
    Marcelo Estrada MCP-MCTS-MCITP-MCSA-MCSE

    Hello again everybody,
    I've finally managed to fix this up, in the end I had to delete those entries manually from the database as Garry suggested. After this was done the upgrade has gone through as expected with no further ado and has finalized already, now moving on to the
    primary sites.
    If anybody out there is facing the same issue, what I did was to delete those "stubborn" records executing the following statements over the CAS database:
    DELETE
    FROMServerDataWHERESiteCode='XXX'
    DELETE
    FROMSC_SiteDefinitionWHERESiteCode='XXX'
    And this is pretty much about it. I'd recommend to take a proper backup first though as best practice.
    Thank you all anyways for your answers and comments,
    Marcelo Estrada MCP-MCTS-MCITP-MCSA-MCSE

  • SSMS 2012: Import XML File to SQL Table - 'value' is not a recognized built-in function name!!??

    Hi all,
    I have the following xml file (books1.xml):
    <bookstore>
    <book>
    <BookID>1</BookID>
    <title>Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
    </book>
    <book>
    <BookID>2<BookID>
    <title>Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
    </book>
    <book>
    <BookID>3<BookID>
    <title>XQuery Kick Start</title>
    <author>James McGovern</author>
    <year>2003</year>
    <price>49.99</price>
    </book>
    <book>
    <BookID>4<BookID>
    <title>Learning XML</title>
    <author>Erik T. Ray</author>
    <year>2003</year>
    <price>39.95</price>
    </book>
    </bookstore>
    In my Microsoft SQL Server 2012 Management Studio, I executed the following SQL Query code:
    --XQuery w3schools example using books1.xml in C:\Temp folder
    ---SQL Query W3books Title
    ---9 March 2015
    USE XML_XQUERY
    GO
    CREATE TABLE W3Books(
    BookID INt Primary Key,
    Title VARCHAR(30));
    INSERT INTO W3Books (BookID, Title)
    SELECT x.book.query('BookID'), value('.', 'INT'),
    x.book.query('title'), value('.', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'C:\Temp\books1.xml',
    SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('W3Books/book') AS x(book);
    SELECT BookID, Title
    FROM W3Books;
    I got the following error messages:
    Msg 195, Level 15, State 10, Line 7
    'value' is not a recognized built-in function name.
    Msg 156, Level 15, State 1, Line 16
    Incorrect syntax near the keyword 'AS'.
    I don't know why I got the error of 'value' is not a recognized built-in function name. Please kindly help and tell me what is wrong in my code and how to correct the error.
    Thanks, Scott Chang
    P. S.
    (1) I mimicked the xml file and SQL Qeury code of Import XML File to SQL Table in
    http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html. The xml file and the code of this sample worked in my SSMS 2012 program.
    (2) I am learning the "CAST" and "CROSS APPLY" in the Create Instances of XML Data of Microsoft MSDN - it is very abstract to me.

    Hi Stan210, Thanks for your nice response.
    I corrected my xml file as you pointed out.
    I made some changes in some code statements of my SQLQueryW3BookTitle.sql as you instructed:
    --XQuery w3schools example using books1.xml in C:\Temp folder
    ---SQL Query W3books Title
    ---10 March 2015
    USE XML_XQUERY
    GO
    CREATE TABLE W3Books(
    BookID INt Primary Key,
    Title VARCHAR(30));
    INSERT INTO W3Books (BookID, Title)
    SELECT x.book.value('/BookID[1]', 'INT'),
    x.book.value('/title[1]', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'C:\Temp\books1.xml',SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('bookstore/book') AS x(book);
    SELECT BookID, Title
    FROM W3Books;
    I executed my revised sql and I got the following Message and Results:
    Msg 515, Level 16, State 2, Line 6
    Cannot insert the value NULL into column 'BookID', table 'XML_XQUERY.dbo.W3Books'; column does not allow nulls. INSERT fails.
    The statement has been terminated.
    (0 row(s) affected)
    Results:
    BookID    Title
    I don't know why I just got the names of columns in Results and the "Cannot insert the value NULL into column 'BookID', table 'XML_XQUERY.dbo.W3Books'; column does not allow nulls, insert fails." in Messages.  Please kindly help, advise me
    how to correct the errors and respond again.
    Many Thanks again,
    Scott Chang

  • Reporting services instance not able to connect from SSMS

    Hi All,,
    I have installed SQL SERVER 2012 on Windows 8.1. I configured report server in native mode.
      * Reporting services is in started state
      * SQl server service is in started state
      * Sql serevr agent is in started state
      * SQL browser is in started state
    When i tried to connect Report server instance using SSMS i got the below error.
    TITLE: Connect to Server
    Cannot connect to .
    ADDITIONAL INFORMATION:
    Unable to connect to the server at . The specified URL might not be valid or there might be a problem with the report server version or configuration. Specify a different URL, or contact your server administrator to verify that the report server runs SQL Server
    2008 or later. Additionally, if you are trying to connect to a SharePoint-integrated report server, verify that SharePoint is installed on the server and that the report server uses SharePoint integrated mode. (Microsoft.SqlServer.Management.UI.RSClient)
    BUTTONS:
    OK
    When i connect using http://localhost/reportserver I am getting below error
    The permissions granted to user '' are insufficient for performing this operation. 
    Though i am the administrator 
    And when i connect using below URL http://localhost/reports 
    I get Unable to connect to the remote server 
    Please suggest your input on the problem

    Hi Khushi N,
    According to your description, you are administrator, when you tried to connect reporting services from SSMS, the error message occurred. When you tried to access report manager with the URL: 
    http://localhost/reportserver, you were prompted that the permissions granted to user '' are insufficient for performing this operation.
    The Reporting Services error rsAccessedDenied occurs when a user does not have permission to perform an action. To troubleshooting this issue, please make sure that you have sufficient permission and the report server name is correct. You can use the reportserver
    URL, e.g. HTTP ://<servername>/ReportServer, to log on the reporting service in SSMS.
    In addition, by default, we could not access all of the report server properties available in SQL Server Management Studio unless we start Management Studio with administrative privileges. To configure Reporting Services role properties and role assignments
    so you do not need to start Management Studio with elevated permissions each time, please refer to the following document:
    From the Start menu, click All Programs, click SQL Server 2012, right-click Management Studio, and then click Run as administrator.
    Connect to your local Reporting Services server.
    In the Security node, click System Roles.
    Right-click System Administrator and then click Properties.
    In the System Role Properties page, select View report server properties. Select any other properties you want associated with members of the system administrators role.
    Click OK.
    Close Management Studio
    The issue may be caused by the UAC or Internet Explorer security setting, please try to follow this steps:
    1. Open the Internet options of the IE and add the report server URL into trusted site in the Security tab.
    2. Run the IE as administrator.
    For more information about Configuring a Native Mode Report Server for Local Administration, please refer to the following document:
    http://msdn.microsoft.com/en-us/library/bb630430(v=sql.110).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • Reporting services keep failing on SCCM 2012 SP1

    I have SCCM 2012 SP1 install with SSRS 2012 install on same server 2008 R2 server.
    Reporting services keep failing with the following message when trying to START the service from the Reporting Services Configuration Manager Console
    System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
       at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
       at ReportServicesConfigUI.Panels.ServerInformationPanel.StartStopServiceTask(Boolean start)
    Thx,
    Joe
    Thx, Joe

    Good advice Garth, but I have opened over 5 cases to try to resolve this and several other issues with my troublesome SCOM 2012 SP1 upgrade. That is why I am also sending it to the community in hope they can provide assistance.
    CSS will only work on one specific issue and in most cases these are targeted bandaid fixes that DO NOT address the underlying or related issues. I a left to opening many tickets and still floundering with a unreliable product.
    It seems to only be with System Center. All other products by Microsoft seem to be reliable and predicable and are easily supported using break fix support model of the current MS teams.
    It is SQL (SSRS) that controls subscriptions not CM12. CM12 only leverages the APIs provided by SQL (SSRS).
    I hate to say this but Why do you think this problem has anything to do with CM12?
    If CSS tell you to re-create the subscription and the problem re-occurs then I would re-open the ticket and tell them that the problem is NOT fixed and to continue working on it.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

Maybe you are looking for

  • Songs Not Appearing in Library Correctly

    After loading a CD into my library, only two or three appear with song titles/artist names -- the other songs are dumped in a file with simply "track 1", "track 2", etc.  Anyone know what I'm doing wrong and how to correct it? Thanks

  • Hrd Drive Full- Archive iTunes Videos to DVD?

    My daughter has filled up her laptop's hard drive. The big culprits are movies and TV shows purchased from iTunes. Is there a way that these files can be taken off her hard drive and archived to a DVD? She's not watching the files now and is OK if th

  • WordMac 2004 application won't open

    I've tried adding a new user, shift boot, changing the name of the fonts folders (including disabling the Classic and computer fonts), and removing start up files. I've also tried disk utility. Any suggestions?

  • Netweaver 2004s Trial Stopped Working

    My SAP server has stopped working a while back and I have no idea where to even look... I use the SAP Management Console on windows XP SP2 with MaxDB as the database. When I try to start the server, all the processes start and then work+disp.exe dies

  • Oracle ODS Creation & Management

    Hi Team, We have the requirement to create operational data store (ODS) for datawarehouse purpose. I am not able to find any document related to creating and maintaining operational data store (ODS). Kindly help me in providing some note id or docume