Click here to Skip to main content
15,897,371 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalsorry, a correction of the question: should be "pub_id" not "Author_id" Pin
VBDotnetNewbie21-Jul-06 9:24
VBDotnetNewbie21-Jul-06 9:24 
QuestionPicture in Database Pin
aransiola21-Jul-06 8:30
aransiola21-Jul-06 8:30 
AnswerRe: Picture in Database Pin
mbuller21-Jul-06 8:53
mbuller21-Jul-06 8:53 
GeneralRe: Picture in Database Pin
aransiola21-Jul-06 9:39
aransiola21-Jul-06 9:39 
AnswerRe: Picture in Database Pin
Dave Sexton22-Jul-06 4:23
Dave Sexton22-Jul-06 4:23 
AnswerRe: Picture in Database Pin
karansharma28-Jul-06 19:26
karansharma28-Jul-06 19:26 
QuestionConfiguring adapters @ time of installation. Pin
work4me21-Jul-06 7:19
work4me21-Jul-06 7:19 
AnswerRe: Configuring adapters @ time of installation. Pin
mbuller21-Jul-06 8:50
mbuller21-Jul-06 8:50 
you can use an application .config file to specify the location of the database then refer to the application .cofig file when pointing to the database with your connection string. To get to the app.config file ... right click, add new item, app.config... then open it you should see something like mine below. The easiest way to get a good connection string for <add key...="" is="" to="" use="" your="" data="" adapter="" and="" just="" copy="" the="" conn="" string="" in="" field="" connection="" string.
hope="" this="" helps="" .
ex.
<?xml="" version="1.0" encoding="utf-8" ?="">
<configuration>
<appsettings>
<add key="odaCustomer.ConnectionString" value="Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database Locking Mode=1;Jet OLEDB:Database Password=;Data Source="\\Sfssv01\userapps\SFS OTR Rate Prg\dbsharp.mdb";Password=;Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk Transactions=1;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System database=;Jet OLEDB:SFP=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:New Database Password=;Jet OLEDB:Create System Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False">
<add key="mskPhone.Visible" value="True">



Ex. Conn String (Access) "if need another database tell me..."
'Place This in a Module
Public cnnRate As New OleDb.OleDbConnection
Public odaCustomer As New OleDb.OleDbDataAdapter

Public Sub Connect()
Try
cnnRate.ConnectionString = _
System.Configuration.ConfigurationSettings.AppSettings("odaCustomer.ConnectionString")
Catch ex As Exception
MsgBox(ex)
End Try


Michael


GeneralRe: Configuring adapters @ time of installation. Pin
mbuller21-Jul-06 8:56
mbuller21-Jul-06 8:56 
Questionwhat is the best practice for .......... Pin
Najmunnisha21-Jul-06 4:44
Najmunnisha21-Jul-06 4:44 
AnswerRe: what is the best practice for .......... Pin
Rizwan Bashir21-Jul-06 5:17
Rizwan Bashir21-Jul-06 5:17 
QuestionConverted from VS2003 to VS2005 and getting cannot convert system.Decimal to SqlTypes.Double error Pin
leckey21-Jul-06 4:12
leckey21-Jul-06 4:12 
AnswerRe: Converted from VS2003 to VS2005 and getting cannot convert system.Decimal to SqlTypes.Double error Pin
Dave Sexton21-Jul-06 21:06
Dave Sexton21-Jul-06 21:06 
QuestionAdding Read Only Property to a axmskedit box Pin
mbuller21-Jul-06 3:27
mbuller21-Jul-06 3:27 
QuestionHow would a DB communicate with the application? Pin
Rajiya21-Jul-06 1:48
Rajiya21-Jul-06 1:48 
AnswerRe: How would a DB communicate with the application? Pin
Vasudevan Deepak Kumar21-Jul-06 1:49
Vasudevan Deepak Kumar21-Jul-06 1:49 
GeneralRe: How would a DB communicate with the application? Pin
Rajiya23-Jul-06 21:30
Rajiya23-Jul-06 21:30 
AnswerRe: How would a DB communicate with the application? Pin
Dave Kreskowiak21-Jul-06 2:15
mveDave Kreskowiak21-Jul-06 2:15 
QuestionClass of Classes! Pin
Alex Feature20-Jul-06 23:56
Alex Feature20-Jul-06 23:56 
AnswerRe: Class of Classes! Pin
Robert Rohde20-Jul-06 23:58
Robert Rohde20-Jul-06 23:58 
GeneralRe: Class of Classes! Pin
Alex Feature21-Jul-06 0:47
Alex Feature21-Jul-06 0:47 
GeneralRe: Class of Classes! Pin
Robert Rohde21-Jul-06 2:21
Robert Rohde21-Jul-06 2:21 
GeneralRe: Class of Classes! Pin
Alex Feature21-Jul-06 3:02
Alex Feature21-Jul-06 3:02 
GeneralRe: Class of Classes! Pin
mbuller21-Jul-06 3:31
mbuller21-Jul-06 3:31 
GeneralRe: Class of Classes! Pin
Alex Feature21-Jul-06 4:00
Alex Feature21-Jul-06 4:00 

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.