Click here to Skip to main content
15,902,276 members
Home / Discussions / Database
   

Database

 
AnswerRe: Document Management System Pin
Niladri_Biswas17-Nov-09 1:37
Niladri_Biswas17-Nov-09 1:37 
QuestionExport a Table to a Excel File Pin
faravani15-Nov-09 22:10
faravani15-Nov-09 22:10 
AnswerRe: Export a Table to a Excel File Pin
Niladri_Biswas16-Nov-09 1:09
Niladri_Biswas16-Nov-09 1:09 
AnswerRe: Export a Table to a Excel File Pin
Abhishek Sur16-Nov-09 4:19
professionalAbhishek Sur16-Nov-09 4:19 
AnswerRe: Export a Table to a Excel File Pin
dan!sh 16-Nov-09 5:54
professional dan!sh 16-Nov-09 5:54 
AnswerRe: Export a Table to a Excel File Pin
Bassam Saoud16-Nov-09 11:31
Bassam Saoud16-Nov-09 11:31 
AnswerRe: Export a Table to a Excel File Pin
Tripathi Swati17-Nov-09 20:59
Tripathi Swati17-Nov-09 20:59 
Questionproblem with Oracle and ole auto generate update Pin
maryam.saboor15-Nov-09 19:02
professionalmaryam.saboor15-Nov-09 19:02 
hi every body!
I use Oracle and for connection management I use OLEDB, the problem is where I want to do Update. the Update command is generated by an OleDBDataAdapter as the code below:
Public Sub UpdateData(ByVal oiDataSet As DataSet, ByVal siSQL As String, Optional ByVal siTableName As String = Nothing)

        Dim oDataAdapter As New OleDbDataAdapter

        Try
            If mbPiDisposed = True Then
                Throw New ObjectDisposedException(msPiModuleName, "This object has already been disposed. You cannot reuse it.")
            End If

            oDataAdapter.SelectCommand = New OleDbCommand(siSQL, mcnPiConnection, mtrPiTransaction)

            Dim oCommandBuilder As OleDbCommandBuilder = New OleDbCommandBuilder(oDataAdapter)

            If siTableName = Nothing Then
                oDataAdapter.Update(oiDataSet)
            Else
                oDataAdapter.Update(oiDataSet, siTableName)
            End If
        Catch ex As Exception
            Throw New Exception(msPiExceptionMessage, ex)
        Finally
        End Try
    End Sub


when I call this Sub (I pass a simple "SELECT * FROM TABLE_NAME" and Updated data as "oiDataSet" to the OleDBDataAdapter as shown above) this error is shown: "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information"
I searched the Internet But every one said that you may have not define a primary key, but my table has one!!
I should say the INSERT commands are OK, the problem is with UPDATE and DELETE commands.
every suggestion would be appreciated
AnswerRe: problem with Oracle and ole auto generate update Pin
Mycroft Holmes15-Nov-09 20:04
professionalMycroft Holmes15-Nov-09 20:04 
GeneralRe: problem with Oracle and ole auto generate update Pin
maryam.saboor15-Nov-09 20:48
professionalmaryam.saboor15-Nov-09 20:48 
GeneralRe: problem with Oracle and ole auto generate update Pin
Mycroft Holmes15-Nov-09 21:36
professionalMycroft Holmes15-Nov-09 21:36 
GeneralRe: problem with Oracle and ole auto generate update Pin
maryam.saboor15-Nov-09 22:11
professionalmaryam.saboor15-Nov-09 22:11 
GeneralRe: problem with Oracle and ole auto generate update Pin
Mycroft Holmes16-Nov-09 0:26
professionalMycroft Holmes16-Nov-09 0:26 
AnswerRe: problem with Oracle and ole auto generate update Pin
maryam.saboor16-Nov-09 8:03
professionalmaryam.saboor16-Nov-09 8:03 
GeneralRe: problem with Oracle and ole auto generate update Pin
ExploreLife6-Jun-12 16:27
ExploreLife6-Jun-12 16:27 
QuestionMapping a foreign key participating in multiple relationships Pin
MBursill15-Nov-09 13:12
MBursill15-Nov-09 13:12 
Questionhow to stop long roll back on SQL server 2005 , Pin
i gr815-Nov-09 8:05
i gr815-Nov-09 8:05 
AnswerRe: how to stop long roll back on SQL server 2005 , Pin
Mycroft Holmes15-Nov-09 13:41
professionalMycroft Holmes15-Nov-09 13:41 
QuestionHow to store multiple languages in oracle 10g? Pin
n3ophyt315-Nov-09 0:09
n3ophyt315-Nov-09 0:09 
AnswerRe: How to store multiple languages in oracle 10g? Pin
Richard MacCutchan15-Nov-09 1:37
mveRichard MacCutchan15-Nov-09 1:37 
AnswerRe: How to store multiple languages in oracle 10g? Pin
Niladri_Biswas15-Nov-09 2:31
Niladri_Biswas15-Nov-09 2:31 
QuestionMSSQL Server 2005 ... Install Issue Pin
PDTUM14-Nov-09 15:19
PDTUM14-Nov-09 15:19 
AnswerRe: MSSQL Server 2005 ... Install Issue Pin
Shameel16-Nov-09 3:40
professionalShameel16-Nov-09 3:40 
AnswerRe: MSSQL Server 2005 ... Install Issue Pin
PDTUM16-Nov-09 5:01
PDTUM16-Nov-09 5:01 
QuestionMultiple Select Statement in stored procedure Pin
deepseeindeepsy14-Nov-09 0:10
deepseeindeepsy14-Nov-09 0:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.