Entreprise Library - Same Query In All Databases (SQL+Oracle), Is This Possible? URGENT

Sep 12, 2007

It is posible with Entreprise Library to use the SAME QUERY, by example,

"Select isnull(Val,33) from calculs where Col1 is not null" (specific for Sql Server)

to select data from Oracle too ? or the only way is to use specific stored procedures (queries)

wtitten in 2 ways : for Oracle and for Sql Server?

 

Thanks

View 1 Replies


ADVERTISEMENT

---urgent --- Control Library Problem -- DataSet

Nov 6, 2007

i have another problem with my library...
i create a library with a datagridview, that i polute manually from several database querys...
thats just fine.... works excelent..
but if i browse the aspx page from another computer on the network, when the code tries to read the data set give me an error
Cannot find the table 0
seems like a problemwith the connection or the query, but if i browse the page from the localmachine i works just fine
 
please help
Public MM_CONEXION_STRING As String = "server=HP001SQL2000;uid=xxx;pwd=xxxxx;database=GSSDOTNET;"Dim myConnection As New SqlConnection(MM_CONEXION_STRING)Dim myCommand As New SqlCommand(SQL, myConnection)
myConnection.Open()Dim objDS As New System.Data.DataSet()
objDS=myCommand.ExecuteReader()For Each FILA As System.Data.DataRow In objDS.Tables(0).Rows .......
Next
 

View 2 Replies View Related

Urgent : DB-Library Error 10007: General SQL Server Error: Check Messages From The SQL

Jul 20, 2005

DB-Library Error 10007: General SQL Server error: Check messages fromthe SQLServer.CREATE PROCEDURE [dbo].[spu_Import_Export_Image](@srvr varchar(50),@db varchar(50),@usr varchar(15),@pwd varchar(50),@tbl varchar(50),@col varchar(50),@mod varchar(1),@imgpath1 varchar(1000),@pk varchar(50))ASBEGINdeclare @path varchar(50)declare @whr varchar(200)declare @fil varchar(100)declare @cmd varchar(1000)declare @imgpath varchar(800)declare @ext varchar(5)--declare @pk varchar(50)declare @KeyValue varchar(8000)declare @image varchar(50)--declare @imgpath1 varchar(1000)declare @imgpath2 varchar(1000)declare @sellist varchar(2000)set @path = 'c: extCopy.exe'select @sellist = 'DECLARE curKey CURSOR FOR SELECT ' + @pk +' FROM '+ @tbl + ' ORDER BY ' + @pkexec (@sellist)OPEN curKeyFETCH NEXT FROM curKey INTO @KeyValueWHILE (@@fetch_status = 0)BEGINset @whr = '"where '+ @pk +' = "' + @KeyValueset @fil = @imgpath1 + '' + @KeyValue --+ @extset @cmd = @path + ' /S ' + @srvr + ' /D ' + @db + ' /U ' + @usr+ ' /P ' + @pwd+ ' /T ' + @tbl + ' /C ' + @col + ' /W ' + @whr + '/F ' + @fil+ ' /' + @modexec Master..xp_cmdShell @cmdFETCH NEXT FROM curKey INTO @KeyValueENDCLOSE curKeyDEALLOCATE curKeyENDGOAbove srcipt runs fine with image data type in one table but when irun for some other table it gives me Error MessageTEXTCOPY Version 1.0DB-Library version 8.00.194SQL Server 'WSQL01' Message 170: Line 1: Incorrect syntax near '99'.(Concerning line 1)DB-Library Error 10007: General SQL Server error: Check messages fromthe SQLServer.ERROR: Could not use database 'test1'NULL-----------Aslo it only runs on server console if i run it from workstation uingsame files and tables it gives me an error again. Can anybody help meand reply me at Join Bytes! asap.thnx,dharmesh

View 1 Replies View Related

SQL & Oracle Databases

Jul 17, 2002

