11g with a SQL Server Data Source
I'm using 11.1.1.5 of OBIEE and trying to connect to a SQL Server 2008 data source. I've created the ODBC System DSN using the SQL Server driver. I've created a repository and am able to Import Metadata from the SQL Server database. I had to check "Require Fully Qualified Table Names" in the properties of the connection pool so now I can Update Rows from the tables and also View Data. So at this point it seems like everything is working fine. I created a very basic BM&M and then the Presentation layer.
Now I go into Answers and try to create a new Analysis. I select the Subject Area and see all the columns. I just select one column and click Results and receive the following error:
View Display Error
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 01000 code: 5 message: [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()).. [nQSError: 16001] ODBC error state: 08001 code: 17 message: [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.. (HY000)
SQL Issued: SELECT 0 s_0, "PDSS UPS"."LOB"."description" s_1 FROM "PDSS UPS"
Here is the SQL sent to the database:
select distinct 0 as c1,
D1.c1 as c2
from
(select distinct T4757."description" as c1
from
(select lob."description",
lob."ID"
from "SIKOMSReporting"."sikoms".LOB) T4757
) D1
order by c2
I've also tried creating a direct database request, but no matter what kind of SQL I put in it does not work via the connection pool.
So everything seems to work from Admin, but not from Analysis.
Does anyone have a clue about this? Is there something special I need to do when dealing with SQL Server?
Thanks for any help you can provide.
Brad
Hi,
I understand this is a microsoft issue. Request you to look at http://support.microsoft.com/kb/888228. As per Microsoft this error might come when any of the following conditions are true..
SQL Server 2005 or SQL Server 2000 is installed on a cluster.
You are connecting to a SQL Server named instance by using TCP/IP sockets.
IPSec policy is enabled on the client domain.
IPSec policy is not enabled on the server domain.
To work around this problem, you have to hardcode the TCP port or the Named Pipe of the SQL Server named instance. To do this, use a connection string that is similar to one of the following:
[oledb]
; Hardcoded TCP OLE DB initstring
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=clientID;Data Source=tcp:TcpIpAddress,port
[oledb]
; Hardcoded Named Pipes OLE DB initstring
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=clientID;Data Source=np:\\ServerName\pipe\MSSQL$InstanceName\sql\query
Hope this helps.
Thank you,
Dhar
Similar Messages
-
BI Trial version & SQL Server Data Source
Hi All,
I want to know Is it possible to create the SQL Server Data SOurce on the BI trial Version 7.0. Kindly let me know if I Want install or configure more. thanks for your support in advance.
Thanks & regards,
ShivaHi Shiva:
Please refer to SAP Note 512739 - "BW external DB Connect for MS SQLServer"
In case you need general information of DB Connect for other Databases take a look at the paper below.
"Transferring Data with DB Connect"
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2f0fea94-0501-0010-829c-d6b5c2ae5e40?quicklink=index&overridelayout=true
Regards,
Francisco Milán.
Edited by: Francisco Milan on Jun 4, 2010 8:30 PM -
Create SQL server data source programmatially
Hi,
I'd like to create a SQL server data source programmatically in LabVIEW. The SQL server version I used is 2005. Can anyone give some ideas? A code example will be most favorable.
Thanks,
Jane
Solved!
Go to Solution.Dan put it well. All you need is a connection string and those are easy to build. There are even a couple website that do nothing but publish template connection strings for every DBMS on the planet.
The only point I would quibble over is about using the database connectivity toolkit. The DCT is an unnecessary complication that is ultimately counter productive because it limits your support options. When I get into the office in a few hours I will post a link to an alternative that actually simplifies the process and is free.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Unable to refresh SQL Server data source through Data Management Gateway
I just installed the version 1.1.5226.8 of Data Management Gateway and tried to refresh a simple query on a table connected to SQL Server, with no transformations in Power Query.
This is the error I obtain:
Errors in the high-level relational engine. The following exception occurred while the managed IDataReader interface was being used: transfer service job status is invalid.
I am wondering whether my Power BI is still not updated to handle such a connection type, or there could be something else not working?
I correctly created the data source in admin panel following instructions in Release Notes, and
test Power Query connection is ok.
Marco Russo http://www.sqlbi.com http://www.powerpivotworkshop.com http://sqlblog.com/blogs/marco_russoI made other tests and I found important information (maybe there is a bug, but read the following).
The functions DateTime.LocalNow and DateTime.FixedLocalNow
work correctly, generating these statements to SQL Server:
convert(datetime2, '2014-05-03 06:37:52.1135108') as [LocalNow],
convert(datetime2, '2014-05-03 06:37:52.0525061') as [FixedLocalNow],
The functions DateTimeZone.FixedLocalNow, DateTimeZone.FixedUtcNow,
DateTimeZone.LocalNow, and DateTimeZone.UtcNow
stop the scheduled refresh with the error I mentioned
in my previous messages, generating these statements to SQL Server:
'2014-05-03 06:37:52.0525061+02:00' as [TZFixedLocalNow],
'2014-05-03 04:37:52.0525061+00:00' as [TZFixedUtcNow],
'2014-05-03 06:37:52.1135108+02:00' as [TZLocalNow],
'2014-05-03 04:37:52.1135108+00:00' as [TZUtcNow]
I solved the issue by placing the DateTimeZone calls after a Table.Buffer call, so query folding does not translate in SQL these functions. However, it seems like something to fix.
Marco Russo http://www.sqlbi.com http://www.powerpivotworkshop.com http://sqlblog.com/blogs/marco_russo -
No HS to remote SQL Server Data Source using NT Authentication?
I am attemping to use Generic Connectivity to pull SQL Server 2000 data into 10g.
We have the DSN configured, the oracle files modified properly (we have done similar setups before), and are able to successfully tnsping the SQL Server.
However, after creating our database, when trying to execute a query against the remote source I receive the following error message:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver][SQL
Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. (SQL State: 28000;
SQL Code: 18456)
ORA-02063: preceding 2 lines from IDW_LINK
As the message indicates that the error is coming from the SQL Server, I assume a connection is being established.
I remember reading postings here from a couple years back about HS not being able to connect to remote SQL Servers when NT Authentication is required. Is this still the case?
I did in fact provide to the link my "domain\username", "password" combination that has access to the sql server, but this is of course using NT Authentication.
Any ideas on why HS would be sending "NT AUTHORITY\ANONYMOUS" to the sql server? Is this still the already existing problem of no NT Auth for remote data sources?Have you found a solution for this? Thanks.
-
Why do I get timeout when deploying SQL Server data source in Weblogic Admin Console?
Hi all
I'm attempting connectivity between WLS 10.3.6.0 and SQL Server 2008R. I've downloaded sqljdbc4.jar and added to the end of the Weblogic Classpath in commEnv.cmd. Then I set up a data source in Admin Console and pressed the Test Data Source button - success. But when I tick the box to deploy to AdminServer it hangs for ages and I get timeout exception.
Any ideas?
Many thanks
JamesMake sure the web server settings between the QA and the Production servers are also compatible.
I suspect your suspecion about permissions is the closest to the answer. But this is a little out of my depth of expertise.
Realize that ColdFusion default behavior is to NOT generate and actual swf FILE. Rather what it does is generate the swf content in memory and directly deliver it to the client. But if the web server is configured to look for an actual file system file you may have a clash going on -
Fields Cannot Display when create SQL Server Data Source
Hi, All
I want to create a data source from a sqlserver source system, but the fields of the sqlserver views could not display in the suggestion screen, and the fields of the data source could not be added either.
How can I do it? Thanks.
Best Regards,
Jiande DingHello Jiande,
Are you loading to BW using the DB connect option? If yes then the problem may be due to an authorization issue,
please follow the steps given in the SAP note 512739 to setup and configure the connection correctly.
Best Regards,
Des -
Microsoft Sql Server data source ???
I'm trying to use the Microsoft Sql Server 2000 jdbc driver (without any success) in developing a small jsp app: specifically, I'm trying to set connection in web.xml as follows
<context-param>
<param-name>
javax.servlet.jsp.jstl.sql.dataSource
</param-name>
<param-value>
??? What the heck is the value for Microsoft SQL Server 2000 ???
</param-value>
</context-param>
(basically, this code is swiped from Ch. 12 of Bergsten's book, Java Server Pages - his example uses jdbc-odbc bridge driver).you need to Specify that the physical table object is a stored procedure. When you select this option, you type the stored procedure in the text box. Requests for this table will call the stored procedure.
For stored procedures that are database specific, select the Use database specific SQL check box. At run time, if a stored procedure has been defined, the stored procedure will be executed.
In the table properties, you need to create columns manually. -
Hi,
Can someone tell me what maximum values can I set in the following properties under Connection Attributes when I define a DataSource on
Application Server. I have almost 25+ web application deployed on my 10.1.2.0.2 server that all uses one data source I have defined. Now the issue is the number of requests
are very high and every now and then I get timeout error when trying to get the database connection. At one particular instance at peak time I may get over 200+ requests that
do some databse connections etc. Following are my current settings. But need to increase some more but wondering what are the maximum values I can have. I have only one server 10.1.2.0.2
Connection Retry Interval (seconds) = 5
Max Connection Attempts = 3
Cached Connection Inactivity Timeout (seconds) = 30
Maximum Open Connections = 60
Minimum Open Connections = 10
Wait For Free Connection Timeout (seconds) = 15
What other properties can I have to make use of datasource effectively.
ThanksHere is the copy of my datasources.xml.
<?xml version = '1.0' standalone = 'yes'?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources-9_04.dtd">
<data-sources>
<!--
An example/default DataSource that uses
Oracle JDBC-driver to create the connections.
This tag creates all the needed kinds
of data-sources, transactional, pooled and EJB-aware sources.
The source generally used in application code is the "EJB"
one - it provides transactional safety and connection
pooling. Oracle thin driver could be used as well,
like below.
url="jdbc:oracle:thin:@host:port:sid"
-->
<data-source class="com.evermind.sql.DriverManagerDataSource" name="OracleDS"
location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS"
ejb-location="jdbc/OracleDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="scott" password="tiger"
url="jdbc:oracle:thin:@//localhost:1521/oracle.regress.rdbms.dev.us.oracle.com"
inactivity-timeout="30"/>
<!-- For SQL Server -->
<data-source location="jdbc/TestDS"
class="com.microsoft.jdbcx.sqlserver.SQLServerDataSource"
password="pwd" xa-location="jdbc/TestDS"
ejb-location="jdbc/TestDS"
connection-driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
username="usr"
url="jdbc:microsoft:sqlserver://someloc99:1433/DevelopmentAp"
inactivity-timeout="30" name="jdbc/TestDS"
connection-retry-interval="5" max-connections="50"
max-connect-attempts="3">
<description>jdbc/TestDS</description>
<property name="DatabaseName" value="DevelopmentAp"/>
<property name="serverName" value="someloc99"/>
</data-source>
</data-sources>I also tried changing max-connections="0" it did helped but still after sometime I get timeout while connecting to the database. Don't know if it's with SQL Server that is not letting that many concurrent connections/sessions or something on the Application Server side.
Thanks
Message was edited by:
WhiteSox
Message was edited by:
WhiteSox -
Send encrypted data from oracle 11g to Ms SQL Server 12
Hi every body,
we want to send encrypted data from oracle 11g to Ms SQL Server 12:
- data are encrypted to oracle
- data should be sent encrypted to Ms SQL server
- data will be decrypted in Ms SQL server by sensitive users.
How can we do this senario, any one has contact simlare senario?
can we use asymetric encription to do this senario?
Please Help!!
Thanks in advance.Hi,
What you want to do about copying data from Oracle to SQL*Server using insert will work with the 12c gateway. There was a problem trying to do this using the 11.2 gateway but it should be fixed with the 12c gateway.
If 'insert' doesn't work then you can use the SQLPLUS 'copy' command, for example -
SQL> COPY FROM SCOTT/TIGER@ORACLEDB -
INSERT SCOTT.EMP@MSQL -
USING SELECT * FROM EMP
There is further information in this note available on My Oracle Support -
Copying Data Between an Oracle Database and Non-Oracle Foreign Data Stores or Databases Using Gateways (Doc ID 171790.1)
However, if the data is encrypted already in the Oracle database then it will be sent in the encrypted format. The gateway cannot decrypt the data before it is sent to SQL*Server.
There is no specific documentation about the gateways and TDE. TDE encrypts the data as it is in the Oracle database but I doubt that SQL*Server will be able to de-encrypt the Oracle data if it is passed in encrypted format and as far as I know it is not designed to be used for non-Oracle databases.
The Gateway encrypts data as it is sent across the network for security but doesn't encrypt the data at source in the same way as TDE does.
Regards,
Mike -
MCTS 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012
I am searching for training kit for Exam 70-466 (Implementing Data Models and Reports with Microsoft SQL Server 2012) but I think is not published yet. I was expecting its release in Jan or Feb 2014. Would any one can tell me its release date or any place
where I can find this book.
Thanks
Hi Azhar lqbal Gondal,
According to your description, since the issue regards training and certification,
I suggest you post the question in the Learning forums at
http://social.technet.microsoft.com/Forums/en-US/home?category=learning. It is appropriate and more experts will assist you. If you have a specific technical question about Microsoft SQL Server,
you can visit and post your question on the SQL Server Forum.
There is some detail about Exam 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012, you can review the following articles.
Exam content can be found here:
http://www.microsoft.com/learning/en-us/exam-70-466.aspx
http://borntolearn.mslearn.net/certification/database/w/wiki/525.466-implementing-data-models-and-reports-with-microsoft-sql-server-2012.aspx#fbid=Mn-t6aRhs-H
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
We have SSIS installed on a machine that is not part of a cluster but it is accessible by the cluster.
Our job we have running on the cluster is failing with the following error:
Error: 2014-01-31 09:14:37.52 Code: 0xC000F427 Source: SCR - DP1 Connections
Description: To run a SSIS package outside of SQL Server Data Tools you must install SCR - DP1 Connections of Integration Services or higher. End Error
Any advice or information on how to resolve this would be great.
Many Thanks.Hi NessaBella,
Integration Services service is not a cluster-aware service, and does not support failover from one cluster node to another. Therefore, in a clustered environment, Integration Services should be installed and started as a stand-alone service on each node
in the cluster.
Based on the error message, it seems that SSIS is not installed on the cluster node on which the job was running. Although SSIS is installed on a machine that is not part of the cluster and can be accessed by each cluster node, the SSIS service installed
on a remote server cannot be used a cluster node. So, please install the shared feature SQL Server Integration Services on each cluster node. Besides, if certain packages need to run in 32-bit mode in certain jobs and the SQL Server installed is 64-bit version,
you also need to install BIDS/SSDT on the cluster node to get the 32-bit runtime of SSIS.
References:
Integration Services (SSIS) in a Cluster
Loading and Running a Remote Package Programmatically
Regards,
Mike Yin
TechNet Community Support -
Access SQL-Server Data from Oracle 10gXE
Hello,
I want to access sql-server data from oracle 10g XE. I need the same functionality provided by Sql-server by Linked Servers, by which we can query on any data source(oracle, Excel, Access).
do, Oracle 10gXE provide us with same functionality ???
any pointers ???Yes, it does work with Express Edition.
Here is a thread from the XE forum with examples.
Re: Database Link to MS Access
They refer to a MS Access database, but the procedure is the same.
Doug -
How to get JDev 10.1.2/ADF working with MS SQL Server Identity Column
Hello JDevTeam & JDevelopers,
I want to use JDev/ADF with a MS SQL Server 2005 database that contains tables employing IDENTITY Columns.
Using JDev/ADF and DBSequence with an Oracle database employing before triggers/sequences accomplishes what I am trying to do except I want to accomplish the same thing using a MSSQL Server 2005 database. Unfortunately I cannot change the database.
I have been able to select records but I am unable to insert records (due to my lack of knowledge) when using MS/SQL Server Identity Columns with JDev/ADF.
The following are the steps taken thus far.
Step1: Create table named test in the 2005 MSSQL Server (see script below).
Step2: Register 3rd Party JDBC Driver with JDeveloper; Using use Tools/Manage Libraries. Create a new entry in User Libraries with the following;
Library Name = Ms2005Jdbc
Class Path = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu\sqljdbc.jar
(note: Latest TYPE 4 JDBC driver for Microsoft SQL Server 2005 - free at http://msdn.microsoft.com/data/ref/jdbc/)
Step3:Create New Database Connection;
Connection Name = testconn1
Type = Third Party JDBC Driver
Authentication Username = sa, Password = password, Check Deploy Password
Connection
Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver
Library = Ms2005Jdbc
Classpath = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu
URL = jdbc:sqlserver://192.168.1.151:1433;instanceName=sqlexpress;databaseName=test
Test Connection = Success!
Step5: Create a new application workspace using Web Application default template
Step6: In Model project, Create new Business Components Diagram.
Step7: Create new Entity Object. Goto to connections/testconn1, open tables and drag table test onto the diagram.
Step8: Generate Default Data Model Components by right-clicking on Entity Object. Except all the defaults.
When I test the Appmodule I select the view object and can scroll through all the records without error. If I try to insert a record, I get JBO-27014: Attribute testid in test is required.
Going back to the EntityObject I deselect the Mandatory attribute and re-run the test. Now when I try to insert it accepts the value for testname but it does not update the PK testid like it would using an "JDev/ADF/DBSequence/Oracle database/before trigger/sequence" solution.
Going back to the EntityObject and selecting refresh on insert does not solve this problem either. Changing the URL connection string and adding "SelectMethod=cursor" did not help and changing the SQl Flavor to SQLServer produced errors in the Business Components Browser. I've tried overriding isAttributeChanged() and other things as well.
I am totally stuck! Can anyone provide a solution?
Thanks for you help,
BG...
Create table named test
use [testdb]
go
set ansi_nulls on
go
set quoted_identifier on
go
create table [test](
[testid] [int] identity(0,1) not null,
[testname] [nvarchar](50) collate sql_latin1_general_cp1_ci_as not null,
constraint [pk_test] primary key nonclustered
[testid] asc
)with (pad_index = off, ignore_dup_key = off) on [primary]
) on [primary]Figured it out!
When using the MS SQL Server 2000 Database with the MS JDBC 2000 Driver you specify the SQL Flavor to SQLServer. However setting the SQL Flavor to SQLServer with MS SQL Server 2005 Database and the MS JDBC 2005 Driver will *** fail ***.
When working with the MS SQL Server 2005 Database and the MS JDBC 2005 Driver you set the SQL Flavor to SQL92 and the Type Map to Java.
If using a named instance like I am you would specify the URL = jdbc:sqlserver://<db host ip address>:<listening port>;instanceName=<your instance name>;selectMethod=cursor;databaseName=<your database name> (note: leave out the < >)
The 2005 Driver Class is different then the 2000 and is specified as com.microsoft.sqlserver.jdbc.SQLServerDriver
Note: In a default MS SQL Server 2005 installation the listening port will change *** everytime *** the host is restarted! You can override this though.
For the primary key you need to deselect the Mandatory attribute in the EntityObject editor.
Set Refresh on insert/update = no.
Set Updateable = never.
Now my Primary Keys which get their values from the Identity Column are working with ADF in a predictable way.
Simple enough but I have been away from this stuff for awhile.
BG... -
Failure Installing SQL Server Data Tools 2012 on Windows 8.1
I am trying to install SQL Server 2012 with SQL Server Data Tools on my laptop with Windows 8.1 standard edition. It fails each time when it gets to the SSDT installation with the same 1935 error, other features still install. The error
text is as follows:
The following error has occurred:
SQL Server Setup has encountered an error when running a Windows Installer file.
Windows Installer error message: An error occurred during the installation of assembly 'Microsoft.VC80.CRT,version="8.0.50727.4053",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="amd64",type="win32"'. Please
refer to Help and Support for more information. HRESULT: 0x80073715.
Windows Installer file: F:\1033_ENU_LP\x64\setup\x64\SharedManagementObjects.msi
Windows Installer log file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140220_201634\SharedManagementObjects_Cpu64_1.log
Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC80C325
I have disabled any antivirus software that may have been interfering and am not sure what else to try. Any assistance on how to resolve this error would be greatly appreciated.Hello,
Please read the following article about the cause of that error:
http://support.microsoft.com/kb/2688946/en-us
I would like to recommend you the following procedure:
http://www.sqlcoffee.com/SQLServer2012_0008.htm
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com
Maybe you are looking for
-
Escrituração de CT-e - Livro fiscal de entrada
Bom dia, Ao usarmos o processo de recebimento de CT-e via folha de serviço, ativamos as condições de ICMS sem credito e IPI sem calculo (IPI0) no IVA e marcamos o mesmo como serviço. Ao gerar a Nota fiscal (57) na MIRO a condição IPI0 (previamente at
-
How do I make a custom page size in Acrobat X pro?
I downloaded a gigantic trial version of Acrobat X pro to create a full PDF book cover. I was unable to figure out how to make the program do anything at all. The help file and forums did not give me the information I needed. Eventually I was able to
-
Embedded objects when converting a word document
Hello ng, a word document contains other documents as embedded objects shown as a symbol. When converting this document with Acrobat Standard or Professional the symbols are converted as non functional picture. So the embeddes document can't be opene
-
Guys, how about being able to clear "Recent"?
It would be nice to be able to clear "Recent". I was so overwhelmed with ALL my prior viewing of files. Ok. Great App.
-
Installing EPM 11.1.1.3 on Solaris x64
Hello Gurus, I am not able to install EPM 11.1.1.3 on Solaris x64. I am facing an issue while I execute installTool.sh. It gives me an error Cannot execute <filename> Could anyone please help. What are the steps that I need to keep in mind before doi