Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-05-2006, 06:04 PM   #1 (permalink)
In The Zone
 
digiFriend's Avatar
 
Join Date: Mar 2006
Posts: 266
Default vb6 and mssql server7 (can't update,database or object is read-only)


vb6 and mssql server7. (both software are in same desktop pc)

whenever "add'button is pressed it give "3027" error.
RUN-time error '3027'
can't update,database or object is read-only

how to update database . it show dynaset type recordset in vb ADD-Ins-visual data manager,from there also it deny update.
--------------------------------------------------------------------



Dim db As Database
Dim rs As Recordset

Set db = OpenDatabase("rockysql", False, False, "odbc:uid=sa;pwd=")
Set rs = db.OpenRecordset("shopper")

'odbc data source name "rockysql" ,table name ="shopper"



Private Sub Cmdadd_Click() 'command for add button
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
rs.AddNew
End Sub
__________________
you never know what you can do until you try
digiFriend is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-05-2006, 11:23 PM   #2 (permalink)
Coming back to life ..
 
it_waaznt_me's Avatar
 
Join Date: Nov 2003
Location: A bit closer to heaven
Posts: 1,997
Default Re: vb6 and mssql server7 (can't update,database or object is read-only)

First there should be an rs.Update method too ...
What basically your code does is blank all the text boxes and wait for user to enter the data ... Now put another command buttond and set rs.Update in its Click event ..
__________________
Sleight of hand and twist of fate...
On a bed of nails she makes me wait...
And I wait without you ...
With or without you ..
----
Batty = Too Busy Now !!!
it_waaznt_me is offline  
Old 06-05-2006, 04:26 PM   #3 (permalink)
In The Zone
 
digiFriend's Avatar
 
Join Date: Mar 2006
Posts: 266
Smile Re: vb6 and mssql server7 (can't update,database or object is read-only)

thanks for reply ..................................................
__________________
you never know what you can do until you try
digiFriend is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by Krow
- by abhidev
- by topgear

Advertisement




All times are GMT +5.5. The time now is 07:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2