We are looking at consolidating our servers. We would like to have a database server, which housing our databases. However, we have some SQL 6.5 databases and Oracle 8.0.1 databases. Does anyone know if it is possible to have both on one server? If not, then it sounds like we need two database servers. Thank you.

View 1 Replies View Related

Entreprise Manager

Jun 27, 2001

hello,
is it possible to manage by entreprise manager a server sql server 7 which is not attached at domaine NT ?
thank you
Pascal

View 1 Replies View Related

Connection To Oracle / Sqlserver / Db2 Databases

Jan 23, 2007

Hi All,

Is there a way in SSIS to change the database connection to sqlserver or oracle or db2 without choosing the connection manager in the source.

For e.g. I ran a package which is reading data from sqlserver and later i want to connect to oracle to read the data but without changing the connection manager in the source.

Basically, i want to find out from you gurus is about a way to switch between databases without changing the connection managers. OR the only way is to make different sets of packages for oracle / db2 and sqlserver sources ?

Thanks,

Vipul

View 2 Replies View Related

Migration From Oracle To Sql Server (Urgent)

Sep 21, 2001

I want to do a data transfer but i am not sure how ..from oracle to sql server.

i want to know if its required to install the oracle client to configure so as to transfer data or not.

I heard from someone that if we change the win.ini file entry for oracle.ini and place the tnsnames.ora file i spcified location it will work but it does not what is the way to deal with..


How do i perform this with the odbc configuration for oracle..and use the same in the dts.

Thanks in advance.

View 1 Replies View Related

Urgent: Oracle Replication Failed

Dec 13, 2005

Some replication jobs failed and it shows 'data conversion failed' error MSSQL_REPL20037.  Any idea on it ?  I can't find the error in online book.  THanks in advance!

View 11 Replies View Related

Exporting MS SQL Server Or Oracle Databases To MySQL

Jul 20, 2005

I also posted similarly in mailing.database.mysqlI have created a rather large (60 table database) website dealio in PHP thatworks with MS SQL Server, Oracle, MySQL and presumably any other data base Iadd tothe wrapper functions that I created. All the development was done inOracle, but now its time to create that large datastructure again inMySQL -- now I've built this all in notepad for Oracle (twice) and built itin SQL Server using the SQL Server import tools (pretty nice) -- is thereanything that I can do that to get this datastructure and maybe even thedata into MySQL using Oracle/MS SQL Server tools ?James

View 2 Replies View Related

Connection Manager Reuse For Oracle And SQL Databases

May 2, 2008

I'm trying to implement a configurable way of executing a group of SQL statements using either an Oracle or SQL database as the source for the data.

I'm currently building a connection string with a Script Task and then assigning it to a package variable so that it can be used by a connection manager but this only works with a SQL OLEDB connection.


I'm holding all the connection details in a database table, hence the need for the scripting but would it be possible to extend the task to reuse a single connection manager by changing it's properties?

View 7 Replies View Related

(ts Urgent) Connect To Different Databases

Oct 26, 2007

Hi
 I have my database on four different database servers. I have a web appliction using asp.net 2.0. i want to add data to all four database servers. How can i do that with asp.net 2.0
 Thanks in advance
 Take care
 Bye

View 2 Replies View Related

Backing Up Databases 2 ---HELP HELP!! URGENT!!

Nov 9, 2000

I used sp_detach_db to back up the database temporarily. I used xp_cmdshell
to stop SQLServerAgent, but when I restarted, I was unable to. Then, I tried
reattaching the Database running sp_attach_db.

!!!HELP HELP!!!
I AM GETTING THE FOLLOWING ERROR:

Server: Msg 5105, Level 16, State 4, Line 1
Device activation error. The physical file name
'Mssql7dataTestDB.mdf' may be incorrect.

I KNOW THAT THE NAME AND THE PATH ARE CORRECT.

Really Appreciate the Help
Shelly

