If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > btrieve error 2301

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-05-10, 05:40
tchiloh tchiloh is offline
Registered User
 
Join Date: Nov 2009
Posts: 18
btrieve error 2301

i have a error 2301 when i try to connect from oledb to pervasive server.


what do i wrong?
Reply With Quote
  #2 (permalink)  
Old 02-05-10, 08:18
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,015
A 2301 is:
Quote:
2301: The database name is invalid
Not a named database. Verify you have entered a valid database name.
Make sure your connection string is pointing to a correct and valid database name.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 02-05-10, 09:32
tchiloh tchiloh is offline
Registered User
 
Join Date: Nov 2009
Posts: 18
I maked a client database: DATA.

DATA linked to data source name : DEMODATA.
this is my source code:

Code:
            string rdaOleDbConnectString = "Provider=PervasiveOLEDB;"
                                     + @"Data Source=DATA;"
                                     + "Location=SERVER4;"
i have not a password on the database, but i have error 2301
Reply With Quote
  #4 (permalink)  
Old 02-05-10, 09:58
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,015
Is DATA a Pervasive Database Name or ODBC Data Source Name?
Just to be clear, DATA is defined on SERVER 4, correct?
Is this a Web or Windows Application?
What version of PSQL are you using?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #5 (permalink)  
Old 02-05-10, 10:11
tchiloh tchiloh is offline
Registered User
 
Join Date: Nov 2009
Posts: 18
it is a odbc data source name.
DATA are defined on SERVER4
it is a windows application.
i use Pervasive sql 8.6 with fixes for oledb (FTF).
Reply With Quote
  #6 (permalink)  
Old 02-05-10, 10:39
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,015
The "Data Source" parameter needs to be the Database Name not an ODBC DSN. If the DATA ODBC DSN points to the DEMODATA database name, you should use DEMODATA in the connection string.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #7 (permalink)  
Old 02-05-10, 12:14
tchiloh tchiloh is offline
Registered User
 
Join Date: Nov 2009
Posts: 18
now i have this error: Invalid user authorization
Reply With Quote
  #8 (permalink)  
Old 02-05-10, 12:23
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,015
Is that pointing to DEMODATA or your database? If it's your database, you probably have a Username/Password that needs to be sent on the connection string.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #9 (permalink)  
Old 02-05-10, 12:47
tchiloh tchiloh is offline
Registered User
 
Join Date: Nov 2009
Posts: 18
now i have this error: An error has occurred on the computer running IIS.


Code:
string rdaOleDbConnectString = "Provider=PervasiveOLEDB;"
                                     + @"Data Source=DEMODATA;"
                                     + "Location=SERVER4;"
                                     + "User ID=Master;"
                                     + "Password=test;";
Reply With Quote
  #10 (permalink)  
Old 02-05-10, 12:51
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,015
I've never seen that error. Is there anything else to the error?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #11 (permalink)  
Old 02-15-10, 07:00
Keereweer Keereweer is offline
Registered User
 
Join Date: Mar 2008
Posts: 14
Quote:
Originally Posted by tchiloh View Post
now i have this error: An error has occurred on the computer running IIS.


Code:
string rdaOleDbConnectString = "Provider=PervasiveOLEDB;"
                                     + @"Data Source=DEMODATA;"
                                     + "Location=SERVER4;"
                                     + "User ID=Master;"
                                     + "Password=test;";
Try this one (notice the 'dot'):
"Provider=PervasiveOLEDB.;"
Reply With Quote
Reply

Thread Tools
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