PowerPivot/Excel Services from SQL 2008 R2
I am currently setting up a SharePoint 2013 instance. At my company we have an existing SQL Server 2008 R2 (SP1) installation with SSAS, which users are currently accessing with Excel 2010 & 2013 PowerPivot.
Is it possible to access the Analysis Services from this existing SQL 2008 R2 server from SP 2013? If so, is there anything that needs to be installed on this box? (Or is it the case that I really can't use SQL Server 2008 with SP 2013 Excel Services?)
Yes, it is possible. It's just like any other external data sources you access from within SharePoint using the different service applications - Excel Services, Reporting Services, PowerPivot, PerformancePoint, etc. However, if you will be using Analysis
Services in SharePoint mode, this requires SQL Server 2012 with SP1
Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
Blog |
Twitter | LinkedIn
SQL Server High Availability and Disaster Recover Deep Dive Course
Similar Messages
-
Hi,
Im trying to use web service in c# sql database project. when running stored procedure, in which the web service should be called, im getting this error:
System.TypeInitializationException: The type initializer for 'System.ServiceModel.ClientBase`1' threw an exception. ---> System.Security.HostProtectionException: Attempted to perform an operation that was forbidden by the CLR host.
at System.ServiceModel.DiagnosticUtility.GetUtility()
at System.ServiceModel.DiagnosticUtility.get_Utility()
at System.ServiceModel.ClientBase`1..cctor()
The protected resources (only available with full trust) were:
All
The demanded resources were:
Synchronization, ExternalThreading
--- End of inner exception stack trace ---
at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
at System.ServiceModel.ClientBase`1..ctor()
at UMGClient..ctor()
at UMG_StoredProcedures.spUMG_ProcessEmail(SqlInt64 cid_request)
Here is the code:
using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
using CredexDB.Workflow;
using System.Collections.Generic;
using CredexDB.umgwcftest;
public partial class UMG_StoredProcedures
/// <summary>
/// </summary>
/// <param name="bankDate"></param>
/// <param name="stateCategory"></param>
[Microsoft.SqlServer.Server.SqlProcedure]
public static void spUMG_ProcessEmail( SqlInt64 cid_request )
SqlConnection conn = new SqlConnection("Context Connection=true;");
conn.Open();
try
SqlContext.Pipe.Send("A");
UMGClient umgcl = new UMGClient();
SqlContext.Pipe.Send("B");
UMGwcf.SoapExchangeMailMessage email = new UMGwcf.SoapExchangeMailMessage();
string[] names = new string[1];
names[0] = "[email protected]";
email.To = names;
email.Subject = "Test UmgWcf";
email.MessageBody = "Testovacia správa - ľľššččťťťýéáí";
email.From = "[email protected]";
email.Priority = 20;
email.Sender = 1;
email.DoNotArchive = false;
email.EncryptAndSign = false;
//long ret = umgcl.SendMailMessage(email);
catch (Exception e)
SqlContext.Pipe.Send("C");
SqlContext.Pipe.Send(e.ToString());
finally
SqlContext.Pipe.Send("D");
conn.Close();
private static void execSql(string sql, SqlConnection conn)
new SqlCommand(sql, conn).ExecuteNonQuery();
The error occurs at this row:
UMGClient umgcl = new UMGClient();
Here is the UMG class:
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(Namespace="vub.sk/UMGwcf", ConfigurationName="IUMG")]
public interface IUMG
[System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/SendMailMessage", ReplyAction="vub.sk/UMGwcf/IUMG/SendMailMessageResponse")]
long SendMailMessage(UMGwcf.SoapExchangeMailMessage message);
[System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/ResendEmailMessage", ReplyAction="vub.sk/UMGwcf/IUMG/ResendEmailMessageResponse")]
long ResendEmailMessage(long emailid);
[System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/GetEmailById", ReplyAction="vub.sk/UMGwcf/IUMG/GetEmailByIdResponse")]
UMGwcf.SoapDeliveredMailMessage GetEmailById(long emailid);
[System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/SendSMSMessage", ReplyAction="vub.sk/UMGwcf/IUMG/SendSMSMessageResponse")]
long SendSMSMessage(UMGwcf.SoapSMSMessage smsmessage);
[System.ServiceModel.OperationContractAttribute(Action="vub.sk/UMGwcf/IUMG/GetSMSById", ReplyAction="vub.sk/UMGwcf/IUMG/GetSMSByIdResponse")]
UMGwcf.SoapDeliveredSMSMessage GetSMSById(long smsid);
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public interface IUMGChannel : IUMG, System.ServiceModel.IClientChannel
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class UMGClient : System.ServiceModel.ClientBase<IUMG>, IUMG
public UMGClient()
public UMGClient(string endpointConfigurationName) :
base(endpointConfigurationName)
public UMGClient(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress)
public UMGClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress)
public UMGClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress)
public long SendMailMessage(UMGwcf.SoapExchangeMailMessage message)
return base.Channel.SendMailMessage(message);
public long ResendEmailMessage(long emailid)
return base.Channel.ResendEmailMessage(emailid);
public UMGwcf.SoapDeliveredMailMessage GetEmailById(long emailid)
return base.Channel.GetEmailById(emailid);
public long SendSMSMessage(UMGwcf.SoapSMSMessage smsmessage)
return base.Channel.SendSMSMessage(smsmessage);
public UMGwcf.SoapDeliveredSMSMessage GetSMSById(long smsid)
return base.Channel.GetSMSById(smsid);
the CLR where created as follows:
ALTER DATABASE XXXX SET TRUSTWORTHY ON;
CREATE ASSEMBLY [System.ServiceModel]
FROM 'C:\ttrojcak\System.Runtime.Serialization.dll'
WITH PERMISSION_SET = UNSAFE
CREATE ASSEMBLY [System.ServiceModel]
FROM 'C:\ttrojcak\System.ServiceModel.dll'
WITH PERMISSION_SET = UNSAFE
the message window shows warnings:
Warning: The Microsoft .NET Framework assembly 'system.servicemodel, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.web, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=x86.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.drawing, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.directoryservices, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.directoryservices.protocols, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.enterpriseservices, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=x86.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.runtime.remoting, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.runtime.serialization.formatters.soap, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.design, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.windows.forms, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'accessibility, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.drawing.design, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.web.regularexpressions, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.serviceprocess, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.configuration.install, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.identitymodel, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.messaging, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'system.identitymodel.selectors, version=3.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Warning: The Microsoft .NET Framework assembly 'microsoft.transactions.bridge, version=3.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
creating store procedure:
EXEC sp_executesql N'
CREATE PROCEDURE [spUMG_ProcessEmail]
@cid_request bigint
AS
EXTERNAL NAME [CredexDB].[UMG_StoredProcedures].[spUMG_ProcessEmail]'
IF (@@ERROR = 0)
BEGIN
DECLARE @procSchema sysname
DECLARE @procName sysname
SELECT @procSchema = SCHEMA_NAME(schema_id), @procName = name
FROM sys.objects
WHERE object_id = OBJECT_ID(N'[spUMG_ProcessEmail]')
EXEC sp_addextendedproperty 'AutoDeployed', N'yes',
'SCHEMA', @procSchema,
'PROCEDURE', @procName
EXEC sp_addextendedproperty 'SqlAssemblyFile', N'UMG\UMG.cs',
'SCHEMA', @procSchema,
'PROCEDURE', @procName
EXEC sp_addextendedproperty 'SqlAssemblyFileLine', 95,
'SCHEMA', @procSchema,
'PROCEDURE', @procName
END
Any tips?
Thank youand this moves me to another problem. the stored procedure spUMG_ProcessEmail is unable to find and read app.config
stored procedure is unable to read app.config. it is necesary to rewrite the xml config into c# code:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IUMG" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://umgwcftest/UMGwcf.svc" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IUMG" contract="IUMG"
name="BasicHttpBinding_IUMG" />
</client>
</system.serviceModel>
</configuration>
and the rewrited code:
BasicHttpBinding myBinding = new BasicHttpBinding();
myBinding.Name = "BasicHttpBinding_IUMG";
myBinding.CloseTimeout = new TimeSpan(00, 01, 00);
myBinding.OpenTimeout = new TimeSpan(00, 01, 00);
myBinding.ReceiveTimeout = new TimeSpan(00, 10, 00);
myBinding.CloseTimeout = new TimeSpan(00, 01, 00);
myBinding.AllowCookies = false;
myBinding.BypassProxyOnLocal = false;
myBinding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
myBinding.MaxBufferSize = 65536;
myBinding.MaxBufferPoolSize = 524288;
myBinding.MaxReceivedMessageSize = 65536;
myBinding.MessageEncoding = WSMessageEncoding.Text;
myBinding.TextEncoding = System.Text.Encoding.UTF8;
myBinding.TransferMode = TransferMode.Buffered;
myBinding.UseDefaultWebProxy = true;
myBinding.ReaderQuotas.MaxDepth = 32;
myBinding.ReaderQuotas.MaxStringContentLength = 8192;
myBinding.ReaderQuotas.MaxArrayLength = 16384;
myBinding.ReaderQuotas.MaxBytesPerRead = 4096;
myBinding.ReaderQuotas.MaxNameTableCharCount = 16384;
myBinding.Security.Mode = BasicHttpSecurityMode.None;
myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
myBinding.Security.Transport.Realm = "";
myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
myBinding.Security.Message.AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.Default;
EndpointAddress endPointAddress = new EndpointAddress(new Uri("http://umgwcftest/UMGwcf.svc"));
SqlContext.Pipe.Send("2");
UMGClient umgcl = new UMGClient(myBinding, endPointAddress);
after that, I got another error and it's solution is here:
error and solution
So I got it finaly working -
Slow Speed While fetching data from SQL 2008 using DoQuery.
Hello,
I am working for an AddOn and tried to use DoQuery for fetching data from SQL 2008 in C#.
There are around 148 records which full fill this query condition but it takes much time to fetch the data.
I wanna know that is there any problem in this code by which my application is getting slower.
I used break Points and checked it, I founds that while connecting to the server it is taking time.
Code:
// Get an initialized SBObob object
oSBObob = (SAPbobsCOM.SBObob)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge);
//// Get an initialized Recordset object
oRecordset = (SAPbobsCOM.Recordset)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
string sqlstring = "select DocEntry,ItemCode From OWOR where OWOR.Status='R' and DocEntry not in ( Select distinct(BaseRef) from IGE1 where IGE1.BaseRef = OWOR.DocEntry)";
oRecordset.DoQuery(sqlstring);
var ProductList = new BindingList<KeyValuePair<string, string>>();
ProductList.Add(new KeyValuePair<string, string>("", "---Please Select---"));
while (!(oRecordset.EoF))
ProductList.Add(new KeyValuePair<string, string>(oRecordset.Fields.Item(0).Value.ToString(), oRecordset.Fields.Item(0).Value.ToString() + " ( " + oRecordset.Fields.Item(1).Value.ToString() + " ) "));
oRecordset.MoveNext();
cmbProductionOrder.ValueMember = "Key";
cmbProductionOrder.DisplayMember = "Value";
Thanks and Regards,
Ravi SharmaHi Ravi,
your code and query look correct. But can you ellaborate a little bit.
It seems to be a DI API program ( no UI API ) ?
When you say "I founds that while connecting to the server it is taking time." do you mean the recordset query or the DI API connection to SBO ? The later would be "normal" since the connection can take up to 30 seconds.
To get data it is usually better to use direct SQL connections.
regards,
Maik -
Error mapping, OGG from SQL 2008 to Oracle 11g
Hi Experts
Please I hoppe you can help me, I am using OGG to replicate from SQL 2008 to Oracle 11g R2, I can insert rows and replicate without problems, but when I update or delete on the Source the replicat stop working.
This is the mesage:
2012-06-11 09:51:57 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, msrep.prm: Error mapping from FACTURA.EMP to GOLDENGATE.EMP.
2012-06-11 09:51:57 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, msrep.prm: PROCESS ABENDING.
--- Discard FIle
Key column FIRST_NAME (1) is missing from delete on table GOLDENGATE.EMP
Key column LAST_NAME (2) is missing from delete on table GOLDENGATE.EMP
Missing 2 key columns in delete for table GOLDENGATE.EMP.
Current time: 2012-06-11 09:51:57
Discarded record from action ABEND on error 0
Aborting transaction on /u01/app/goldenGate/dirdat/ms beginning at seqno 0 rba 13729
error at seqno 0 rba 13729
Problem replicating FACTURA.EMP to GOLDENGATE.EMP
Mapping problem with delete record (target format)...
ID = 121
Process Abending : 2012-06-11 09:51:57
------ SOURCE TABLE
create table [factura].[emp] (
[id] [smallint] not null,
[first_name] varchar(50) not null,
[last_name] varchar(50) not null,
constraint [emp_pk] 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]
------ TARGET TABLE
CREATE TABLE GOLDENGATE.EMP
ID NUMBER,
FIRST_NAME VARCHAR2(50 BYTE),
LAST_NAME VARCHAR2(50 BYTE)
Thank you
J.A.Hi
I altered the table in Oracle, I add the primary key:
alter table emp add constraint
pk_emp primary key (ID );
Now GG replicate insert, delete and update.
J.A. -
Moving Service Manager Database From SQL 2008 R2 SP2 to SQL 2012 SP1
Hi Guys,
Just looking for some clarification about moving our Service Manager 2012 R2 database to a new SQL Server.
Our Service Manager database is currently on a remote SQL server, shared with other databases, running SQL 2008 R2 SP2. It was originally setup this way as we only deployed Change Management but we are now wanting to deploy everything, fully
utilising SCSM/Orchestrator and Cireson's suite. Due to the limited resources available on that SQL server we are seeing performance issues before even getting it all up and running.
I want to move the Service Manager database to a new dedicated SQL server running SQL 2012 SP1. I am aware of the official DB move procedure but it does not specifically mention moving up SQL versions. I have seen some comments around here that
it is fine to do but some feedback would be good, it is not something I have done before.
All servers in this are fully patched Windows 2008 R2. Also, we do not currently have a Data Warehouse so do not need to worry about that. It was dropped and uninstalled before upgrading to Service Manager 2012 R2 and will be reinstalled after this DB move
using a separate dedicated SQL server.
Thanks, Chris.As long as your collations and permissions are the same as before it
should not be a problem. That sad i could not find any other documentation saying it's not supported.
I have moved SCSM databases between different SQL-versions before and it has worked fine if the collations etc are correct.
Cheers,
Thomas Strömberg
System Center Specialist
Blog:
Twitter: LinkedIn:
Please remember to 'Propose as answer' if you find a reply helpful -
Cannot refresh data in Excel Services with SQL Azure databases
I am using Excel Services on a SharePoint Online.
I get my data from a SQL Azure. When i create my Excel repor with Excel 2013 pro I have no problem. So I upload my file on my Sharepoint and try to refresh data.
Connexion : Power Query - RPT_Event_ByEventType
Erreur : Erreur sur site (OnPremise) : Sorry, the data source for this data connection isn't registered for Power BI. Ask your Power BI
admin to register the data source in the Power BI admin center.
I do not understad why I get that error because my data source is on Azure why It told me "OnPremise" ?hi,
>> this button of excel gets just address of web and have button for import it
i test it by rest API project , but doesn't work, do you know how it is work?
Do you mean that you don't know how to get the table? You may input the site address into the address box, and then click go button nearby, select the table you want to import into the Excel. Then click import button.That also works for rest API,
and your rest API should get the data that you want
By the way, this is the forum for discussions about Excel develop(VBA ,customization), better to go to TechNet forum for Excel for Excel features question, so that you could get more professional help.
Best Regards
Lan
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to uninstall Reporting Services on SQL 2008 R2?
Hi folks,
Does anyone know how to uninstall (and intall) Reporting Services without uninstalling SQL server. I have a reporting Services Instance that has gone wrong (Virtual Directories do not exist in IIS) and the RS Configuration tool will not
let me create a new set of directories (Option remains greyed out).
The SQL Server Repair option did not work when I tried that.Hi AndyW2007,
From SQL Server Reporting Services(SSRS) 2008, the SSRS is Internet Information Server(IIS) independence. This means there is no directory for Reporting Services under IIS.
In this case, please make sure the SSRS service is running, otherwise, we are not able to configure the Web Service URL and the Report Manager URL(means configuring the virtual directories).
Anyway, in order to uninstall SQL Server Reporting Services without uninstalling other SQL Server components, please follow this guide:
In Add/Remove programs
Click the 'Uninstall/Change' button for "SQL Server 2008 R2"
In the coming dialog, click 'Remove'
Click 'OK'
In the 'Select Instance' dialog, select the appropriate instance, and then click 'Next'
In the 'Select Features' dialog, please only select 'Reporting Services'
Then click 'Next' and 'Next' till the uninstalling process starting
If you have any more questions, please feel free to ask.
Thanks,
Jin Chen
Jin Chen - MSFT -
Upgrade FIM 2010 R2 Sp1 Databases from SQL 2008 R2 to SQL 2012
Hi,
I want to upgrade my SQL from 2008 R2 to SQL 2012.
FIM Databases
1) FIMService Database
2) FIMSynchronizationService Database
Mentioned above are my FIM databases running on SQL server 2008 R2 . Now I was looking for some article which could tell me if SQL can be upgraded without affecting my existing databases of FIM or if i can move these databases to a new server having SQL
2012
Activity I want to perform : Create a fresh Server of SQL 2012 and move my FIM 2010 databases over it by restoring the backups. but as per the link below it seems not possible!
http://social.technet.microsoft.com/wiki/contents/articles/5465.fimilm-how-to-move-the-backend-sql-server-synchronization-service-database.aspxHi Shivam,
Please take a look here: Release Notes for Forefront Identity Manager 2010 R2 SP1.
In the table you have tasks to upgrade SQL for FIMService and FIMSych.
FIM Service:
Upgrade FIM Service servers to FIM 2010 R2 SP1
Stop FIM Service on all servers
Backup Database [in case rollback needed]
Upgrade SQL to SQL Server 2012
Start FIM Service on all servers
FIM Synch:
Upgrade FIM Sync to FIM 2010 R2 SP1
Stop FIM Sync
Backup Database [in case rollback needed]
Upgrade SQL to SQL Server 2012
Start FIM Sync
If you are not making in-place upgrade, I would do something like here:
Stop FIM Services
Backup the databases at SQL 2008
Restore backed up databases on SQL 2012
Make sure SQL Agent Jobs are moved (FIMService)
Make sure Broker is enabled on FIMService database
On FIM machines create SQL alias using cliconfg utility. Alias should have the name of "old(sql2008) SQL" and point to new name/instance.
Start FIM Services - they would use "old" name to connect, but it would be translated to new location. So they would start.
If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer. -
SCCM 2007 database move from SQL 2008 to SQL 2012 SP1
Hi,
today we tried with moving the sccm DB from our SQL 2008 to SQL 2012. The whole DB process was a success but what bugs me is the reporting services which we also have.
Does the reporting service make automatic transition to the box or do i have to configure separately if yes how?
Also how do we retire the DB on the old server?
Thank you,This would be manual process. The simplest way to fix them is to reinstall the reporting point.
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
Linked Server from SQL 2008 to Connect to 2012 read only replica never works
I have two Production Database Servers
1. SQLServer2008 (2 Nodes Cluster)
2. SQLServer2012 with 2 read only replica (3 Nodes Cluster)
I would like to draw a line here, We have routing table and URL working perfectly fine.
We have tested LINKED Server from 2012 Box to production Server by Specifying APPLICATIONINTENT = ReadOnly; it works perfectly fine, the routing is being used.
When we create linked server from SQL Server 2008 Box (Please note we have installed SQL Server 2012 Client tools on this box and Restarted the Servers) using the below script
USE [master]
EXEC master.dbo.sp_dropserver @server=N'AGL1', @droplogins='droplogins'
GO
EXEC master.dbo.sp_addlinkedserver @server = N'AGL1'
,@datasrc='AGL1'
,@provider='SQLNCLI11'
,@provstr='ApplicationIntent=ReadOnly;Database=AdventureWorks2012'
Linked Server is created, Now when I run the Query
exec ('select @@servername') at AGL1
It always brings the Primary READ/WRITE node name only, after lots of research I found that, this linked Server is always using SQL Native Client 10.0 only, even after creating Linked Server using SNC 11, That is the reason it is not going to routing
table. Its always connecting to Primary node.
Below is the way I found it, on 2012 Production Server I executed below Query
SELECT session_id, protocol_type, driver_version =
CASE SUBSTRING(CAST(protocol_version AS BINARY(4)), 1,1)
WHEN 0x70 THEN 'SQL Server 7.0'
WHEN 0x71 THEN 'SQL Server 2000'
WHEN 0x72 THEN 'SQL Server 2005'
WHEN 0x73 THEN 'SQL Server 2008'
ELSE 'SQL Server 2012'
END,client_net_address ,client_tcp_port,local_tcp_port ,T.text
FROM sys.dm_exec_connections
CROSS APPLY sys.dm_exec_sql_text(most_recent_sql_handle) AS T
The help is taken from msdn (Link Provided below) for the above Query
https://msdn.microsoft.com/en-us/library/dd339982.aspx
and I found it always uses SQL Server 2008 SNC.
My Question is, is there a way to force SQL Server to use SQL Server Native Client 11.
Has anyone tried this setup?
Thank you in advance.Unfortunately no, there is no other way of forcing it without restart. The SQL Server stack has no idea of the existing Native Client as it booted prior its installation. And you cannot force "DLL reload" without proper service restart.
Ivan Donev MCT and MCSE Data Platform -
SQL query is slow after upgrading from SQL 2008 to SQL 2008 R2
Hello
We were using SQL 2008 Standard, but after upgrading to R2, following query is much slower (takes 5 seconds instead of less than 1 second), how is this possible?
Regards, Hennie
SELECT
P.BSN,
P.Persnr,
P.Roepnaam,
P.Tussenvoegsels,
P.Achternaam,
P.Geslacht,
COALESCE (P.Achternaam + ', ' + P.Roepnaam + ' ' + P.Tussenvoegsels, P.Achternaam + ', ' + P.Roepnaam, P.Achternaam) AS naamvolledig,
P.Telmobiel,
P.Telvast,
P.Postcode,
G.groep,
COALESCE (RM.nieuweDag, GR.Dag) AS dag,
COALESCE (RM.nieuweDatum, GR.datum) AS datum,
DATEPART(ww, COALESCE (RM.nieuweDatum, GR.datum)) AS weeknummer,
DATEPART(yyyy, COALESCE (RM.nieuweDatum, GR.datum)) AS jaar,
CONVERT(VARCHAR(8),
CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweBegintijd,
CASE WHEN GR.Tijdspan = 2 THEN R.begintijd2 ELSE R.begintijd END)
ELSE COALESCE (RM.nieuweBegintijd, GR.begintijd) END, 108) AS begintijdberekend,
CONVERT(VARCHAR(8),
CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweEindtijd,
CASE WHEN GR.Tijdspan = 2 THEN R.eindtijd2 ELSE R.eindtijd END)
ELSE COALESCE (RM.nieuweEindtijd, GR.eindtijd) END, 108) AS eindtijdberekend,
CASE WHEN GR.ID_lokaties = 3 THEN
CONVERT(NCHAR(5), COALESCE (RM.nieuweBegintijd,CASE WHEN GR.Tijdspan = 2 THEN R.begintijd2 ELSE R.begintijd END), 108) + '-' +
CONVERT(NCHAR(5), COALESCE (RM.nieuweEindtijd, CASE WHEN GR.Tijdspan = 2 THEN R.eindtijd2 ELSE R.eindtijd END), 108)
ELSE CONVERT(NCHAR(5),COALESCE (RM.nieuweBegintijd, GR.begintijd), 108) + '-' + CONVERT(NCHAR(5), COALESCE (RM.nieuweEindtijd, GR.eindtijd), 108)
END AS Tijdspanne,
CASE
WHEN GR.ID_lokaties = 3 AND R.id_relaties = 9 THEN 'Werk Intern'
WHEN GR.ID_lokaties = 3 THEN R.relatienaam
ELSE L.lokatie END AS Lokatieberekend,
R.relatienaam AS relatie,
L.IntExt,
RA.Omschrijving AS roosteractiviteit,
A.instroomdatum,
A.uitstroomdatum,
TT.trajecttype,
W.Naamvolledig AS Werkcoach,
A.ID_groepen,
T.ID_personen,
A.ID_werkcoaches,
CASE
WHEN GR.ID_lokaties = 3 AND R.id_relaties = 9 THEN 20
WHEN GR.ID_lokaties = 3 THEN R.id_relaties
ELSE L.ID_relaties END AS ID_lokatieberekend,
A.ID_relaties AS ID_relatie,
R.nummer2 AS capaciteit,
GR.ID_groepsroosters,
CAST(CASE WHEN foto IS NOT NULL THEN 'Ja' ELSE NULL END AS char(2)) AS Foto,
W.Email,
W.TelefoonMobiel,
W.TelefoonVast
FROM
dbo.personen AS P INNER JOIN
dbo.trajecten AS T ON T.ID_personen = P.ID_personen INNER JOIN
dbo.trajecttype AS TT ON T.ID_trajecttype = TT.ID_trajecttype INNER JOIN
dbo.trajectactiviteiten AS A ON A.ID_trajecten = T.ID_trajecten INNER JOIN
dbo.groepsroosters AS GR ON GR.ID_groepen = A.ID_groepen LEFT OUTER JOIN
dbo.roosteractiviteit AS RA ON GR.ID_roosteractiviteit = RA.ID_roosteractiviteit INNER JOIN
dbo.lokaties AS L ON GR.ID_lokaties = L.ID_lokaties INNER JOIN
dbo.werkcoaches AS W ON A.ID_werkcoaches = W.ID_werkcoaches INNER JOIN
dbo.groepen AS G ON A.ID_groepen = G.ID_groepen LEFT OUTER JOIN
dbo.relaties AS R ON A.ID_relaties = R.ID_relaties LEFT OUTER JOIN
dbo.roostermutaties AS RM ON P.ID_personen = RM.ID_personen AND GR.ID_groepsroosters = RM.ID_groepsroosters AND RM.aanwezig IS NULL
WHERE
(COALESCE (RM.nieuweDatum, GR.datum) BETWEEN GETDATE() - 1 AND GETDATE() + 13)
AND (COALESCE (DATEDIFF(day, COALESCE (RM.nieuweDatum, GR.datum), A.uitstroomdatum), 0) >= 0)
AND (DATEDIFF(day, A.instroomdatum, COALESCE (RM.nieuweDatum, GR.datum)) >= 0)
AND ((SELECT COUNT(*) AS Expr1
FROM dbo.roostermutaties AS RM2
WHERE (P.ID_personen = ID_personen)
AND (GR.ID_groepsroosters = ID_groepsroosters)
AND (CONVERT(VARCHAR(8), begintijdafwezig, 108) = CONVERT(VARCHAR(8),
CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweBegintijd,
CASE WHEN GR.Tijdspan = 2 THEN R.begintijd2 ELSE R.begintijd END)
ELSE COALESCE (RM.nieuweBegintijd, GR.begintijd) END, 108)) AND
(CONVERT(VARCHAR(8), eindtijdafwezig, 108) = CONVERT(VARCHAR(8), CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweEindtijd,
CASE WHEN GR.Tijdspan = 2 THEN R.eindtijd2 ELSE R.eindtijd END) ELSE COALESCE (RM.nieuweEindtijd, GR.eindtijd) END, 108))) = 0)We were using SQL 2008 Standard, but after upgrading to R2, following query is much slower (takes 5 seconds instead of less than 1 second), how is this possible?
It is not uncommon to experience performance problems following an upgrade when there are issues with original query. Non-sargable expressions like Olaf called out are often the culprit, as well as lack of useful indexes and statistics.
The optimizer cannot glean accurate row count estimates or use indexes efficiently so the resultant plan may not be optimal for the task at hand. It is only by happenstance that old plan performed better; it could just as well be the other way around,
but again only by chance since the optimizer is guessing.
You might also try using EXISTS instead of SELECT COUNT(*)...= 0:
AND EXISTS(SELECT *
FROM dbo.roostermutaties AS RM2
WHERE P.ID_personen = ID_personen
AND GR.ID_groepsroosters = ID_groepsroosters
AND CONVERT(VARCHAR(8), begintijdafwezig, 108) = CONVERT(VARCHAR(8),
CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweBegintijd,
CASE WHEN GR.Tijdspan = 2 THEN R.begintijd2 ELSE R.begintijd END)
ELSE COALESCE (RM.nieuweBegintijd, GR.begintijd) END, 108)
AND CONVERT(VARCHAR(8), eindtijdafwezig, 108) = CONVERT(VARCHAR(8), CASE WHEN GR.ID_lokaties = 3 THEN COALESCE (RM.nieuweEindtijd,
CASE WHEN GR.Tijdspan = 2 THEN R.eindtijd2 ELSE R.eindtijd END) ELSE COALESCE (RM.nieuweEindtijd, GR.eindtijd) END, 108))
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
I originally had excel web app working on prem, but since it didn't support powerview I tried my luck with excel services.
I switched to excel services by using the new-SPWOPISuppressionSetting cmdlet.
I figured to return to excel web app, I would just use the remove-SPWOPISupressionSetting cmdlet, but I removed the suppression setting and even reboot the server and it's still using excel services!
What do I have to do at this point, reinstall office web app completely? Its still working for word and powerpoint, why didn't it take back over for excel? Any tips?
ThanksHi,
From your description, my understanding is that you want to
remove the suppression settings for excel.
I could try these point below:
1.
Test the issue with another browser.
2.
Test the issue with another computer.
3.
Try to clear the cookie of your browser and test your issue.
4.
Try restart the IIS with command iisreset.
Please try command
Get-SPWOPISuppressionSetting to get
all the suppression settings on the current SharePoint farm to check if the excel is suppressed or not. You could refer to this article:
https://technet.microsoft.com/en-us/library/jj219445.aspx.
As word and PowerPoint work well, you could try command
Remove-SPWOPISuppressionSetting -Extension "XLSX" -Action "view" that you could refer to this article:
https://technet.microsoft.com/en-us/library/jj219452.aspx?f=255&MSPPError=-2147217396.
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Consuming oData service from SSIS 2008 R2
Is there possibilities to consume oData service feed from SSIS 2008-R2, any component that can be used ?
There is no such built in specific functionality, but an OData feed is typically merely a WebService which an HTTP call away that you can do using the WebServies task, download as XML and process.
Arthur My Blog -
Hi,
I had installed SQL Server 2012 PowerPivot on WFE and App Server. This is test farm with 1 WFE and 1 APP and 1 SQL Server.
However, we had a heap of issues with Windows Claims Authentication and PowerPivot - issues were raised with "unable to make a connection to EntityDataSource" . Now we uninstalled the PowerPivot and Reporting Services features and wanted to install
with the SQL Server 2012 with SP2. Originally SP2 was installed seperately and we had read there had been issues.
Anyway on trying to install the features again using the SQL Server 2012 with SP2 iso I get
Could not open key UNKNOWN\Components
I don't want to start deleting or changing permissions as quite dodgey. What is this key for anyway and how do I resolve my issue.
Thanks.
John.Hi John,
Did you meet the error message during the process of configuring the PowerPivot for SharePoint?
If yes, I suppose that the existing features or components have not been uninstalled completely.
I recommend to delete the two keys left when uninstalling the PowerPivot and please make a copy of the registry keys before you delete the two keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\ServiceProxies\Microsoft.AnalysisServices.Sharepoint.Integration.MidTierServiceProxy
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\ServiceProxies\Microsoft.AnalysisServices.Sharepoint.Integration.MidTierServicea
Please check the steps in the link below to see if there anything wrong when you uninstalling the PowerPivot and then re-install it to see how it works:
https://technet.microsoft.com/en-us/library/ff487866(v=sql.110).aspx
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Import data from Excel to MS-SQL 2008?
I'm taking data from excel, exporting it to a csv file.
Importing it forst to Access so I can see if it fails and then using the SQL Server Import Export Wizard to pull it in.
It keeps failing and there's very little information on the internet that points me to a solution.
If I just let it create it's own tables, it does fine but I need it to import the data in specific character types.
So, I think my problem goes back to Access and it's way of setting character types.
Anyone else have this problem? Solutions?
ThanksIf anyone is wondering.
It tuned out to be the data in the Excel file, being old and abused, it had a lot of "junk" in the rows.
I ended up just copying all the columns and rows and pasted "Special" (with values) back in new rows and that seem to have gottem me past the major errors. I hate how Excel is so loose with the rules. You ad that to the fact that a lot of people that don't know how to use Excel and you end up with a mixure that's not good.
It seems that everyone here at this company uses Excel and because there aren't any rules and because Excel is so easy to start using, it gets messy.
In most cases here, people should be using Access but I doubt that's going to happen.
Man, I miss the NNTP server.
Maybe you are looking for
-
Calling a session bean from another bean
Hi, Using weblogic server 6.1, I am trying to call a session bean, B, from a session bean A. After importing B's package, I have added the following code to A's implementation: try { Properties h = new Properties(); h.putContext.INITIAL_CONTEXT_FACTO
-
Hi, Do the folio overlays created using CS5.5 need to be created again when changing the file to a CS6 version? For example, a scrollable frame is created in the Indesign file/folio while using Indesign CS5.5. Then later, the file is opened and saved
-
New Site created is hidden on Desktop (mac)
I did a newbie kinda thing today. I was playing around with some new things in dreamweaver and decided to create a new temporary site on the desktop of my mac. But when I created the new site, I chose the desktop as where it would be located. When my
-
Time Machine not doing any backups.
Hello, Recently, my TM is unable to do any backups on my Imac. It was working before, however when I initiate the backup now... it starts with the message "Calculating changes" and it sat there the whole night. When I verify the log it tells me the f
-
How do you correct [ALERT] Message too large. http://support.google.com/mail/bin/answer.py?answer=8770?