NI SQL database changing name of field

I'm connected to a NI database. I want to change the name of a field. Can I just change the database scheme, or is there something more to be done?

see the metalink note Note:224266.1, if you have metalink account. This note has clearly explained hoe to change DBID and DBNAME. I used to follow these steps when changing DBID and DBNAME.

Similar Messages

  • MS Access returns a SQL Database date field as text

    When linking to a table via ODBC to a SQL database, Access returns any field that is formatted as 'Date' as a 'Text' field. A Date/Time field works fine. I cannot change the SQL Database.  Is there a fix for this?

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Which version of Access and SQL server do you use?
    Do you use ODBC Driver 11 for SQL server?
    Based on my test (My environment: Access 2013, SQL server 2014, and ODBC Driver 11 for SQL server), I can't reproduce your issue. Regardless  of "Date" and "Date/Time" data type of SQL, both of them can be linked to Access
    that are formatted as Date/Time type.
    I suppose this issue may be caused by the data. For example, if the date like: 2015--2--23, it can't be recognized as date type in Access. Please try to check it.
    If you have any update, please feel free let me know.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Apostrophe displays incorrectly in SQL database

    MySQL, PHP, Dreamweaver CS4
    I have a SQL database that has text fields. If the user enters text that includes an apostrophe (such as the word don't or it's), when the text is displayed on the website, the apostrophe is replaced by a small box. How can I get this character to display correctly? I had contacted Adobe support directly, and they said to post the question on DEVNET. I had posted this question a month ago, but have received no answers. So I am trying again.

    The reason it's displayed as a small box is almost certainly because the user has pasted the text from a program like Word that uses "smart quotes". Depending on how your website is set up, it's likely that the smart quotes are not being encoded correctly.
    The first thing to check is that all the pages in your website use UTF-8 encoding. If that doesn't fix the problem, you will need to filter the text before inserting it into the database to replace the smart quotes with ordinary ones. I don't have a handy snippet of code to do that, so see if the encoding sorts out the problem.

  • Generating next number from the SQL database using java

    Hi friends, I have a problem and need your help. I am working on a project about submitting claims form through the adobe PDF file and SQL database. I have problem working on a web service (written in java) that will generate the next Invoice Number from the SQL Database table. The field type for the column is text(var char). *Example: I first need to get into the table and search for the last Invoice number in the table and if the last invoice number in the table from the database is 3, i would want to generate the next number which is 4 and filled it up in the PDF file through web service that i am implementing. Can you all provide me some guidelines on how to implement this method in my web service?
    Thanks a lot. I need it by today. Hope someone can reply this as soon as possible.
    Lim89
    Edited by: LIM89 on Apr 2, 2008 7:10 PM

    far simpler to use a sequence generator, which most databases support.
    Suggested method to get the max value in the column is NOT secure, unless you lock the entire table for update before you do so, which is a severe performance penalty.

  • Changes in resource name in Monitor Matrix for SQL Database @ Azure portal

    hi
    Exact 4 months after starting of new SQL database tier, Resource Matrix changed.
    old names :
    CPU percentage
    Log Write percentage
    Physical Data Read percentage
    new names are:
    CPU
    LogIO
    DataIO
    My question is they are equal :
    CPU percentage = CPU   (looks OK)
    Log Write percentage = LogIO  (Log Writes means IN but IO means both (in and out))
    Physical Data Read percentage = DataIO  (Read means OUT but IO means both (in and out))
    If they are different then what is change ?

    Hi,
    We use the
    sys.resource_stats catalog view to monitor the resource usage of your Azure SQL Database and compare current resource utilization to different performance levels . The CPU Percentage, Physical Data Reads percentage, Log Writes Percentage show the average
    utilization percentage relative to the DTU of your database. For more information, see:
    http://msdn.microsoft.com/en-us/library/azure/dn369873.aspx
    And now, we upgrade the monitor metrics name for CPU and IO activity of SQL Azure database. If you add the metrics of Data IO or Log IO individually in Monitor Page, it will show the same name with Physical Data Reads percentage and Log Writes Percentage,
    you can refer to the following screenshot.
    After I adding the Data IO, it will show as Physical Data Reads percentage in Monitor Page.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Passing plsql parm to a sql statement in the procedure  database link name

    Would like to pass a parm that is the database link name to a stored procedure.  I defined this as below. var1 is the name of the db link that I would like to pass
    create or replace procedure   proc1  (var1 in varchar2) as
    cursor c1 is
    select num,name,city from emp@var1;
    However, this is getting a plsql error in the above code   as bad bind variable, db link name expected.
    Is there a method to pass a variable within a stored proc into a SQL statement that has a cursor ..
    thanks

    Hi,
    Database links have to be hard-coded.  If you really need to specify the database link at run-time, then you need Dyanmic SQL.
    Why do you need to do this?   How many databases are involved?  Do you have new database links all the time?  The more you can say about your business requirements, the more helpful we can be.
    Are there only a couple of possible database links?  If so,  you might consider hard-coding each of them, and branching to the appropriate one in your code.
    is the real variable here the environment (Development, Test, Production) that you're in?  For example, do you need to use one database link in Development, a different one in Test, and a third in Production, but you don't want to change the code when you move from one environment to another?  If so, you can try conditional comilation.

  • Error  While Polling Database changes using Custom SQL

    Hi,
    I am using Oralce SOA Suite 11g DbAdapter for polling Database changes.
    My source database is DB2,I am using custom query for polling the changes in source database.
    I am using "Update an External Sequencing Table on a Different Database" polling Strategy
    Query section of the Mapping file is as follows.
    <querying xsi:type="query-policy">
    <queries>
    <query name="ReceiveF554102TXEDataSelect" xsi:type="read-all-query">
    <call xsi:type="sql-call">
    <sql><![CDATA[SELECT FILE_NAME, LIBRARY_NAME,
                   USER_NAME, SEQUENCE_NUM,
                   JOURNAL_CODE, ENTRY_TYPE, TIME_STAMP, JOB_NAME, JOB_USER,
                   JOB_NUMBER, PROGRAM_NAME, ARM_NUMBER, ADDRESS_FAMILY, RMT_ADDRESS,
                   REMOTE_PORT, SYSTEM_NAME, REL_RECORD, OTRCLN, IBMCU, IBITM, IBLITM,
                   IBAITM, IBY55ETAFR, IBY55ETATH, IBY55NUM01, IBY55NUM02, IBY55NUM03,
                   IBY55NUM04, IBY55NUM05, IBY55NUM06, IBY55NUM07, IBY55NUM08,
                   IBY55NUM09, IBY55NUM10, IBELM01, IBELM02, IBELM03, IBELM04, IBELM05, IBY55STR01,
                   IBY55STR02, IBY55STR03, IBY55STR04, IBY55STR05, IBY55CHA01,
                   IBY55CHA02, IBY55CHA03, IBY55CHA04, IBY55CHA05, IBY55DAT01, IBY55DAT02,
                   IBY55DAT03, IBY55DAT04, IBY55DAT05, IBUSER, IBPID, IBJOBN, IBUPMT,
                   IBUPMJ FROM PY_JRNMON.F554102T WHERE ((TIME_STAMP > (SELECT LAST_READ_DATE FROM SOALIB.SOASEQHDR WHERE (TABLE_NAME = 'F554102T'))) AND (TIME_STAMP < SYSDATE)) ORDER BY TIME_STAMP ASC]]> </sql>
    </call>
    <reference-class>ReceiveF554102TXEData.F554102T</reference-class>
    <lock-mode>none</lock-mode>
    <container xsi:type="list-container-policy">
    <collection-type>java.util.Vector</collection-type>
    </container>
    </query>
    </queries>
    <delete-query xsi:type="delete-object-query">
    <call xsi:type="sql-call">
    <sql>UPDATE SOALIB.SOASEQHDR SET LAST_READ_DATE = #LAST_READ_DATE WHERE (TABLE_NAME = 'F554102T')</sql>
    </call>
    </delete-query>
    </querying>
    I am getting following Error after defining the custom SQL in my mapping.xml file. (After executing the Created Process)
    Caused by: BINDING.JCA-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    Caused by BINDING.JCA-11626
    Query Not Found Exception.
    Could not find Named Query [ReceiveSampleCustomPollSelect] with ? arguments, belonging to Descriptor [ReceiveSampleCustomPoll.F554102T] for [oracle.tip.adapter.db.DBActivationSpec@2ec733b0] inside of mappings xml file: [ReceiveSampleCustomPoll-or-mappings.xml].
    You may have changed the queryName info in either the _db.jca or toplink-mappings.xml files so that they no longer match.
    Make sure that the queryName in the activation/interactionSpec and in the Mappings.xml file match. If an old version of the descriptor has been loaded by the database adapter, you may need to bounce the app server. If the same descriptor is described in two separate Mappings.xml files, make sure both versions include this named query.
    You may need to configure the connection settings in the deployment descriptor (i.e. DbAdapter.rar#META-INF/weblogic-ra.xml) and restart the server. This exception is considered not retriable, likely due to a modelling mistake. This polling process will shut down, unless the fault is related to processing a particular row, in which case polling will continue but the row will be rejected (faulted).
         at oracle.tip.adapter.db.exceptions.DBResourceException.createNonRetriableException(DBResourceException.java:653)
         at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:619)
         at oracle.tip.adapter.db.exceptions.DBResourceException.couldNotCreateTopLinkSessionException(DBResourceException.java:291)
         at oracle.tip.adapter.db.DBManagedConnectionFactory.acquireSession(DBManagedConnectionFactory.java:883)
         at oracle.tip.adapter.db.transaction.DBTransaction.getSession(DBTransaction.java:375)
         at oracle.tip.adapter.db.DBConnection.getSession(DBConnection.java:266)
         at oracle.tip.adapter.db.InboundWork.init(InboundWork.java:322)
         at oracle.tip.adapter.db.InboundWork.run(InboundWork.java:526)
         ... 4 more
    Caused by: BINDING.JCA-11626
    Query Not Found Exception.
    Could not find Named Query [ReceiveSampleCustomPollSelect] with ? arguments, belonging to Descriptor [ReceiveSampleCustomPoll.F554102T] for [oracle.tip.adapter.db.DBActivationSpec@2ec733b0] inside of mappings xml file: [ReceiveSampleCustomPoll-or-mappings.xml].
    You may have changed the queryName info in either the _db.jca or toplink-mappings.xml files so that they no longer match.
    Make sure that the queryName in the activation/interactionSpec and in the Mappings.xml file match. If an old version of the descriptor has been loaded by the database adapter, you may need to bounce the app server. If the same descriptor is described in two separate Mappings.xml files, make sure both versions include this named query.
         at oracle.tip.adapter.db.exceptions.DBResourceException.queryNotFoundException(DBResourceException.java:694)
         at oracle.tip.adapter.db.ox.TopLinkXMLProjectInitializer.initializeQuery(TopLinkXMLProjectInitializer.java:1238)
         at oracle.tip.adapter.db.DBManagedConnectionFactory.acquireSession(DBManagedConnectionFactory.java:728)
         ... 8 more
    Help required to fit custom SQL in mapping.xml file for complex queries.
    Thanks,
    Arun Jadhav.

    "Execuite Custom SQL" in DB adapter and you'l get it.
    But in this case you'll have to implement your own polling strategy (if you need one).
    If you want to use one of the predefined polling strategy you should use "Poll for New or Changed records" and import all the tables you use and connect them in wizard.

  • SQL Server 2000 database GETDATE() default for field

    I have a SQL Server 2000 database where the createDate field
    has a default value of GETDATE() and the data type is datetime. It
    is inserting the date just fine, but I do not want to capture the
    time along with the date. I only want the date to be entered. How
    can I accomplish this? Thanks!

    IF you only wanted to store the date, then yes you would use
    that as the column default value.
    createDate datetime default convert(datetime,
    convert(varchar, getDate(), 102), 102)
    However, as paross1 cautioned be sure you understand you will
    only be capturing the date from now on. If you change your mind
    later, and decide you need both the created date and time, you will
    be seriously out of luck. A safer choice might be to keep the date
    and time, and use convert in your queries instead.

  • Updating pl/sql package after major database changes

    Hi,
    This thread to know if there is any utility which allow to impact changes made on a database, on the pl/sql packages. I have a datawarehouse, which was partially rebuild, a lot of tables have changed name etc... All the data of this DWH is load and treated with pl/sq procedures, and i would like to know if there is any utility, or if you have any advices or workaround to easily impact those changes on the pl sql packages. (Please forgive me for my very bad english.). Thanks by advance

    I haven't explored too much about this SQL Developer Data Modeler tool, but so far from my experience using it, this tool is not better than Oracle Designer in the Oracle Dev Suite 10g.
    Therefore, I don't think this tool is capable doing that "magic" think to automatically remap the packages after DDL (maybe wrong).
    Not sure if the more expensive tools like TOAD Data Modeler or ER Win can do this.
    Perhaps you can write DDL Triggers to automatically capture whenever there is any modification in your tables.
    HTH

  • Resolve database service name using in SQL

    Hi all!
    My question is:
    Is it possible to resolve database service name (e.g. TNS) from SQL only (without logging into the server with oracle user and execute tnsping)?
    I'll give you a bit background about my question:
    In DataGuard, if you query v$archive_dest, you can see the SERVICE NAME of the standby database in the STANDBY records. I would like to know what is the real server name and database instance of the standby database.
    I don't want to login to the primary server with oracle user (let's say that I can not - it's a program really, not me...).
    Let's also say that the only user I have is a read-only user to the database (with grants to all tables and views, but cannot execute privileged DBMS sys packages).
    Running "SQL> host tnsping NAME" doesn't do the job, since this is only for SQL plus.
    Doe's anyone have any idea? maybe v$ view that contains the TNS resolution (tried to find, no success)? maybe a tnsping alike command/function?
    Thanks a lot!
    Maayan

    MaayanB wrote:
    I'll explain the reason.
    I'm working on an agentless product that connects to databases, storage and hosts, and models them into a small CMDB.
    Since my product needs to model the "STANDBY" relationship between primary and standby DataGuard databases - I need to be able to resolve the value of the "DESTINATION" field from "V$ARCHIVE_DEST", where TARGET IN ('STANDBY','REMOTE').
    I could login to the server and execute "tnsping DBNAME", but the problem is that when a server has more than one ORACLE_HOME (hence, more than one tnsname.ora file), I need to make sure that the user I'm using to login to the server has all environment variables conigured properly for each database installed on the server (BTW, the unix user is also a "naked" user with no privileges except the sudo's defined for it).
    So I assume that the best way to be sure that the environment variables are correctly defined is when I login to the database.
    This is the reason I need to resolve service names using SQL.
    BTW, the database process somehow uses the Oracle Net Services to resolve the same value when it sends the redo log files to the standby server - and I'd like to resolve it the same way (or other, if not possible). If it uses the sys privileges, and it executes the package that lets you execute something on the server ("tnsping", in this case), and this is the only way it can be done - I need to start thinking on a different way to resolve the problem.What you are missing is that when "the database process somehow uses the Oracle Net Services to resolve the same value when it sends the redo . . ." is that Net services is NOT just resolving the name for the database. It is also handling the actual transport of the files. That name resolution is not passed back to the database.
    >
    Anyway, I'm not a hacker or something alike, It's just that my product doesn't know how to pick up the phone and dial :)

  • Please help me I am not seeing Database table column names in field explorer view

    Hi,
    I am developing a crystal report using eclipse and sql server. After creating connection, when i drag and drop tables, The table name and its columns should apper in field explorer view. Then we drag the columns onto crystal report. Unfortunately I am just  seeing only table names but not column names in field explorer view. Could anyone help me?
    After downloading eclipse I have plugged in the crystal report using the following instructions
    1. Click on the Help menu, and then Software Updates > Find and Install... to open the Install/Update wizard.
    2. Select Search for new features to install and click Next.
    3. Click the New Remote Site button. This will launch the New Update Site wizard
    4. Type the Business Objects Updsate Site for the Name field and the following for the URL: http://www.businessobjects.com/products/dev_zone/eclipse/
    5. Click OK to complete the wizard.
    6. Enable the newly created Business Objects Update Site checkbox as well as the Callisto Discovery Site (which should appear by default with Eclipse 3.2) and click Finish.
    Expand the Business Objects Update Site node and enable the Crystal Reports for Eclipse 1.0.0v555 checkbox.
    8. Expand the Callisto Discovery Site and click the button "Select Required". This will automatically select the required Eclipse features necessary to successfully install Crystal Reports for Eclipse.
    Thank You
    Rajavardhan Sarkapally

    Now we have a lot of views which select data from the tables, but I need to get the "Table Column Name" that is linked in the view.
    If you are using SQL Server 2012/2014, then you can use
    sys.dm_exec_describe_first_result_set (Transact-SQL) to gte the informations.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Name 1 and Name 2 fields of Business Partner - changes get set back

    Dear Experts,
    in SRM 7.0 CS, i am facing the following problem w.r.t Messages in the shopping cart.
    It is known system behaviour, that in case the contend of the fields Name 1 or Name 2 of the Plant Business Partner is longer than 35 digits, than a (warning) message is displayed in the shopping cart with the content like "Name 2 field, limited amount of digts can be displayed..."
    I have shortened the content of the field Name 2 of the BP of my plant, but it seems that after some time the old contend has been written back into the field for some reason.
    Has anyone experienced a similar problem? What could be the cause? Is it recomandable to use the "Influence Message Control" configuration for this message, in order to hide it completely?...or should the "Message Control By User" configuration be used?
    Thank you very much in advance for your support.

    Dear All,
    i seem to have been able to solve the problem by not only making the change on the BP, but also respectively changing the content in the respective fields in PPOMA (reduce the length of the content in the fields Name1 and Name2 of the location).
    Thank you.

  • Insufficient SQL database permissions for user 'Name: NT AUTHORITY\IUSR SID: S-1-5-17...

    Hi,
    I have a customized SharePoint page that takes user input data, validate some of the data, then writes the data to a SharePoint list. If an exception occurs, it will write the error to the ULS.
    All was working well in the test environments.
    However, recently we noticed that in the QA environment, when it's trying to write to ULS, it causes another issue:
    Insufficient SQL database permissions for user 'Name: NT AUTHORITY\IUSR SID: S-1-5-17 ImpersonationLevel: Impersonation' in database 'SP_F1_Config' on SQL Server instance 'SQL01'. Additional error information from SQL Server is included below. The EXECUTE
    permission was denied on the object 'proc_putObjectTVP', database 'SP_F1_Config', schema 'dbo'.
    I've traced through the code and found that it fails on the line:
        SPDiagnosticsServiceBase.GetLocal<LoggerError>();
    where LoggerError is the logger class inheritng SPDiagnosticsServiceBase
    I have also googled around today, but the most positive solution provided
    on this page was to manually modify SQL object permission, which I believe we should not do, and would not be supported by Microsoft.
    So the questions are:
    Why is AUTHORITY\IUSER used for SPDiagnosticsServiceBase.GetLocal()? Should that account actually be allowed to access SharePoint databases? (This is an intranet environment and using claim based/Windows authentication, no no anonymous access would be allowed
    anyway).
    I've checked the Application Pool account permissions in SQL, comparing the environment that works and the one that doesn't work, and the permissions/roles/schemas look identical on server and database level. Where else can I check?
    On the environment that works, I logged on as SharePoint administrator, created a new SharePoint Visual Web Part solution in Visual Studio, just to test writing to ULS. Then I press F5 in Visual Studio to debug it. It also has the same problem.
    It just seems like somehow the user's identity (or whatever the identity SharePoint required) was not passed to SPDiagnosticsServiceBase.
    Any suggestions, or even better, solutions would be really really much appreciated!

    Hi,
    Thanks for your sharing, it will be userful to the people who stuck with the same issue.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to get the database owner name in T-SQL script

    Hello, All!
    I want to get the database ower name (in format DOMAIN\user) by through T-SQL script. But SELECT * FROM sys.databases returns only owner_sid.
    Please show me a way - how to get the owner name, if you have only owner_sid. Or, may be, somebody know another way ?
    Andy Mishechkin

    SELECT suser_sname( owner_sid ), * FROM sys.databases
    http://www.t-sql.ru

  • I need to  know the name of the database table and the fields in that table

    hi,
    i need to I need to  know the name of the database table and the fields in that table for the following fields of the front end .
    1) incident details.
    2) ownership details
    3) injury type
    4) % of investigation completed withen 7 days.
    5) count of incident type
    6) cost of workers compensation claim.
    7) injury resulting from for workers compensation claim
    8) investigation free text.
    9) investigation contribution factors.
    10) investigation root cause.
    11) investigation root cause free text
    12) employee risk assesment
    13) protential infrigment notice issued
    14) actual infrigment notice issued.
    15) actual infrigment notice reference number.
    16)vehicle damaged text.
    18) when the incident occured.
    thanks and regards,
    pronoy .

    Hello,
    Check CCIHT* under se16 and search for relevant information
    Thanks
    Jayakumar

Maybe you are looking for