View 2 Replies View Related

Restore Of Databases - URGENT

Sep 4, 2001

Hi all - I may be showing my ignorance here but I am in desparate need for some help on restoring my databases. Is there a way to restore/import/recreate a database directly from the .mdf/.ldf files. What has happened it that my hard drive containing my SQL data crashed and cannot be recovered. The only backup that I have of my SQL data is a direct copy of my entire DATA directory from the now ruined SQL install. I need to be able to restore those .mdf and .ldf files into a new instance of SQL. Is there a way to do this. Any help would be greatly appreciated.

Thanks,
Steve Mueller

View 6 Replies View Related

Entreprise Manager On Windows Millenium ?

Jun 13, 2002

Hello,
which version have I to install to have sql entreprise manager on Windows millenium ? thank you

View 1 Replies View Related

Entreprise Manager Access Keys

Jan 15, 2006

New to SQL server, sometime I want to naviguate through tables, records , i m not sure where I can find a list of all access keys (keyboard shorcuts) to open a table to return rows, open table in design mode,add a row, delete a row....and so on

That ll make my life much easir

Thanks and have a nice week

View 9 Replies View Related

Urgent: SQL Server Migration Assistant For Oracle

Sep 29, 2007

i am transfering an Oracle 10g database to SQL Server 2005. i have 2 pcs one with SQL Server 2005 with SSMA For Oracle Extension 3.1 installed, also with Oracle 10g client configured to connect the Oracle database in another pc. the other pc has Oracle 10g database server installed with SSMA For Oracle 3.1. whenever i try to migrate the data there is an exception which says

"Errors: SQL Server cannot access the source table"

i dont understand why its there. i hav successfully converted the schema and loaded them in SQL Server. can anybody tell me a soltuion asap.

