SQL Server 2005 data in SAP BI

Hi All !
Having a requirment to pull the SQL Sever 2005 data in SAP BI. How you go about for creating the datasource? As I understand SQL maintains tables. We can create views based on the table. But how to generate the Datasource of out it?
With Regards
Rekha

Hi Rekha:
You might want to consider connecting from BW to SQL Server using either DB Connect or UD Connect (by defining a Source System).
The contents of tables or views on the SQL Server side can be sent to BW after defining the corresponding DataSources.
Regards,
Francisco Milán.

Similar Messages

  • Size of SQL Server 2005 Database for SAP B1 2005 B is heavy

    Hi all,
    In my company we are working with SAP B1 2005 B SP 25.
    Our Database is in SQL Server 2005. Its Size reaches 6 GB in less then two years periods.
    Can Any body guide me to reduce the size or how to maintain database. Can we split Database in SAP B1 ?
    Due to the size users getting less speed
    Awaiting your valuable guidance for the same.
    Best Regards,
    Chintesh Soni

    Hi Chintesh,
    I would advise caution doing any of the things suggested in SAP Note 548772. In particular, I strongly recommend you do NOT set auto-shrink on. This is a really bad idea on a production database and I can't understand why SAP would suggest it.
    Is it the data file that is 6GB or the overall size of the database (ie data and log files)? If your log file is large  then this can slow performance. I recommend setting up transaction log backups on an hourly basis. This is good practice and not only keeps the log file healthy but also gives you the option to recover your data to the last transaction log backup in the case of an emergency. If you don't want transaction log backups then do as the SAP note mentions and set the recovery model to simple and do a once-off truncation of the log file.
    Are you doing regular maintenance on the database (ie rebuilding indexes, updating statistics)? Are you monitoring fragmentation on the data drive and doing a defrag occasionally to keep the drive healthy?
    Kind Regards,
    Owen

  • SQL Server 2005 data pull from Oracle

    Hi, I am learning how to use Oracle and I ran into this problem.
    My database is running on SQL Server 2005.
    I have an ODBC connection to Oracle. I also have a VB .Net script that queries the Oracle table that the data resides in.
    When the job is running, and if it stalls, I do not get a timeout error. It locks down my database and no other source systems can feed data to me; these are back logged in the queue.
    Is there an easier way for me to make a connection that will pull data on a consistent basis? Please help ...
    Student Learner

    Learning how to use Oracle does not include taking data from Oracle and putting it into SQL Server.
    From your description of what is happening I agree with BluShadow. This is not an Oracle issue. This is a coding in VB .NET issue.
    Posting the statements you are executing against some unknown version of Oracle would be a good starting point.

  • MS SQL Server 2005 Data Conversion Problem

    Hello all,
    I'm using the Microsoft JDBC Driver with SQL Server 2005 and getting an exception from the database server indicating that it is attempting to convert an nvarchar to an int (SQL Error 8114). This is the stack trace and code. I've exhausted all my resources... anybody have an idea?
    com.microsoft.sqlserver.jdbc.SQLServerException: Error converting data type nvarchar to int.
    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
    at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.getPrepExecResponse(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement (Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PreparedStatementExecutionRequest.executeStatement(Unknown Source)
    at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.execute(Unknown Source)
    at com.boeing.ict.workmonitor.swing.JMainFrame$33.insertIntoDB (JMainFrame.java:986)
    at com.boeing.ict.workmonitor.utils.SafeUDPWorker.respond(SafeUDPWorker.java:65)
    at com.boeing.ict.workmonitor.utils.SafeNetWorker.runWork(SafeNetWorker.java:113)
    at com.boeing.ict.workmonitor.utils.SafeNetWorker.access$000 (SafeNetWorker.java:21)
    at com.boeing.ict.workmonitor.utils.SafeNetWorker$1.run(SafeNetWorker.java:59)
    at java.lang.Thread.run(Unknown Source)
        private void listenToCOTMessages() {
            // the listener has not started yet.
            if (cotMessageWorker == null) {
                cotMessageWorker = new SafeUDPWorker() {
                    public void insertIntoDB(Iterator<NameValuePair> nvPairs) {
                        try {
                            int numParameters = 0;
                            if (isDebugMode()) {
                                System.err.println("Entered insertIntoDB");
                            while (nvPairs.hasNext()) {
                                NameValuePair pair = nvPairs.next();
                                // Aircraft callsign
                                if (pair.getName().equalsIgnoreCase("callsign")) {
                                    cotStatement.setString(1, pair.getValue());
                                    // debug code
                                    System.err.println("{1} " + pair.getValue());
                                    cotStatement.setString(2, pair.getValue());
                                    // debug code
                                    System.err.println("{2} " + pair.getValue());
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // Aircraft altitude (meters)
                                else if (pair.getName().equalsIgnoreCase("hae")) {
                                    int height = Integer.parseInt(pair.getValue());
                                    height = (int)((height * 39.37) / 12);
                                    cotStatement.setInt(3, height);
                                    // debug code
                                    System.err.println("{3} " + height);
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // aircraft latitude N/S (+/-)
                                else if (pair.getName().equalsIgnoreCase("lat")) {
                                    String rawLatitude = pair.getValue();
                                    // we have a south latitude
                                    if (rawLatitude.charAt(0) == '-') {
                                        // we need to append an " S"
                                    } else {
                                        rawLatitude = rawLatitude.substring(1) + " S";
                                    cotStatement.setString (4, rawLatitude);
                                    System.err.println("{4} " + rawLatitude);
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // aircraft longitude E/W (+/-)
                                else if (pair.getName ().equalsIgnoreCase("lon")) {
                                    String rawLongitude = pair.getValue();
                                    // we have a west longitude
                                    if (rawLongitude.charAt (0) == '-') {
                                        rawLongitude = rawLongitude.substring(1) + " W";
                                    cotStatement.setString(5, rawLongitude);
                                    // debug code
                                    System.err.println("{5}" + rawLongitude);
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // aircraft course
                                else if (pair.getName().equalsIgnoreCase("course")) {
                                    cotStatement.setString(6, pair.getValue());
                                    // debug code
                                    System.err.println("{6} " + pair.getValue());
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                // we have a speed number
                                else if (pair.getName ().equalsIgnoreCase("speed")) {
                                    cotStatement.setInt(7, Integer.parseInt(pair.getValue()));
                                    System.err.println("{7} " + pair.getValue ());
                                    numParameters++;
                                    if (numParameters > 7)
                                        break;
                                else {
                                    continue;
                            // execute the callable statement
                            cotStatement.execute();
                        } catch (SQLException ex) {
                            ex.printStackTrace();
                            // statusPanel.getStatusTextArea().append( ex.getMessage());
                // set the debugging mode
                cotMessageWorker.setDebugMode(debugMode);
                // set the output area for the worker
                cotMessageWorker.setMessageArea(cotTextArea);
                String portField = cotPortTextField.getText();
                // get the port setting from the portTextField
                if (portField.length() != 0) {
                    try {
                        cotMessageWorker.setPort(Integer.parseInt(portField));
                    } catch (NumberFormatException nfe) {
                        cotPortTextField.setBackground(Color.RED);
                cotMessageWorker.setStatusArea(statusPanel.getStatusTextArea());
                // set the java.sql.Statement object to do the data insertion
                if (cotStatement != null)
                    cotMessageWorker.setSqlStatement(cotStatement);
                cotMessageWorker.start();
            } else { // the listener has started
                // there are no errors generated for making multiple resume requests
                cotMessageWorker.resumeRequest();
        }

    Ideas? Not really, there's nothing wrong-looking about your code, but maybe I could ask some dumb questions.
    Has this code never worked, or does it usually work but occasionally this error occurs? Have you just switched to SQL Server 2005 from 2000 and the error started happening?
    Does the table you are inserting to only have those 7 columns, or are there others that are getting default values? Does it contain auto-generated identity columns? Are you sure you're using the right table in the right database?

  • MS SQL Server 2005 data types

    Hi,
    I have some code that executes a stored procedure in SQL Server 2005 database from Weblogic 8.1. There is a Spring framework layer in between. I am having problems passing a datetime parameter to the SP (ther server thinks it's a varchar). According to the BEA documentation here http://edocs.bea.com/wls/docs100/jdbc_drivers/mssqlserver.html#wp1088746, a datetime parameter should be passed as java.sql.Types.TIMESTAMP. I've tried TIMESTAMP, DATE, TIME, and none of them work. But, that documentation says it's only for SQL Server 2000. What about 2005? Does anyone know?
    Thanks in advance.

    We use SQL2005 & WebLogic 8.1, but we use the Microsoft JDBC driver form here
    and it all works fine with timestamps. We use this datatype to pass them down java.sql.Timestamp
    http://www.microsoft.com/downloads/details.aspx?familyid=C47053EB-3B64-4794-950D-81E1EC91C1BA&displaylang=en
    The MS driver has some enhancements specifically for SQL2005 for performance and handling the new data types. We've always been told to use the vendors driver in preference to the BEA supplied one - that came from BEA!
    Pete

  • Upgrade SQL Server 2000to SQL Server 2005 in an SAP environment

    Hi,
    I have a scenario in which we are going to upgrade SQL server 2000 to SQL server 2005 in SAP an environment.
    Now SQL server has a concept of In-Place Upgrade and Side-by-Side Migration Process.I want to know what does both of these mean.
    We have an SAP note(799058.It talks about the upgrade in Step II.Is it the same as In-Place Upgrade concept in SQL?
    What is step III in the note talking about? Is it talking about Side-by-Side Migration?
    It would be of gr8 help if someone could provide the conceptual knowledge on these and what does the note mentioned above talks.

    Hello
    Please review my post on SQL upgrade.
    SAP on SQL Server
    You may also like to review
    http://www.microsoft.ie/downloads/itprosql-90.ppt#568,17,Demo
    Can you please advise your DB size and the max. amount of downtime your business can afford?
    I will check, but I am almost sure that a side-by-side SQL upgrade is not appropriate for SAP systems.
    Thanks
    N.P.C

  • Sql server - 2005 - Data Protection Tool

    Hi,
    We are looking any Data Security tool for out existing Data for Protection, we would like to do the Data Encryption and Data masking with some user activity reporting.
    Anyone know any good tool?
    Right now we are looking tool which one has minimal application rewriting or code changes.
    Thanks,

    Those features were added in SQL Server and weren't available in 2005. Except EFS and Bitlocker which are implementations outside SQL Server.
    Tibor Karaszi, SQL Server MVP |
    web | blog

  • Database backup strategy(MS sql server 2005, Winodws 2003, SAP ECC 6.00)

    Hello gurus,
        I am confused, about the backup system i should go for(backup device, abckup software)?? Fllowing is my SAP Landscape.
    1) IDES
    2) Solution manager
    3) Development
    4) BIW
    no of users 25 max
    modules implemented
    MM
    HR
    FICO
    BIW
    <b>    I want to implemente before go live, backup system in my company.</b>
    We have received backup schedule from our implementation partner. Our backup system is as follows.
    Backup device is HP Surestore Autoloader.
    Cartridge capacity is 100/200GB
    Backup software is Veritas (version 8.6)
    Note: Through this we take backup of our legacy system and it takes around 3 1/2 hour to 4 hours to take backup of 60 GB of our legacy data.
         Right now the problem is our backup software version is old and i even believe, the hardware we have is not sufficient to take daily database backup and fortnightly, SAP system backup.
        The only solution to the problem i can see is
    1) to go for another backup device exclusively for SAP system
    2) Even go for SQL Agent software used to take backup of SAP system thorugh Veritas.
    3) Even upgrade my Veritas version.
    <b>   Its a request to GURUS</b>
    1) Is the solution, i am thinking to this issue is correct.?? If no then please advice me
    2) Please tell me the best backup system in your opinion for my above mentioned system.
    Thanks Gurus
    Rahul

    Hello,
    A indication of the size of each database would be helpful.
    However, its NOT a good idea to take only one on line backup a week. What if you have a tape error and cant recover a TL? You have no chance for recovery. This is not best practice. Can the business except a 4,5 or even 6 days loss of data - id guess not.
    This is what id do if you don't want to purchase a new device, I would take an online backups from SQL to disk every night - this would be a separate disk! From the disk you can the pick up the backup to take at a time to suit that wont impact the existing backup. Plus you always have two copies of the backup. One on disk, one on tape.
    My normal transaction log strategy is similar, again backup to disk, every hour on a production system. Then after midnight move the existing 24 logs into an archive folder. This folder would also be picked up by the existing device at a suitable time before being moved to a 'saved' folder and deleted the next day. Again you always have multiple copies of the data. two on disk, two on tape.

  • Changing installation PATH on SQL Server 2005 with SAP DVD

    Hi experts,
    i would like to install SQL Server 2005 delivered by SAP on another disk, for example D: instead of C:\Program files\
    i read the note 363018 but there's no solution to my problem.
    Thanks in advanced for your help.
    Pascal.

    Hi Markus,
    yes, that's what i have expected but i m not good enought to find the changement to do.
    Am i allowed to post the script?
    Thanks.

  • Upgrade data base from sql server 2005 to sql server2008

    Hi guys,
    What is the best way for upgrade my SQL Server 2005 data base to SQL 2008?

    It depends on how you want migrate, in-place or side-by-side?
    In-place: Run a backup of all databases and then install the new SQL Server version
    Side-by-side: Install the new SQL Server, backup all database of old SQL Server and restore them on the new one. Then copy all logins from old to new server.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Sql server replication from SQL SERVER VERSION(7.0) to SQL SERVER 2005

    Hi All,
    We are trying to create a replication between Sql server 7.0 data to SQL server 2005 data . We tried to create a local subscription in Sql server ,when tried to connect to publisher  running in Sql server 7.0 it is showing an error message
    like "This Sql server vresion(7.0) is not supported" .
    Could any one please help us with this issue ?
    Thanks
    Sandy

    Hi CRM_Learner,
    SQL Server version 7.0 Service Pack 4 (SP4) is the earliest version that can participate in a replication topology with SQL Server 2005. We need to verify the version of SQL Server. If you configure transactional replication with updating subscribers,
    for a SQL Server 7.0 Publisher, only SQL Server 7.0 Subscribers are supported. SQL Server 7.0, 2000 was out of support in the SQL Server Forums. I suggest you install SQL Server 2005 or later version to configure the SQL Server replication.
    For more information, there is a detail about using multiple Versions of SQL Server in a replication topology.
    http://technet.microsoft.com/en-us/library/ms143241(v=sql.90).aspx
    Regards,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • HOM: MS SQL Server 2000 - MS SQL Server 2005 [sp sap_use_var_MAX]

    Hi guys,
    Procedure
    Homogeneous System Copy on SQL Server
    Source Platform
    Windows 2003 Server x86
    SQL Server 2000 SP4
    SQL_Latin1_General_CP850_BIN2
    SAP R/3 4.7 x200
    SAP Kernel 6.40 Patch 347 x86 (Sep 10 2010)
    SAP_BASIS 620 Patch 69
    Target Platform
    Windows 2008 Server x64
    SQL Server 2005 SP3
    SQL_Latin1_General_CP850_BIN2
    SAP R/3 4.7 x200
    SAP Kernel 6.40 Patch 347 x64 (Sep 10 2010)
    SAP_BASIS 620 Patch 69
    Symptom
    When running STM (SAP Tools for SQL Server) on the target server I get the following error:
    - Errors when executing sql command: (Microsoft)(ODBC SQL Server Driver)(SQL Server)Could not find stored procedure u2018sap_use_var_MAXu2019.
    Further Analysis
    I'm able to start the SAP system.
    Tx SICK returns the following:
    - Wrong long datatypes. Perform SQL Server after upgrade steps. Please see note 126973
    Troubleshooting
    Note 126973 - SICK messages with MS SQL Server
    Solution:
    Proceed as described in Note 1291861
    Note 1291861 - SICK message: Wrong long datatypes
    2. If the problem occurred following a system copy from SQL Server 2000 to SQL Server 2005 or later then execute the following statements:
      setuser 'sid'
      exec sap_use_var_MAX
    Where 'sid' is the SAPSID of your system in lower case.
      setuser 'dev'
      exec sap_use_var_MAX
    Msg 2812, Level 16, State 62, Line 2
    Could not find stored procedure 'sap_use_var_MAX'.
    Request
    I'm thinking if any one of you is able to access an SAP system on SQL Server (2005 or other) with the above mentioned stored procedure present you could scipt it to a txt file and post it here in order for me to create it manually on my system.
    I've checked several SAP Notes on this subject and none of them explains how to create this store procedure from scratch, they all just assume it's already there and tell you to execute it.
    Thank you.
    Bruno Pereira

    I was able to solve this issue just now the following way:
    - A friend of mine scripted it to a file which I then used to create the sap_use_var_MAX on the target database.
    Here is a copy of that file:
    USE [<SID>]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    create proc [<sid>].[sap_use_var_MAX] as
    begin
      declare @tabname sysname
      declare @colname sysname
      declare @datatype sysname
      declare @nullflag nvarchar(1)
      declare @cmd nvarchar(1024)
      declare @n_altered int
      declare c cursor for
        select t.TABLE_NAME,c.COLUMN_NAME,c.DATA_TYPE,
                  nullflag = substring(c.IS_NULLABLE,1,1)
          from INFORMATION_SCHEMA.COLUMNS c,
               INFORMATION_SCHEMA.TABLES t
          where c.TABLE_NAME = t.TABLE_NAME AND
                c.TABLE_SCHEMA = t.TABLE_SCHEMA AND
                t.TABLE_TYPE like '%TABLE%' AND
                c.TABLE_SCHEMA = schema_name() AND
                c.DATA_TYPE IN ('text','ntext','image')
          order by t.TABLE_NAME,c.COLUMN_NAME
      open c
      set @n_altered = 0
      fetch next from c into @tabname,@colname,@datatype,@nullflag
      while (@@fetch_status <> -1)
      begin
        if (@@fetch_status <> -2)
        begin
          set @cmd = N'alter table [' + @tabname +
                      N'] alter column [' + @colname +
                      N'] '
          if @datatype = N'text'
            set @cmd = @cmd + N'varchar(MAX)'
          else if @datatype = N'ntext'
            set @cmd = @cmd + N'nvarchar(MAX)'
          else
            set @cmd = @cmd + N'varbinary(MAX)'
          if @nullflag = N'N'
              set @cmd = @cmd + ' NOT NULL'
          else
              set @cmd = @cmd + ' NULL'
          -- print @cmd
          exec( @cmd )
          set @n_altered = @n_altered + 1
        end
        fetch next from c into @tabname,@colname,@datatype,@nullflag
      end
      close c
      deallocate c
      select convert(varchar,@n_altered) + N' columns were altered'
    end -- sap_use_var_MAX
    Mind you, you'll have to change <SID> and <sid> acoordingly, considering also if your db is dbo schema or sid schema owned!
    Thank you for your help nonetheless!
    Bruno Pereira

  • Error in adding PRIMARY Data file of SQL Server 2005

    Hi Experts,
    I am using SQL 2005 as back end database for SAP ECC6. Due to Space problem in PRD data volume, i have added PRDDATA4.ndf file in SSMS ( SQL Server Management Studio) and saved. But, suddenly i got one more idea and extended the file size of exisiting PRDDATA1.mdf, PRDDATA2.ndf & PRDDATA3.ndf immediately i removed the PRDDATA4.ndf file before starting the service. But, while seeing in SAP using ST04 it showing the PRDDATA4.ndf with error message of file missing. What i have to do now? How can i delete the information showing in ST04. But it is not showing in SSMS.
    Please help how to solve this.
    Regards,
    B.Sudharsan

    Hi,
    Following solution might help you to resolve the issue.
    Solution1:
    Issue happens because universe connection to the Database is not responding and the Data Source Name is not configured to write SQL Server 2005 database.
    Resolution
    Created new DSN connection under SYSTEM DSN to SQL Server 2005 Database.
    Import the universe from the designer.
    Go to File->Parameters.
    Edit Connection.
    On the Database Middleware Page expand SQl Server 2005->Select SQL Server 2005 driver.
    Change the DSN to new DSN connection
    Test the connection.
    Save the Universe and Export it to the repository.
    Solution2:
    I am taking Oracle as an example over here.
    This can be caused when the SQLNET.ora is located in a remote location using mapped drives.
    Resolution
    To resolve,
    check the registry [HKLM\SOFTWARE\ORACLE] you should see a folder called HOME0
    look for any paths that contain a mapped drive partition
    Change the mapped drive letter to a UNC path (
    server\folder)
    Open a command prompt and do a tnsping using the tnsname and verify the location of the SQLNET.ora or TNSNAMES.ora
    If the path is not updated to the new path
    Reboot the server
    Regards,
    Sarbhjeet Kaur

  • Can't see data in data tab - sql server 2005

    hello,
    i am connected to a sql server 2005 database (with jtds driver), the connection is ok, i see the tables but i can't see data in data tab.
    i have an error : incorrect syntax
    somebody can help me ?
    thank's in advance
    alex

    definitely. I was going to say, make sure you have the privileges to read data.
    From Microsoft SQL Server 2000 on, it is recommended that you are a member of the db_datareader - so that data in the database can be read
    Barry

  • SQL server 2005 SP3 can run SAP B1 2005A SP01 PL51

    Hi All,
    I could successfully install SAP B1 2005A SP01 PL51 in the SQL server 2005 SP3.
    In this link:
    http://service.sap.com/smb/sbo/platforms
    you won't find it such info.
    Why I upgrade, it is caused by the printing error issue using citrix.
    Anyone of you that have problem after run the B1 on that SQL, pls share.
    Someone who need webex file that shows the install process can request it to me. Let me know.
    Rgds,

    Hi Arshdeep,
    Thx for your reply. I just wonder why SAP did not inform the availability SP3 from Microsoft and the explanation about the inapplicable of SP3 for SAP B1 in the B1 platform link.
    I have  tested without using any steps and any other procedures. Practice is a good lesson to learn for me. Nevertheless, one concern from modern customers are the compatibility or adaptibility of SAP B1 to Microsoft product especially SQL since it is one of database platform.
    Old-fashioned customer will disregard that because they will think as long as my SAP B1 and SQL server still run well, I don't care..
    Rgds,

Maybe you are looking for

  • Export to PDF question

    When using InDesign's Export to PDF feature to make a PDF of a book, InDesign is converting the front matter page  numbers from roman numerals (i, ii, iii) to regular numbers (1, 2, 3) in the slug line (page info) of the resulting PDF. How can I expo

  • Front Row Video problem

    For some reason whenever i go to Front Row and go to the video section, it goes directly back to the desktop. I have restarted my computer twice and the same thing happened. Does anybody know a fix? P.S. I have tiger so its not the most recent versio

  • IMac graphics card availability?

    I have an iMac circa 2008 and am told it needs a replacement graphics card. However it appears that a low spec cheaper card is not available and I need to replace with more expensive higher spec card. The price difference is well over £100 pounds. I'

  • What is happening to Excel Online? Keep freezing and failing

    What's is going on? I typed numbers into a cell, it refuses to treat it as numbers, and align it to the left of the cell. And this is in an existing table, and all the old cells (meaning those with values I typed in before) in the same columns are tr

  • NullPointerException - collection

    I got lot of errors regarding this - I read the NullPointerException in the API - it states that if the collection is null, then it should return the NullPointerException. I was trying to evaluate the three collections - if they are empty. I tried tw