SQL Server's FOR XML EXPLICIT functionality in Oracle
What could be the best way to implement SQL Server's FOR XML EXPLICIT functionality? Can someone please give the overview?
Probably you can try General XML forum General XML
Gints Plivna
http://www.gplivna.eu
Similar Messages
-
Oracle equivalent of SQL Server's "FOR XML" and "OPENXML"
Hi
Can someone please tell what are the Oracle's equivalent of SQL Server's "FOR XML" and "OPENXML" features?Probably you can try General XML forum General XML
Gints Plivna
http://www.gplivna.eu -
SharePoint 2013 SQL Server Edition for BI Features - must be on SharePoint SQL Server?
I need to install SQL Server 2012 for a new SharePoint 2013 installation.
Let's say I want to use the BI features of SharePoint 2013 like PowerView.
I already have a separate SQL Server running SQL Server 2012 BI Edition that is used as the database server for our data warehouse and some apps. But this SQL Server will not be used to house the SharePoint 2013 databases.
Do I need to install SQL Server 2013 BI Edition on the SharePoint 2013 SQL Server (where the SharePoint 2013 databases will be housed) or can I used SQL Server 2013 Standard Edition on that server and utilize the BI Edition on the data warehouse server to
use the BI features of SharePoint?Yes, BI or Enterprise must be installed on the SharePoint server in order to integrate SSRS. PowerPivot can be on a separate server with just a download (http://www.microsoft.com/en-us/download/details.aspx?id=35577) for certain components residing on
the SharePoint server. This will give you PowerView, as well.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
All I want to know is if Distributed Transaction Coordinator services of the application role are required by SQL Server 2012 for clustering and support of SharePoint 2013.
I have been planning and deploying my companies first Windows Server 2012/SQL Server 2012 Always On cluster and Always On Availability Groups Multi-Subnet cluster and instances for SharePoint 2013, and I will be brutally honest, the documentation on either
the MSDN and TechNet leave alot to be desired. Continually finding links in the documentation will take me from a Windows 2012 reference to a page talking about Windows Server 2008 or R2, The differences of which there are so many when it comes to configurations,
settings, roles, services when working with SQL Server 2012. I have been confused, frustrated, screaming mad, with all the misdirection in this documentation. The documentation takes me windows 2008 R2 which is different than 2012!
Tired and trying to pick myself up off the floor!
Greg
GmanIn general, DTC is not required for SQL 2012. But, since you are asking specifically about SharePoint, it would be better to ask in a SharePoint forum. They would be more likely to know those situations where FTC might be needed by SharePoint.
.:|:.:|:. tim -
Does Microsoft have a SQL Server driver for Node.js
I want to create a Mobile Backend with Node.js, and I was wondering whether Microsoft provided a SQL Server driver for Node.js. If not, what driver module should I use?
Hey James,
Have you see this
https://github.com/Azure/node-sqlserver
or this
https://www.npmjs.com/package/mssql ?
Sounds like this is what you're looking for. -
SQL server requirement for sharepoint 2013
Hello All,
currently i have installed SharePoint2013 in server farm mode, and i have used SQL Server 2008 R2 for DB. Can i use SQL Server 2012 for SharePoint 2013?
ThanksSharePoint 2013 is compatible with SQL 2008 R2 and SQL 2012 so yes.
What you can do is "move" the SharePoint DBs from SQL 2008 R2 to SQL 2012 without restore or backup.
Link to msdn: https://technet.microsoft.com/en-us/library/cc512725(v=office.15).aspx
Here you have an example for SharePoint 2010 (is the same for SharePoint 2013): http://www.codeproject.com/Articles/664029/Migrate-SharePoint-s-SQL-Server-to-another-SQL-Ser
Here an different example: http://surya20p.blogspot.com.es/2013/09/migrate-sql-2008r2-sp2-to-sql-2012-sp1.html
Best regards. -
SQL Server PowerPivot for SharePoint
We already have SQL Server 2012 standard edition installed with SharePoint 2013. We then upgraded SQL Server 2012 to the Endterprise Edition. Now we want to install Powerpivot and we did but it looks like we did or could not previously check the box on
the SQL Server 2012 installation for SQL Server PowerPivot for SharePoint. How would I get this option turned on now that we already have our sharepoint up and running without it? Is it possible?
Michael RobeyNeed to install a new named instance. Please follow the below link
http://blog.cloudshare.com/2012/05/22/step-by-step-guide-to-installing-sharepoint-with-sql-2012-powerpivot-powerview-and-reporting-services/
Regards, Pradyothana DP. Please Mark This As Answer if it solved your issue. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/ -
Error in installing SQL SErver 2000 for SAp
When i try to install Ms SQL server 2000 for SAP it is giving me a message , "unable to validate product key"
Pls let me know how to solve itDear,
When u install original sql server, might be it should not ask for product key. In sql source there is one vbs script, just click on that vbs script and ur installation of sql server is going to start. This is upto my knowledge.
Thanking You.
Charanjit -
For xml explicit creating wrong hierarchy
hi we run 2012 std. My query that is generally of the form u see in block 1, which without xml phrase creates flat results u see in block 2 is putting all address info under last contact incorrectly. Does anybody see what i'm doing
wrong?
SELECT 1 AS Tag
,null AS Parent
,NULL AS 'Request!1!'
,NULL AS 'Contacts!2!'
,NULL AS 'Contact!3!'
,NULL AS 'Contact!3!ContactID!Element'
,NULL AS 'ContactAddresses!4!'
,NULL AS 'ContactAddress!5!'
,NULL AS 'ContactAddress!5!Address1!Element'
,NULL AS 'ContactAddress!5!eMail!Element'
UNION ALL
SELECT 2 AS Tag
,1 AS Parent
,NULL AS 'Request!1!'
,NULL AS 'Contacts!2!'
,NULL AS 'Contact!3!'
,NULL AS 'Contact!3!ContactID!Element'
,NULL AS 'ContactAddresses!4!'
,NULL AS 'ContactAddress!5!'
,NULL AS 'ContactAddress!5!Address1!Element'
,NULL AS 'ContactAddress!5!eMail!Element'
UNION ALL
SELECT 3 AS Tag
,2 AS Parent
,NULL AS 'Request!1!'
,NULL AS 'Contacts!2!'
,NULL AS 'Contact!3!'
,LTRIM(RTRIM(x)) AS 'Contact!3!ContactID!Element'
,NULL AS 'ContactAddresses!4!'
,NULL AS 'ContactAddress!5!'
,NULL AS 'ContactAddress!5!Address1!Element'
,NULL AS 'ContactAddress!5!eMail!Element'
FROM ...
UNION ALL
SELECT 4 AS Tag
,3 AS Parent
,NULL AS 'Request!1!'
,NULL AS 'Contacts!2!'
,NULL AS 'Contact!3!'
,ltrim(rtrim(x)) AS 'Contact!3!ContactID!Element'
,NULL AS 'ContactAddresses!4!'
,NULL AS 'ContactAddress!5!'
,NULL AS 'ContactAddress!5!Address1!Element'
,NULL AS 'ContactAddress!5!eMail!Element'
FROM ...
UNION ALL
SELECT 5 AS Tag
,4 AS Parent
,NULL AS 'Request!1!'
,NULL AS 'Contacts!2!'
,NULL AS 'Contact!3!'
,ltrim(rtrim(x)) AS 'Contact!3!ContactID!Element'
,NULL AS 'ContactAddresses!4!'
,NULL AS 'ContactAddress!5!'
,case when y ='' then null else LTRIM(RTRIM(y)) end AS 'ContactAddress!5!Address1!Element'
,LTRIM(RTRIM(z)) AS 'ContactAddress!5!eMail!Element'
FROM ...
FOR XML EXPLICIT
Tag Parent Request!1! Contacts!2! Contact!3! Contact!3!ContactID!Element ContactAddresses!4! ContactAddress!5! ContactAddress!5!Address1!Element ContactAddress!5!eMail!Element
1 NULL NULL NULL NULL NULL NULL NULL NULL NULL
2 1 NULL NULL NULL NULL NULL NULL NULL NULL
3 2 NULL NULL NULL 10 NULL NULL NULL NULL
3 2 NULL NULL NULL 11 NULL NULL NULL NULL
4 3 NULL NULL NULL 10 NULL NULL NULL NULL
4 3 NULL NULL NULL 11 NULL NULL NULL NULL
5 4 NULL NULL NULL 10 NULL NULL Address-1-1 NULL
5 4 NULL NULL NULL 10 NULL NULL Address-1-2 NULL
5 4 NULL NULL NULL 10 NULL NULL NULL [email protected]
5 4 NULL NULL NULL 11 NULL NULL NULL [email protected]
5 4 NULL NULL NULL 11 NULL NULL NULL NULL
<Request>
<Contacts>
<Contact>
<ContactID>10</ContactID>
</Contact>
<Contact>
<ContactID>11</ContactID>
<ContactAddresses />
<ContactAddresses>
<ContactAddress>
<Address1>Address1-1</Address1>
</ContactAddress>
<ContactAddress>
<Address1>Address1-2</Address1>
</ContactAddress>
<ContactAddress>
<eMail>[email protected]</eMail>
</ContactAddress>
<ContactAddress>
<eMail>[email protected]</eMail>
</ContactAddress>
<ContactAddress />
</ContactAddresses>
</Contact>
</Contacts>
</Request>Hi db042190,
You have to add one more sort column for each statement in the union. The correlation you try to reflect by the column [Contact!3!ContactID!Element] does not effect. The order in the dataset to for xml explict does make sense to shape the xml. Please see below.
CREATE TABLE [dbo].[debugXML](
[ID] [tinyint] IDENTITY(1,1) NOT NULL,
tag int,
parent int,
[sort] int,
[Request!1!] varchar(50),
[Contacts!2!] varchar(50),
[Contact!3!] varchar(50),
[Contact!3!ContactID!Element] int,
[ContactAddresses!4!] varchar(50),
[ContactAddress!5!] varchar(50),
[ContactAddress!5!Address1!Element] varchar(50),
[ContactAddress!5!eMail!Element] varchar(50),
CONSTRAINT [PK_debugXML] PRIMARY KEY CLUSTERED
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
insert dbo.debugXML
select 1 , NULL, 1,NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL
union all select 2 , 1 , 2,NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL
union all select 3 , 2 , 3,NULL , NULL , NULL , 10 , NULL , NULL , NULL , NULL
union all select 3 , 2 , 8,NULL , NULL , NULL , 11 , NULL , NULL , NULL , NULL
union all select 4 , 3 , 4,NULL , NULL , NULL , 10 , NULL , NULL , NULL , NULL
union all select 4 , 3 , 9,NULL , NULL , NULL , 11 , NULL , NULL , NULL , NULL
union all select 5 , 4 , 5,NULL , NULL , NULL , 10 , NULL , NULL , 'Address-1-1' , NULL
union all select 5 , 4 , 6,NULL , NULL , NULL , 10 , NULL , NULL , 'Address-1-2' , NULL
union all select 5 , 4 , 7,NULL , NULL , NULL , 10 , NULL , NULL , NULL , '[email protected]'
union all select 5 , 4 , 10,NULL , NULL , NULL , 11 , NULL , NULL , NULL , '[email protected]'
union all select 5 , 4 , 11,NULL , NULL , NULL , 11 , NULL , NULL , NULL , NULL
SELECT [tag]
,[parent]
,[Request!1!]
,[Contacts!2!]
,[Contact!3!]
,[Contact!3!ContactID!Element]
,[ContactAddresses!4!]
,[ContactAddress!5!]
,[ContactAddress!5!Address1!Element]
,[ContactAddress!5!eMail!Element]
FROM [dbo].[debugXML]
order by sort
for xml explicit
<Request>
<Contacts>
<Contact>
<ContactID>10</ContactID>
<ContactAddresses>
<ContactAddress>
<Address1>Address-1-1</Address1>
</ContactAddress>
<ContactAddress>
<Address1>Address-1-2</Address1>
</ContactAddress>
<ContactAddress>
<eMail>[email protected]</eMail>
</ContactAddress>
</ContactAddresses>
</Contact>
<Contact>
<ContactID>11</ContactID>
<ContactAddresses>
<ContactAddress>
<eMail>[email protected]</eMail>
</ContactAddress>
<ContactAddress />
</ContactAddresses>
</Contact>
</Contacts>
</Request>
A good reading for "FOR XML EXPLICT"
for-xml-explicit-tutorial
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support -
Buying SQL Server 2012 for a server
I'd like to buy SQL Server 2012 for a server running an Xeon E-1230 v3 (if it matters). Will these be adequate:
Microsoft SQL Server Standard Edition Single Software Assurance OPEN BUSINESS: 228-04560
5 CALs: 359-01028Hello,
This is a community forum for technical questions & issues.
For question regarding pricing / licensing please contact a Microsoft sales partner or licensing expert.
Call (1-800-426-9400), Monday through Friday, 6:00 AM to 6:00 PM PST to speak directly to Microsoft licensing specialist.
http://www.microsoft.com/sqlserver/en/us/get-sql-server/how-to-buy.aspx
http://www.microsoft.com/sqlserver/en/us/get-sql-server/licensing.aspx
http://www.microsoft.com/licensing/about-licensing/sql2012.aspx
For selecting the right Edition of SQL Server depending on your requirements, please visit
Features Supported by the Editions of SQL Server 2012
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Where to install SQL Server PowerPivot for SharePoint?
The environment is SharePoint 2013 Enterprise Edition and SQL Server 2012 SP2 Enterprise Edition.
SQL Server 2012 SP2 Enterprise Edition is installed as default instance on a dedicated box. All the features are selected in the Feature Selection windows during installation (see image).
Now, I need to install SQL Server PowerPivot for SharePoint. Should it be installed on the same dedicated box? If I understand correctly, I need to select the SQL Server PowerPivot for SharepPoint option and uncheck
the checkbox Add SQL Server Database Relational Engine Services to this installation. Does this option also install SSAS? Since there is already an existing SSAS, will that cause problem?Hi PcSQL66,
To install SQL Server PowerPivot for SharePoint, you need to select SQL Server PowerPivot for SharePoint
on the Setup Role page. Please refer to the screenshot below.
And if you have a SSAS instance installed in your server, install SQL Server PowerPivot for SharePoint will install another SSAS instance.
For the detail information, please refer to the link below.
https://msdn.microsoft.com/en-us/library/jj219067(v=sql.110).aspx
Regards,
Charlie Liao
TechNet Community Support -
Oracle script to extract SQL server data to XML/CSX file format
HI,
I have a requirement like-
Create an Oracle script to Extract data from SQL Server to XML/CSV file format in File server (Oracle Server and File Server are in different boxes).
Create an Oracle script to Retrieve data from the File Server, validate and load into the Oracle staging table
Create an Oracle script to Push data from Oracle Staging table to native SQL Server table
We may/may not be using the staging table
Could anyone please respond immediately as it is urgent ?
Thanks,
Inbamalaruser10594152 wrote:
HI,
I have a requirement like-
Create an Oracle script to Extract data from SQL Server to XML/CSV file format in File server (Oracle Server and File Server are in different boxes).
Create an Oracle script to Retrieve data from the File Server, validate and load into the Oracle staging table
Create an Oracle script to Push data from Oracle Staging table to native SQL Server table
We may/may not be using the staging table
Could anyone please respond immediately as it is urgent ?
Thanks,
Inbamalar
Urgent issues indicate a live/production system is having problems and a company is losing money, or customers are being prevented from using it.
For urgent issues you should raise your issue with Oracle Support using your customer support identifier.
The community forums are for non-urgent issues. To suggest such issues are urgent is considered rude, as the people who help here are volunteers with their own jobs to do, so demanding their time for your "urgent" issue is not appropriate. It also suggests that you think your issue is more important than other people's issues, so you are being rude to those people too. Your issue is no more important than anyone elses.
In relation to your question, you need to provide more information.
Please read: Re: 2. How do I ask a question on the forums?
When you refer to "SQL Server" are you referring to the Microsoft SQL Server product, or are you just referring to a physical server with your oracle database on it? -
How to convert MS SQL Server data to XML data using Java
Hi all!
How do I generate XML document for SQL Server data using java / jsp.
Thanks in advancehttp://www.fdsapi.com
-
I need to connect to 2 different SQL server without creating linked server for generating report. Is it possible in SSRS 2008 report service?
Yes possible
You would just required created two data sources which points to both your SQL Servers. And inside report you can create datasets based on each of these data sources to retrieve and display the data from them. In cases where you would require merging the
data from both the systems you can use functions like Lookup, LookupSet etc. Reports created in SSRS can be rendered in a variety of formats like Excel, PDF, CSV etc
see
http://www.allaboutmssql.com/2013/08/ssrs-example-for-lookup-lookupset-and.html
http://www.sqlcircuit.com/2012/03/ssrs-2008-r2-lookup-how-to-use-multiple.html
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Connecting to SQL Server 2000 with MS SQL Server Driver for JDBC
Hi,
I am brand new to JDBC . I have installed JDBC driver (for JDBC 2.0) from the Microsoft site and made relevant changes to the class path variable to include the driver paths, as suggested in the driver help documnnts. I have written a simple java code to register. But i get "class NotFound" error.
here's my code. What am I doing wrong? Thnaks for the help....
class Test {
public Test() throws Exception {
// Get Connection
// Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
DriverManager.registerDriver (new com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://SQL1:1433",myuser,mypwd);
if (conn != null) {
System.out.println();
System.out.println("Successful Connection");
System.out.println();
// Meta Data
DatabaseMetaData meta = conn.getMetaData();
System.out.println("\n Driver Information");
System.out.println("Driver Name: " + meta.getDriverName());
System.out.println("Driver Version: " + meta.getDriverVersion());
System.out.println("\n Database Information");
System.out.println("Database Name: " + meta.getDatabaseProductName());
System.out.println("Database Version: " + meta.getDatabaseProductVersion());
} //Test
public static void main(String [] args) throws Exception {
Test test = new Test();
}Hi MoD,
This is the exact command I used for compiling
C:\>javac -classpath "c:\java;c:\Program Files\Microsoft SQL Server 2000 Driver
for JDBC\lib\mssqlserver.jar;c:\Program Files\Microsoft SQL Server 2000 Driver f
or JDBC\lib\msbase.jar;c:\Program Files\Microsoft SQL Server 2000 Driver for JDB
C\lib\msutil.jar" c:\java\Test.java
To Execute I used
C:\>java -classpath "c:\java;c:\Program Files\Microsoft SQL Server 2000 Driver
for JDBC\lib\mssqlserver.jar;c:\Program Files\Microsoft SQL Server 2000 Driver f
or JDBC\lib\msbase.jar;c:\Program Files\Microsoft SQL Server 2000 Driver for JDB
C\lib\msutil.jar" c:\java\Test
In fact it kept thrwing up the Class Not Found error for the above commands.
But as U suggested I removed the classpath and executed both javac and java commands without classpath clause , and guess what it worked for the line
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
(i.e., it dint throw any exception like before). So can I assume that driver is successfully registered?
I tried using Jcreator for compile and run. But I got the same error msg as the commands given above with calsspath caluse. Is there a way around for this to make it work from an external editing tool like Jcreator apart from removing the classpath option from the JDKTool optional setting(doing this did not help for me)
Also one last favor: How do I connect with the trusted connection option? (i.e. it should use already logged in windows authentification login)
Thanks for all U'r help. I appreciate it very much.
Suma
Maybe you are looking for
-
HD needs repair but only get a looping Restart with a Leopard DVD and USBHD
Ok here are my specs Model Name: MacBook Model Identifier: MacBook5,1 Processor Name: Intel Core 2 Duo Processor Speed: 2.4 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 3 MB Memory: 2 GB Bus Speed: 1.07 GHz Boot ROM Version: MB51.00
-
With iOS8.1 I can no longer sync my iTunes MAC playlists to my iPhone! I purchased a song on Itunes store and put it into a playlist on my MAC. When I sync (as usual) with my iPhone, the playlist no longer updates to include the new song (i.e., pla
-
EA4500 loses IPv4 and IPv6 information
No changes made but router will lose all information for IPv connectivity. I have paid twice to support to fix this issue and it still occurs every few months. I tried rebooting router, and doing an IP Release/ Renew and router does not get IP addr
-
IPhoto 08 Crashes during Web Gallery upload
I have been having trouble uploading a second Web Gallery to my .Mac website. iLife 08 installed fine and I was able to upload one Web Gallery but I have attempted to upload another and each time I upload the crash occurs. There is approxmimately 400
-
Incorrect user name being displayed.
Hi, I'm trying to updates some apps via 'updates' and my iphone5 is asking for my apple password - fair enough... However, it seems to have picked up my husbands user id as mine? Any ideas? We do use the same itunes... Thanks