S ]-[ /- | ]-[ /- N

View 1 Replies View Related

SSIS And Oracle Data Provider For .Net (Urgent Please)

Oct 1, 2007

Hi All,

I want to use "Oracle Data Provider for .Net" driver to get Oracle 10g data in SQL Server 2005 environment. I am getting this error message when try to import oracle tables in sql server.

"Operation could not be completed. The server name is not specified (DTS wizard)."

Any help will be very highly appreciated.

Also I want recomemndation on which driver should I use for getting huge Oracle data into SQL server environment?

Thanks a lot.

Best Regards
Munir

View 1 Replies View Related

Replication :: Oracle Migration (Distributor And Subscriber Databases)?

Jul 31, 2015

We are going away from a 2003 Windows Server OS with SQL Server 2008 R2 to a 2012 Windows Server with 2012 SQL Server. Both the distributor and subscriber resides on 2003 Windows Server and the focus will be to migrate those databases to the 2012 SQL Server.

 We would also like to avoid sending down a new snapshot due to logic in the replication process (major headache to clean up data).  what's the best approach in moving the distributor and subscriber databases without having to run a snapshot?  

In theory and needs testing:

1. Work with business users to get downtime

2. Stop sql apply so no new changes are going to the Oracle publisher database

3. Remove subscription, publication and distributor from current replication

4. Oracle DBA to clear out replication related objects - fresh clean slate

5. Use log shipping to apply last t-log and restore db with Keep_Replication

6. Set up new distribution, publication (keep existing object unchanged), and subscriber (without initialization) Will this work?

View 3 Replies View Related

Downgrade SQL 2005 Entreprise To Workgroup Edition ?

Oct 31, 2006

Hi

I have the following problem :

I have licensed a german version of sbs 2003 premium. With the upgrade to sbs 2003 r2, I will buy the rights to use the sql 2005 workgroup edition. But the german sbs 2003 r2 is not available by now.

I could go in production with the sql 2005 trial, this is an entreprise edition.

My question is : can I downgrade the sql server 2005 from this trial edition (entreprise) to the workgroup edition ? Is it possible ? easy ? any recommendations ?

Many thanks !

Ferrarirosso

View 1 Replies View Related

URGENT::Oracle To SQL 2005 Replication ( Drop Coulmn From Publication)

Jul 9, 2007



I'm in a middle of a project where replication established between Oracle 8i and SQL server 2005. Now we need to drop one column from on of the tables replicated from Oracle side. My question : Is there anyway I can do this in Oracle and automatically reflected on SQL server? If not what is the proper steps to do it. Realy appreciate your fast response.



Regards

View 1 Replies View Related

Connection Still Apperas In SQLServer Entreprise Manager Over Locks / Process ID

Sep 22, 2005

Hello,i have a doubt here, after a close the connection, i still can see the last stored procedure active in the LOCKS/PROCESSID in enterprise manager of SQL SERVER.I think i'm closing the connection well
Try
If Me.ID > 0 Then
Dim strSql As String = "SP_CHANGECLASSCONTENTS"
Dim sqlcommand As New SqlCommand(strSql, New SqlConnection(ConnStr))
sqlcommand.CommandType = CommandType.StoredProcedure
sqlcommand.Parameters.Add("@PerformActivation", SqlDbType.Bit).Value = 0
sqlcommand.Parameters.Add("@PerformInactivation", SqlDbType.Bit).Value = 0
sqlcommand.Parameters.Add("@PerformDelete", SqlDbType.Bit).Value = 1
sqlcommand.Parameters.Add("@PerformUndelete", SqlDbType.Bit).Value = 0
sqlcommand.Parameters.Add("@PermanentDelete", SqlDbType.Bit).Value = CBit(PermanentDelete)
sqlcommand.Parameters.Add("@Class_ID", SqlDbType.Int).Value = _id
sqlcommand.Connection.Open()
sqlcommand.ExecuteNonQuery()
sqlcommand.Connection.Close()
Else
Err.Raise(10205, "CLASS", "CLASS ID is empty")
End If
Catch ex As Exception
_err = ex.Message
Return Err.Number
End Try

View 3 Replies View Related

URGENT: Problems With Guest User In SQL 2005 Restoring Databases From Sql 2000

Sep 18, 2006

Hi all.

I don't know if this is the right forum to post this question, but here it goes.

We have restored into sql 2005 the database backups made in sql 2000. We connect with trusted connection and application roles, and when trying to execute a transaction to another database (with the guest user), we get a permission error.

Does anyone know if, apart from restoring the databases, we should do something else to get the guest user working the same way as with sql 2000 in the restored databases?

Thanks in advance for your help.




View 1 Replies View Related

Urgent. Output Columns Are Not Appearing When I Use OLEDB Data Source With An Oracle Stored Procedure In Dataflow Task

Nov 12, 2007

I am using execute sql task to run a stored procedure in oracle database which returns a resultset. This works. Now I need to send the ouput to a destination table in a sql database. Should I use for each loop to pick the resultset and insert it into the destination one by one (which I dont think is a great idea) or is there a better way to accomplish this task (in data flow task) ?

When I use dataflow task instead of execute sql task, the main issue is I am not able to see the output columns when I execute an oracle stored procedure, but when I see the preview I can see the resultset . But I can see the output columns for a sql server stored procedure.

View 9 Replies View Related

How To Query An Oracle Data From SQL Server Query Analyser

Sep 3, 2007



Hi ,

I am having 2 data store .
1. Oracle 10g
2 SQL server 2000

My requirement is that , i need to insert some data from sql server database table to oracle database using sql server query analyser or interface.


If there is any way ,plz let me know it


Thanks
Abraham

View 3 Replies View Related

Query Works In 'test Query' But Refuses To Show Up In The Datagrid On A Web Page - Urgent!

Mar 28, 2007

Hey, i've written a query to search a database dependant on variables chosen by user etc etc. Opened up a new sqldatasource, entered the query shown below and went on to the test query page. Entered some test variables, everything works as it should do. Try to get it to show in a datagrid on a webpage - nothing. No data shows.
 SELECT dbo.DERIVATIVES.DERIVATIVE_ID, count(*) AS Matches
FROM dbo.MAKES INNER JOIN
dbo.MODELS ON dbo.MAKES.MAKE_ID = dbo.MODELS.MAKE_ID INNER JOIN
dbo.DERIVATIVES ON dbo.MODELS.MODEL_ID = dbo.DERIVATIVES.MODEL_ID INNER JOIN
dbo.[VALUES] ON dbo.DERIVATIVES.DERIVATIVE_ID = dbo.[VALUES].DERIVATIVE_ID INNER JOIN
dbo.ATTRIBUTES ON dbo.[VALUES].ATTRIBUTE_ID = dbo.ATTRIBUTES.ATTRIBUTE_ID
WHERE ((ATTRIBUTES.ATTRIBUTE_ID = @ATT_ID1 and (@VAL1 is null or VALUE = @VAL1)) or
(ATTRIBUTES.ATTRIBUTE_ID = @ATT_ID2 and (@VAL2 is null or VALUE = @VAL2)) or
(ATTRIBUTES.ATTRIBUTE_ID = @ATT_ID3 and (@VAL3 is null or VALUE = @VAL3)) or
(ATTRIBUTES.ATTRIBUTE_ID = @ATT_ID4 and (@VAL4 is null or VALUE = @VAL4)) )
GROUP BY dbo.DERIVATIVES.DERIVATIVE_ID
HAVING count(*) >= CASE WHEN @VAL1 IS NOT NULL THEN 1 ELSE 0 END +
CASE WHEN @VAL2 IS NOT NULL THEN 1 ELSE 0 END +
CASE WHEN @VAL3 IS NOT NULL THEN 1 ELSE 0 END +
CASE WHEN @VAL4 IS NOT NULL THEN 1 ELSE 0 END -2
ORDER BY count(*) DESC

 Here is the page source
 
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DevConnectionString1 %>"
SelectCommand="&#9;SELECT dbo.DERIVATIVES.DERIVATIVE_ID, count(*) AS Matches&#13;&#10;&#9;FROM dbo.MAKES INNER JOIN&#13;&#10;&#9;&#9;&#9;&#9; dbo.MODELS ON dbo.MAKES.MAKE_ID = dbo.MODELS.MAKE_ID INNER JOIN&#13;&#10;&#9;&#9;&#9;&#9; dbo.DERIVATIVES ON dbo.MODELS.MODEL_ID = dbo.DERIVATIVES.MODEL_ID INNER JOIN&#13;&#10;&#9;&#9;&#9;&#9; dbo.[VALUES] ON dbo.DERIVATIVES.DERIVATIVE_ID = dbo.[VALUES].DERIVATIVE_ID INNER JOIN&#13;&#10;&#9;&#9;&#9;&#9; dbo.ATTRIBUTES ON dbo.[VALUES].ATTRIBUTE_ID = dbo.ATTRIBUTES.ATTRIBUTE_ID&#13;&#10;&#9;WHERE ((ATTRIBUTES.ATTRIBUTE_ID = @ATT_ID1 and (@VAL1 is null or VALUE = @VAL1)) or&#13;&#10;&#9;&#9; (ATTRIBUTES.ATTRIBUTE_ID = @ATT_ID2 and (@VAL2 is null or VALUE = @VAL2)) or&#13;&#10;&#9;&#9; (ATTRIBUTES.ATTRIBUTE_ID = @ATT_ID3 and (@VAL3 is null or VALUE = @VAL3)) or&#13;&#10;&#9;&#9; (ATTRIBUTES.ATTRIBUTE_ID = @ATT_ID4 and (@VAL4 is null or VALUE = @VAL4)) )&#13;&#10;&#9;GROUP BY dbo.DERIVATIVES.DERIVATIVE_ID&#13;&#10;&#9;HAVING count(*) >= CASE WHEN @VAL1 IS NOT NULL THEN 1 ELSE 0 END +&#13;&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; CASE WHEN @VAL2 IS NOT NULL THEN 1 ELSE 0 END +&#13;&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; CASE WHEN @VAL3 IS NOT NULL THEN 1 ELSE 0 END +&#13;&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; CASE WHEN @VAL4 IS NOT NULL THEN 1 ELSE 0 END -2&#13;&#10;&#9;ORDER BY count(*) DESC&#13;&#10;">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" Name="ATT_ID1" PropertyName="SelectedValue" />
<asp:ControlParameter ControlID="TextBox1" Name="VAL1" PropertyName="Text" />
<asp:Parameter Name="ATT_ID2" />
<asp:Parameter Name="VAL2" />
<asp:Parameter Name="ATT_ID3" />
<asp:Parameter Name="VAL3" />
<asp:Parameter Name="ATT_ID4" />
<asp:Parameter Name="VAL4" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:DevConnectionString1 %>"
SelectCommand="SELECT * FROM [ATTRIBUTES]"></asp:SqlDataSource>
<br />
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2"
DataTextField="ATTRIBUTE_NAME" DataValueField="ATTRIBUTE_ID">
</asp:DropDownList>
<asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True"></asp:TextBox><br />
<br />
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="DERIVATIVE_ID"
DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="DERIVATIVE_ID" HeaderText="DERIVATIVE_ID" InsertVisible="False"
ReadOnly="True" SortExpression="DERIVATIVE_ID" />
<asp:BoundField DataField="Matches" HeaderText="Matches" ReadOnly="True" SortExpression="Matches" />
</Columns>
</asp:GridView>
</asp:Content>
 AFAIK I have configured the source to pick up the dropdownlist value and the textbox value (the text box is autopostback).
 Am i not submitting the data correctly? (It worked with a simple query...just not with this one). I have tried a stored procedure which works when testing just not when its live on a webpage.
 Please help!
 
(Visual Web Devleoper 2005 Express and SQL Server Management Studio Express)
 

View 4 Replies View Related

Oracle Query With &&amp;

Apr 26, 2007

I have a SQL task that I want to execute a query like:



SELECT firstField FROM schema.table WHERE fieldName = 'M&M'



The problem is when I put that in, it won't run.

For SQL*Plus I can stick SET DEFINE OFF before it and it work, not so in Integration Services.



The issue apparently is that &M is treated by Oracle as a variable of some sort.



Any help is appreciated.

View 5 Replies View Related

Oracle 7 Query

Nov 7, 2006

Within a VS 2003 BI project, I can create a parmeterized query against an Oracle 7 database by using a ? for the parameter(s).
Example:
SELECT LTrim(RTrim(SWO_ISS.REF)) ACCT, CUS_LOC.NAME CUSTOMER,
SWO_ISS.TRAN_DATE, SWO_ISS.ITEM, ITM_DESC.ITEM_DESCRIPTION, SWO_ISS.QTY, LSTPRC.AMT
FROM MYDB.SWO_ISS, MYDB.CUS_LOC, MYDB.ITM_DESC,
(SELECT LP.ITEM, LP.REVISION, LP.AMT FROM MYDB.LIST_PRC LP
WHERE LP.EFFEND > SYSDATE) LSTPRC
WHERE SWO_ISS.REF = CUS_LOC.CUS_LOC(+)
AND SWO_ISS.COMP_ITEM = ITM_DESC.ITEM(+)
AND SWO_ISS.COMP_ITEM = LSTPRC.ITEM(+)
AND SWO_ISS.COMP_REV = LSTPRC.REVISION(+)
AND SWO_ISS.REF = ?
AND SWO_ISS.TRAN_DATE >= TO_DATE(?,'MM/DD/YYYY')
AND SWO_ISS.TRAN_DATE <= TO_DATE(?,'MM/DD/YYYY')

Unfortunately, as soon as the dataset is saved or Layout view is selected the Field List disappears and all of the report objects lose their data binding.
Worse still, if you click the Generic Query Designer button while working with one of these queries Visual Studio will lock up.

This worked at one time and now has me stumped. What may be the cause of the change?

View 3 Replies View Related

How To Query SQL Server Using Oracle

May 10, 2001

I was wondering if anyone knew how to query SQL Server using Oracle 8i?

I want to retrieve a recordset and then insert that same data into my tables within Oracle.

Is there a way to do this?

Thanks!

View 2 Replies View Related

Equivalent For A Oracle Query

May 7, 2004

I need to know the SQL Server equivalent for the below Oracle query :

select t.* from table(cast(c1.table1 as create_type_of_table))

The above query will be used in PL/SQLs in ORACLE.

What is the SQL Server equivalent for the above query ?

View 2 Replies View Related

Oracle Query In SQL Server

May 27, 2004

Hi,

I want to write this query in sql server. Please help me, it is very urgent :(

Any help will be appreciated.

SELECT VALID_ITEM.PC_CODE,PC_TITLE,VALID_ITEM.DB_CONTRACT ,
valid_item.ITEM_NO,DESCPT,UNITS,CONTQ,
CONTR_PRICE ,nz(QTD,0) as qtd,ind_ovr_und,
nz(QTD,0) - NVL(QUANTITY,0) as QUANT_PREV,
Nz(QUANTITY,0) as quant_rev,
round(NVL(quantity,0)*nvl(CONTR_PRICE,0),2) as QTD_VAL,
AMT_PAID_ITEM,AMT_RET_ITEM
FROM VALID_ITEM, cqe_item,CONTRACT_PC
WHERE valid_item.db_contract = contract_pc.db_contract
and valid_item.pc_code = contract_pc.pc_code
and valid_item.db_contract = cqe_item.db_contract (+)
and cqe_item.cqe_numb (+) = :EST_NO
and valid_item.item_no = cqe_item.item_no (+)
and valid_item.pc_code = cqe_item.pc_code (+)
order by valid_item.item_no

View 7 Replies View Related

Query Oracle -&> Sqlserver

Aug 14, 2007

select pippofrom(select person.name as pippofrom person)This query run in oracle....in sqlserver no!what can i do!?thank's

View 1 Replies View Related

Query In Oracle &&amp; SQl Server

Nov 1, 2007

Hi All,

I need the basic information about how the query is working in Oracle & SQl Server.

Sicne I am getting different values when I run the query. I have a table called 'Client_Master' in both the DB
(ie., Oracle & SQL). I have inserted a record with the below values for Client_Master table. (both Oracle & SQl).

Inserted Values:
----------------
Start_Code = 90
End_code = ''

The query is :

SELECT * FROM CLIENT_MASTER
WHERE ID = '200'
AND ((START_CODE <= '102' AND END_CODE >= '102')
OR (START_CODE <= '200' AND END_CODE >= '200')
OR (START_CODE >= '102' AND END_CODE < '200')
OR (START_CODE = '102' AND END_CODE is null))

Oracle result : No rows return.
SQl Server : one row returned.

Data type for start_code & end_code are 'NVARCHAR2 (40)'.

I would highly appreciate if anyone can explain why is this and any suggestion like how to handle this in both the database.

The subject of this query is the values which is entered by the user should not be overlapped. But I dont how to handle
this if it is alphanumeric.

Thnx,

View 5 Replies View Related

Query Oracle From SQL Server

Oct 12, 2007



Hello

I want to Query Oracle from SQL server stored procedures. Is this possible, i have Oracle 9 client installed on my machine.

Please tell me details, i have no idea how to do that.

Thanks

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved