» »

[VB2005PRO]Database

[VB2005PRO]Database

UltraTX ::

Zanima me kako se naredi povezavo v nek database brer config fila

Sepravi ne gre za connection string ampak nakj malo bolj drugace.
Imel sem v mislih da bi mel ubistvu ta zapis povezave v neki dll datoteki do katre bi potem dostopala exe datoteka

Hvalezen bom z vsak odgovor

Linki so sicer zazeljeni ampak prosim da cimvec poveste tako da pastae kodo in jo malo razlozite
Si vis pacem, para bellum!
DRŽIMO SKUPAJ! (OBR)

darkolord ::

V čem bi pa bil "zapis povezave" drugačen od connection stringa?

UltraTX ::

zapisan naj bi bil kar v sorcu oziroma bol natancno v nekem dllju za zadej samo v direktenm sorcu in ne v configu kakor je bil do zdaj
Si vis pacem, para bellum!
DRŽIMO SKUPAJ! (OBR)

darkolord ::

Če si res želiš v dllju, pač narediš nov dll, narediš eno public spremenljivko in ji nastaviš vrednost

UltraTX ::

saj u tem je problem ne vem katero vrednost nastaviti in kako
Si vis pacem, para bellum!
DRŽIMO SKUPAJ! (OBR)

darkolord ::

Ne veš kakšen connection string nastavit al ne veš kako naredit public spremenljivko v dllju?

UltraTX ::

ne vem kaksen string nastavit
Si vis pacem, para bellum!
DRŽIMO SKUPAJ! (OBR)

darkolord ::

UltraTX ::

'** Properties
Private _connectionReady As Boolean = False
Private _databasePassword As String = ""
Private _databasePath As String
Private _databaseTableName As String
Private _dataTable As New DataTable
Private _sqlString As String
Private _sqlDistinct As Boolean
Private _sqlSelectList As String
Private _sqlWhere As String
Private _sqlOrderBy As String
Private _sqlAscending As Boolean

'** Database connection constants and variable
Private Const mtDB_PROVIDER As String = "Provider=Microsoft.Jet.OLEDB.4.0"
Private Const mtDB_DATA_SOURCE As String = "Data Source="
Private Const mtDB_PASSWORD As String = "Jet OLEDB:Database Password="
Private dbConnectionString As String

'** SQL SELECT constants
Private Const mtSELECT_VERB As String = "SELECT "
Private Const mtSELECT_DISTINCT As String = "DISTINCT "
Private Const mtSELECT_ASTERISK As String = "*"
Private Const mtSELECT_FROM As String = " FROM "
Private Const mtSELECT_ORDER_BY As String = " ORDER BY "
Private Const mtSELECT_ASCENDING As String = " ASC"
Private Const mtSELECT_DESCENDING As String = " DESC"

'** SQL INSERT constants
Private Const mtINSERT_VERB As String = "INSERT INTO "
Private Const mtINSERT_VALUES As String = " VALUES ("

'** SQL UPDATE constants
Private Const mtUPDATE_VERB As String = "UPDATE "
Private Const mtUPDATE_SET As String = " SET "

'** SQL DELETE constants
Private Const mtDELETE_VERB As String = "DELETE FROM "

'** General purpose constants
Private Const mtCOMMA As String = ", "
Private Const mtEQUAL_SIGN As String = " = "
Private Const mtLEFT_BRACKET As String = "["
Private Const mtLEFT_PAREN As String = " ("
Private Const mtPOUND_SIGN As String = "#"
Private Const mtRIGHT_BRACKET As String = "]"
Private Const mtRIGHT_PAREN As String = ")"
Private Const mtSEMI_COLON As String = ";"
Private Const mtSINGLE_QUOTE As String = "'"
Private Const mtSPACE As String = " "
Private Const mtWHERE As String = " WHERE "





Tole kodo sem nekje nasel povejt mi kako to uporabim in pac malo razlozite kaj od tega ubistvu ne potrebujem
Si vis pacem, para bellum!
DRŽIMO SKUPAJ! (OBR)

darkolord ::

Uh, dej prosim še enkrat razloži, kaj točno bi ti potreboval, Oz KAJ točno naj bi stvar v DLLju delala (samo shranjen connection string, opravljanje dejanske povezave z bazo, ...), ker če vse tvoje pisanje sestavim skupaj, je zelo konfuzno 8-)


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

[C#] Xml Serializacija Attribut pred Namespace

Oddelek: Programiranje
9963 (849) Looooooka
»

[C#] Prosim pomagajte! Potrebujem program, ki bi pobiral podatke iz ene strani

Oddelek: Programiranje
212754 (2364) David1994
»

[visual basic 05] - kreiranje datoteke in pisanje vanjo

Oddelek: Programiranje
111519 (1315) gzibret
»

API+VB

Oddelek: Programiranje
262106 (1810) webblod
»

Odpiranje dat.exe v VB

Oddelek: Programiranje
123004 (2797) webblod

Več podobnih tem