Click here to Skip to main content
15,906,106 members
Home / Discussions / Database
   

Database

 
AnswerRe: Server Application Unavailable Pin
Colin Angus Mackay13-May-06 10:39
Colin Angus Mackay13-May-06 10:39 
QuestionCONNECT TO SQLSERVER Pin
malak nour13-May-06 4:00
malak nour13-May-06 4:00 
AnswerRe: CONNECT TO SQLSERVER Pin
Colin Angus Mackay13-May-06 10:34
Colin Angus Mackay13-May-06 10:34 
QuestionThe fastest Normal ADO.NET or Microsoft Best Practise EnterpriseLibrary Pin
Albert Pascual12-May-06 9:12
sitebuilderAlbert Pascual12-May-06 9:12 
AnswerRe: The fastest Normal ADO.NET or Microsoft Best Practise EnterpriseLibrary Pin
Albert Pascual12-May-06 13:06
sitebuilderAlbert Pascual12-May-06 13:06 
GeneralRe: The fastest Normal ADO.NET or Microsoft Best Practise EnterpriseLibrary Pin
Rob Graham13-May-06 8:54
Rob Graham13-May-06 8:54 
QuestionOnColumnChanged event wrongly fires for SelectedItem property Pin
AFSEKI12-May-06 9:09
AFSEKI12-May-06 9:09 
QuestionHow To Convert SQL Recordset To DBF Pin
Naven626LX12-May-06 5:31
Naven626LX12-May-06 5:31 
Not sure if I have the right forum but really stuck and in need of help.

Problem: I have an SQL Server Table containing records. I load these records into a recordset. I then create a DBF Table. After creation I now want to load the SQL Records into the newly created DBF table. Simple enough but I keep getting errors. Here is my code:

<br />
'Create Table<br />
cnn.Open( _<br />
             "Provider=Microsoft.Jet.OLEDB.4.0;" & _<br />
            "Data Source=C:\;" & _<br />
            "Extended Properties=dBase III;")<br />
<br />
            strSQL = "CREATE TABLE Test" & _<br />
            "(ID Text(50),")<br />
<br />
'Create Connection<br />
            conn2 = CreateObject("ADODB.Connection")<br />
            conn2.Open("Provider=Microsoft.Jet.OLEDB.4.0;" & _<br />
                             "Data Source=" & Path & ";" & _<br />
                             "Extended Properties=""DBASE III;"";")<br />
-<br />
-<br />
             rs2 = conn2.Execute("SELECT * FROM Test")<br />
<br />
' Create Connection To SQL<br />
-<br />
-<br />
            rss2.OpenRecordSet("SELECT * FROM SQL_Table")<br />
<br />
'Portion that gives a problem.<br />
<br />
While Not rss2.EOF<br />
                rs2.AddNew()<br />
                rs2.Fields("ID").Value = rss2!ID<br />
                rs2.Update()<br />
                rss2.MoveNext()<br />
            End While<br />
<-/code><br />
<br />
All of the connections work. The table is created. Now I have a problem transferring the recordsets from the SQL Recordset to the DBF. An error says: "Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype."<br />
<br />
Any way to fix this using the existing code? Any help is REALLY appreciated. Thanks in advance.

AnswerRe: How To Convert SQL Recordset To DBF Pin
Rob Graham12-May-06 6:08
Rob Graham12-May-06 6:08 
GeneralRe: How To Convert SQL Recordset To DBF Pin
Naven626LX12-May-06 6:42
Naven626LX12-May-06 6:42 
GeneralRe: How To Convert SQL Recordset To DBF Pin
Rob Graham12-May-06 7:02
Rob Graham12-May-06 7:02 
Questiontake backup with query Pin
vipinpaliwal198012-May-06 2:38
vipinpaliwal198012-May-06 2:38 
AnswerRe: take backup with query Pin
Frank Kerrigan12-May-06 5:15
Frank Kerrigan12-May-06 5:15 
AnswerRe: take backup with query Pin
Colin Angus Mackay12-May-06 5:31
Colin Angus Mackay12-May-06 5:31 
QuestionBlank default values for varchar field Pin
hertz_j11-May-06 23:13
hertz_j11-May-06 23:13 
AnswerRe: Blank default values for varchar field Pin
Ramya SM11-May-06 23:53
Ramya SM11-May-06 23:53 
AnswerRe: Blank default values for varchar field Pin
Eric Dahlvang12-May-06 3:10
Eric Dahlvang12-May-06 3:10 
JokeRe: Blank default values for varchar field Pin
hertz_j12-May-06 3:25
hertz_j12-May-06 3:25 
QuestionDataset with multiple database Pin
armax7511-May-06 11:03
professionalarmax7511-May-06 11:03 
AnswerRe: Dataset with multiple database Pin
Colin Angus Mackay11-May-06 11:11
Colin Angus Mackay11-May-06 11:11 
QuestionSQLClient related question Pin
mysorian11-May-06 6:04
professionalmysorian11-May-06 6:04 
AnswerRe: SQLClient related question Pin
Rob Graham12-May-06 6:16
Rob Graham12-May-06 6:16 
GeneralRe: SQLClient related question Pin
mysorian12-May-06 6:56
professionalmysorian12-May-06 6:56 
GeneralRe: SQLClient related question Pin
Rob Graham12-May-06 7:04
Rob Graham12-May-06 7:04 
Questionrandom alphanumeric generator Pin
lehya11-May-06 1:46
lehya11-May-06 1:46 

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.