OLEDB parameter names starting with an @ sign
Hi guys,
I am using ORACLE.OleDB provider from .Net to execute parameterized queries for example
select * form :1;
What I want to achieve is to name my parameters to start with an @ sign for example:
select * from :@1;
I know that there must be a way since the following:
select * from "@tablename"; works just fine.
does anybody know how to do that ?
In case you wander why do I need this, I need it because I am using a SQL Factory which has generic methods and I support both SQL Server and Oracle so I want to be able to do:
cmd.parameters["@param"].Value = "somevalue";
instead of
if(Oracle)
cmd.parameters["param"].Value = "somevalue";
} else if(SQL Server)
cmd.parameters["@param"].Value = "somevalue";
Thank you in advance.
Kostadin
To answer myself:
I discovered that I can write queries like the following:
SELECT * FROM TABLE WHERE TABLE_ID = :TableID
And then in OleDb be able to access the query parameter with "@TableID".
So only the query is different but how I access the parameter is the same in Oracle and in SQL Server which is what I wanted.
Kos
Similar Messages
-
PowerShell add Printer Permissions where the printer name starts with...
I have a printer server that has printers for multiple buildings. All the buildings have abbreviations like "BLD" for example, so my printers start with the same building abbreviations
like “BLD-Printer1”. Is there a quick an easy way to set permissions on printers where the name starts with something like BLD?
I'm a total noob with PS .<o:p></o:p>Just wanted to point out that in addition to using .NET/WMI to enumerate the printers, Windows 8 has a native PowerShell implementation you could use. It supports remote management, so you can even use it from a Windows 8 client to target your Windows Server
2008 R2 instance.
$printers = Get-Printer -ComputerName $printServerName -Name bld*
foreach ($printer in $printers) {
Set-Printer -ComputerName $printServerName -Name $printer.Name -PermissionSDDL #fill in your permissions here
Full description of these cmdlets: http://technet.microsoft.com/en-us/library/hh918357.aspx
Excellent - Just fill in the SDDL.
Does this work on WS2008R2 PrintManager Queues? I find no -SDDL except on WS2012. WS8 is missing this parameter. Is it only available on WS8 Enterprise?
WS2008R2 also does not seem to support this.
Get-Printer and its cousins are wrappers around The Q functions posted above. The API has no security bits before WS2012. Look at the MSDN and Technet articles for this CmdLet and the other "Printer" CmdLets.
¯\_(ツ)_/¯ -
In the Finder sidebar, under 'Shared', I encounter my TC, as well as another item with a long name starting with 'hp'. 'Get info' shows it to be a 'PC'. However, I don't have a PC. It cannot be my printer (HP), since that has anoter name.
I can not access the item, which has me a 'guest'.
What could this item be? And how to get rid of it?
Many thanks in advance for your help.
DBIt's almost certainly your hp printer and is showing the WiFi adapter MAC address after the HP.
To verify, look at the printer configuration page via Bonjour in Safari. The settings tab shows the Mac address in the bottom left hand corner for my model of HP printer.
I'm sorry but I can't explain why that would show up in the finder. -
Program with a name starting with '!'
Hi,
I have a problem with a progam. In fact, I want to delete an include but this include is used in a program with a name starting with '!' like
!ZMM_PR_TEST.
I can't open this program or delete it.
What can I do ?
Must I delete this "strange" program or not ?
Thanks in advance for your help...
Best regardsHi Carl,
If you want to delete the program in Any way.. Delete it from the TADIR table...
the symbol " ! " may be some customer name space... Hope you cross check about that name space and
go ahead deleting it from a program accessing the record from TADIR table and modifying the TADIR table.
If something is not happening directly then there is almost a chance to delete the record from the table through a zprogram..
Hope this would help you.
Any question please revert back
Good luck
Narin. -
Is it Possible to create a Report Name starting with M.
HI ,
Just Now I have created a report naming with MYreport. I have expected that system will ask the Access Key since starting letter is M . But System allowed me to create the Report MYREPORT.
As per My Knowledge, Only Y and Z letters for Report. But now how system allowed me to create a report starting With M without access key.
With Regards,
Neptune.MHi,
You can name a program with 'MZ' or 'MY'. Infact all the includes of custom module program will be having names starting with 'MZ' or 'MY'. Try creating a program with other than these combination, the system will surely check.
Addendum:
For example if you create a module pool program with name
SAPMZTEST, then the include names will be
MZTEST_TOP, MZTEST_O01, MZTEST_I01, MZTEST_F01 and so on..
Similarly, for Z function group sap creates dynamically creates the following programs:
SAPLZTEST - Main program
LZTESTTOP
LZTESTO01
LZTESTI01
LZTESTUXX where X containing includes LZTESTU01,LZTESTU02 stands for 01, 02 and corresponds to function module under the function group.
Thanks and regards,
S. Chandramouli.
Edited by: Chandramouli Subburathinam on May 5, 2008 2:35 PM
Edited by: Chandramouli Subburathinam on May 5, 2008 2:42 PM -
SAXException: PI names starting with 'xml' are reserved.
Has anyone run across a problem trying to parse an xml instance (in this case it's an XSL style sheet) using Oracle's parsers? I'm getting the following sax error message:
SAXException : oracle.xml.parser.v2.XMLParseException: PI names starting with 'xml' are reserved. detailed SAX exception message: PI names starting with 'xml' are reserved.
The code generating this error is:
XMLDocument xml = ParseDocument(xmlDoc, parser);
private static XMLDocument ParseDocument(String documentStream,
DOMParser parser)
XMLDocument returnXML = null;
try
parser.parse(new InputSource(new ByteArrayInputStream(documentStream.getBytes())));
returnXML = parser.getDocument();
catch (SAXException saxE)
System.err.println("SAXException : " + saxE + " detailed SAX exception message: " + saxE.getMessage()); // this is the statement generating the error message
catch (IOException e)
System.err.println("IOEx, Parse failed : " + e);
catch (Exception e)
System.err.println("Ex, Parse failed : " + e);
return returnXML;
Thanks in advance for any help you can provide.
Sincerely,
Timlv_clob is invalid, there are two
<?xml version="1.0" encoding="UTF-8"?> elements, remove one of them.
SQL> DECLARE
2 lv_clob CLOB:=EMPTY_CLOB();
3 ignore boolean;
4 BEGIN
5 lv_clob := '<?xml version="1.0" encoding="UTF-8"?>
6 <!ELEMENT firstname (#PCDATA)* >
7
8 <!-- Element function -->
9 <!ELEMENT function (#PCDATA | noteref)* >
10 <!ATTLIST function xml:lang (de | en | fr | la | nl) #IMPLIED >
11
12 <!-- Element initials -->
13 <!ELEMENT initials (#PCDATA)* >
14
15 <!-- Element lastname -->
16 <!ELEMENT lastname (#PCDATA)* >
17
18 <!-- Element structured-author -->
19 <!ELEMENT structured-author ( (firstname, initials? , lastname , function*) ) >
20 <!ATTLIST structured-author ID ID #IMPLIED anchor:name CDATA #IMPLIED > ';
21
22 ignore := dbms_xdb.createResource(abspath => '/structured-author.dtd',data => lv_clob);
23
24 commit;
25 END;
26 /
PL/SQL procedure successfully completed.
SQL> INSERT INTO xml_tst VALUES ('<?xml version="1.0" encoding="utf-8"?>
2 <!--ArborText, Inc., 1988-2002, v.4002-->
3 <!DOCTYPE structured-author PUBLIC "-//WKB//DTD SL author//EN" "structured-author.dtd" [
4 ]>
5 <structured-author ID="SL3654393">
6 <?Pub Caret1?>
7 <firstname>firstname</firstname>
8 <initials>initial</initials>
9 <lastname>lastname</lastname>
10 <function xml:lang="nl">function description in dutch</function>
11 <function xml:lang="fr">function description in french</function>
12 </structured-author>');
1 row created.
SQL> spool off; -
Only save queries if name starts with Y
Hello,
How can security be configured so that users can only save queries whose Technical names start with Y?
What authorizations are required and what values should be assigned?
Thanks,
NickHello Jin,
We are on BW 3.5.
Here is the complete set of authorizations assigned to my test user. What I want is for this user to only be able to create queries if they choose to save them with a name starting with Y.
Currently (with the authorization specified below) they can save queries that start with <i>any</i> letter. When I save a query with the description and Technical name of: DELETE_VG15 it gives me two messages for "Authorization check". The first says "You do not have authorization for change" and the second message says: "Query (InfoCube ) was saved" So it does end up saving even though the name provided doesn't conform to what I want in the authorizations.
Hopefully you can help me fill in what is wrong, maybe copy what i have and repost with the values you are using.
<b>S_RFC</b>
Activity: 16
Name of RFC to be protected: *
Type of RFC to be protected: *
<b>S_RS_COMP</b>
Activity: 01
InfoArea: *
InfoCube: *
Name (ID) of a reporting component: Y*
Type of a reporting component: QVW, REP
<b>S_RS_COMP1</b>
Activity: 02
Name (ID) of a reporting Component: Y*
Type of a reporting component: QVW, REP
Owner (Person Responsible) for: *
<b>S_RS_ICUBE</b>
Activity: 03
InfoCube SubObject: *
InfoArea: *
InfoCube: *
I Just found this one as well, and it may be the problem:
<b>S_RS_COMP</b>
Activity: *
InfoArea: *
InfoCube: Z_COPA
Name (ID) of a reporting Component: *
Type of a reporting component: QVW, REP
Thanks!
Nick
Message was edited by:
Nick Bertz -
Trouble when a project name starts with ´@´.
I have a trouble when a project name starts with ´@´. I can´t watch any photo into the aperture browser.
Is that a bug? Any help please?
Thanks in advance.I have a trouble when a project name starts with ´@´. I can´t watch any photo into the aperture browser.
What is your Aperture 3 version? Are you using the latest version? For me projects with '@' in the name can be viewed in the browser; I'd need more information to reproduce that problem on my system.
But I would refrain from using such characters in filenames and library items, like projects and folders anyway.
All characters, that have a special meaning in the Mac OS X unix shell, like '@', '|', '~', '.', `/` may cause trouble when exporting or sharing the files.
Regards
Léonie -
Migrating from Sql Server tables with column name starting with integer
hi,
i'm trying to migrate a database from sqlserver but there are a lot of tables with column names starting with integer ex: *8420_SubsStatusPolicy*
i want to make an offline migration so when i create the scripts these column are created with the same name.
can we create rules, so when a column like this is going to be migrated, to append a character in front of it?
when i use Copy to Oracle option it renames it by default to A8420_SubsStatusPolicy
Edited by: user8999602 on Apr 20, 2012 1:05 PMHi,
Oracle doesn't allow object names to start with an integer. I'll check to see what happens during a migration about changing names as I haven't come across this before.
Regards,
Mike -
Can we create the Application name starting with Numerics
Hi All,
can we create an application name stating with number like 1234Samsung.
Also can we use the special characters between them.
Also are there any rules for creating database names other than maximum 8 characters limit.
RegardsHi,
1. You can create starting with numerics, 123samsu.
2. samsung cannot complete ,the know reason is exceeding 8
Sandeep Reddy Enti
HCC
http://hyperionconsultancy.com/ -
SPC Chart and Tag Name starting with a Number
On a 11.5.3 (latest build) install, we've found that SPC Charts don't like tag names that start with numeric characters. The data points just don't plot. I can right click and get the data, but there are no points on the chart. All other applets work fine with the same tags. Has anyone else seen this?
Hey Rick,
We did try that and it worked. Also when creating the tags in the UDS Admin, I don't believe the UDS Admin will allow for this scenario (along with funky characters like pipes "|"). However, we are using an alias file (export from Historian into Excel, into SQL, and tweaked via Xacute) where the UDS Admin rules aren't enforced, which might be the inherent problem here.
I just thought that if the applets allowed it, the iSPCChart should also.
Thanks.
Edited by: Ryan Miller on Feb 19, 2008 10:04 AM
I'll leave this thread unanswered for a bit to see if anyone else cares to comment. -
Band names starting with "the"
Does anybody know why they changed the sorting rule in that way, that Bands starting with "the" are now found under "t" and not anymore under the bands name ?
Is there a way to change it again?True, I remember an issue along that line where "Dashboard Confessional" was filed under "h" a long while back. Unfortuanately, the original post was:
"...Bands starting with "the" are now found under 't'"
Unless the German (or whatever) version also ignores "The", and Harry is using one of those versions...
Unfortunately, we don't have enough info on the original post to determine this as the issue. If HArry were to post some info about the version and language, maybe? -
Hi Gurus,
if the uername start with stmgr6001
stmgr6002
stmgr6003.........................stmgr6250 then select the last 4characters append into the selection screen field and disable that field and proceed other wise stop the program.
kindly help me for this how to write code ................
regards
dkUse event At selection screen output en de system variable SY-UNAME.
if sy-uname(5) = 'stmrg'
if sy-uname+5(40 >= 6001
and sy-uname+5(40 <= 6250.
The select-options are of type range table.
create a work area type select-option to be filled and fill the variables with the last Sy-uname+5(4).
append to select-option
endif.
endif
This is basic stuff -
Can't open files where the name starts with a number
On our network server, we have some folders where the files are numbered. Example:
1 - Memo
2 - Agenda
3 - Report X
4 - Report Y
5 - Report Z
We have 5 Macs in our office. Everybody can read these files fine except for one person. On her computer she can't open any file that starts with a number and gets the below error message. How do I fix this?
All our Macs (to the best of my knowledge) are setup exactly the same since they were purchased at the same time late last year.Word - Microsoft Support
-
Hi,
I am using Oracle 10.2 and am experiencing an issue that doing some operations on existing tables, some temporary tables are getting created starting with BIN$.
For ex: BIN$HULdSlmnRZmbCXAl/pkA9w==$0
But I dont see these tables in the database after two or three days. I found that these temporary tables are a replica of existing tables and these contain only the table structure but not the data. I even not able to drop them from database.
Can anyone throw some pointers on this?
Thanks and Regards,
SivaThese tables are in the Oracle recycle bin. When you drop a table, Oracle just renames it to BIN$xxx so that you can undrop the table if you made a mistake.
- You can ignore tables in the recycle bin if you would like. Oracle will automatically purge them when it needs the space.
- You can prevent a table from going in to the recycle bin by adding the purge command to the drop, i.e.
DROP TABLE table_name PURGE- You can empty out the recycle bin using the command
SQL> purge dba_recyclebin(or just recyclebin if you only want to clear out the objects you own from the recyclebin).
Justin
Maybe you are looking for
-
Ok I wonder why i have 2 apple charges on my account and I only received 1 receipt
is this fraud???
-
I replaced a computer that was trashed - CS5 was installed on on the old computer. Installed CS5 successfully on the new computer - I am not aware on any installation problems. Four of the updates continually fail with the suggestion of trying late
-
Problem in creating customer record thru xd01
1. I cant create CMR thru XD01 *Error : Account 101 already Exist* 2. In VL01N error1: copying not possible because entry is missing in table TCPCL AKOR (sales order) TAN Error 2. Number of copying routine for the TABLE LIPS is missing in table TVPCL
-
Hello - We are just getting started with XMII....we recently installed version 12.0.2 Build(88). The problem that we have is that whenever we try to execute the SAP xMII Workbench from the Data Services option - we get prompted to download the Workbe
-
I need help solving a problem...
...like everyone else in here... Anyway. Here's my problem I work at a company that uses Oracle servers at diffrent subsidiaries. Most of the subsidiaries run enough applicaiton to motivate them to invest in an Oracle Server. I am using/devoloping a