jump to navigation

Semua Tentang VB – Connection String July 5, 2006

Posted by sarach in MYSQL, SQL Server, Tips Programming, Uncategorized, Visual Basic.
trackback

Mau konek dari Visual Basic ke database, eh.. Lupa syntax connection string !!!
Jangan khwatir berikut saya tampilkan List  syntax connection string mulai dari SQL Server , Oracle, MYSQL,FoxPro, IBM DB2 sampe AS/400.. Hah?? kok bisa ?
Berikut kumpulan syntax2 nya …


Sehubungan dengan banyaknya permintaan dan saran-saran yg masuk ke saya tentang list dari syntax “VB – Connection String” yang banyak terpotong (Hal ini karena keterbatasan dari template hueuhuehue..100x),

Maka untuk memudahkan rekan – rekan agar dapat Men Copy – Paste syntaxnya,

List dari VB – Connection string saya pindahkan ke :
http://e-pondokindah.blogspot.com/2006/07/all-about-vb-connection-string.html

Selamat menikmati…——-

Dear Colleagues,
herewith we inform that List of all VB – Connection string has been moved to :
http://e-pondokindah.blogspot.com/2006/07/all-about-vb-connection-string.html

So that you can “Copy Paste” the syntax easily …
Happy Programming ;)

1. SQL Server

  • ODBC Standard Security: “Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;” Trusted connection: “Driver={SQL Server};Server=Aron1;Database=pubs; Trusted_Connection=yes;” Prompt for username and password: oConn.Properties(“Prompt”) = adPromptAlwaysoConn.Open “Driver={SQL Server};Server=Aron1;DataBase=pubs;”
  • OLE DB, OleDbConnection (.NET) Standard Security: “Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;” Trusted Connection: “Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;” (use serverName\instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000) Prompt for username and password: oConn.Provider = “sqloledb”oConn.Properties(“Prompt”) = adPromptAlwaysoConn.Open “Data Source=Aron1;Initial Catalog=pubs;” Connect via an IP address: “Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;” (DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default))
  • SqlConnection (.NET) Standard Security: “Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;” – or – “Server=Aron1;Database=pubs;User ID=sa;Password=asdasd;Trusted_Connection=False” (both connection strings produces the same result) Trusted Connection: “Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;” – or -“Server=Aron1;Database=pubs;Trusted_Connection=True;” (both connection strings produces the same result) (use serverName\instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000) Connect via an IP address: “Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;” (DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default)) Declare the SqlConnection: C#:using System.Data.SqlClient;SqlConnection oSQLConn = new SqlConnection();oSQLConn.ConnectionString=”my connection string”;oSQLConn.Open(); VB.NET: Imports System.Data.SqlClientDim oSQLConn As SqlConnection = New SqlConnection()oSQLConn.ConnectionString=”my connection string”oSQLConn.Open()
  • Data Shape MS Data Shape”Provider=MSDataShape;Data Provider=SQLOLEDB;Data Source=Aron1;Initial Catalog=pubs;User ID=sa;Password=asdasd;”

2. SQL Server 2005

  • SQL Native Client ODBC Driver Standard security: “Driver={SQL Native Client};Server=Aron1;Database=pubs;UID=sa;PWD=asdasd;” Trusted connection: “Driver={SQL Native Client};Server=Aron1;Database=pubs;Trusted_Connection=yes;” EquivalentsIntegrated Security=SSPI equals Trusted_Connection=yes Prompt for username and password: oConn.Properties(“Prompt”) = adPromptAlwaysoConn.Open “Driver={SQL Native Client};Server=Aron1;DataBase=pubs;” Enabling MARS (multiple active result sets): “Driver={SQL Native Client};Server=Aron1;Database=pubs; Trusted_Connection=yes;MARS_Connection=yes” EquivalentsMultipleActiveResultSets=true equals MARS_Connection=yes Encrypt data sent over network: “Driver={SQL Native Client};Server=Aron1;Database=pubs; Trusted_Connection=yes;Encrypt=yes” Attach a database file on connect to a local SQL Server Express instance: “Driver={SQL Native Client};Server=.\SQLExpress; AttachDbFilename=c:\asd\qwe\mydbfile.mdf; Database=dbname;Trusted_Connection=Yes;” – or – “Driver={SQL Native Client};Server=.\SQLExpress; AttachDbFilename=DataDirectorymydbfile.mdf; Database=dbname;Trusted_Connection=Yes;” (use DataDirectory when your database file resides in the data directory) Why is the “Database” parameter needed? Answer: If the database was previously attached, SQL Server does not reattach it (it uses the attached database as the default for the connection). (the package contains booth the ODBC driver and the OLE DB provider) Using SQL Server 2005 Express? Don’t miss the server name syntax: SERVERNAME\SQLEXPRESS (Substitute “SERVERNAME” with the name of the computer)
  • SQL Native Client OLE DB Provider Standard security: “Provider=SQLNCLI;Server=Aron1;Database=pubs; UID=sa;PWD=asdasd;” Trusted connection: “Provider=SQLNCLI;Server=Aron1;Database=pubs; Trusted_Connection=yes;” Equivalents Integrated Security=SSPI equals Trusted_Connection=yes Prompt for username and password: oConn.Properties(“Prompt”) = adPromptAlwaysoConn.Open “Provider=SQLNCLI;Server=Aron1;DataBase=pubs;” Enabling MARS (multiple active result sets): “Provider=SQLNCLI;Server=Aron1;Database=pubs; Trusted_Connection=yes;MarsConn=yes” Equivalents MarsConn=yes equals MultipleActiveResultSets=true equals MARS_Connection=yes Encrypt data sent over network: “Provider=SQLNCLI;Server=Aron1;Database=pubs; Trusted_Connection=yes;Encrypt=yes” Attach a database file on connect to a local SQL Server Express instance: “Provider=SQLNCLI;Server=.\SQLExpress; AttachDbFilename=c:\asd\qwe\mydbfile.mdf; Database=dbname;Trusted_Connection=Yes;” – or – “Provider=SQLNCLI;Server=.\SQLExpress; AttachDbFilename=DataDirectorymydbfile.mdf; Database=dbname;Trusted_Connection=Yes;” (use DataDirectory when your database file resides in the data directory) Why is the “Database” parameter needed? Answer: If the database was previously attached, SQL Server does not reattach it (it uses the attached database as the default for the connection). (the package contains booth the ODBC driver and the OLE DB provider) Using SQL Server 2005 Express? Don’t miss the server name syntax: SERVERNAME\SQLEXPRESS (Substitute “SERVERNAME” with the name of the computer)
  • SqlConnection (.NET) Standard Security: “Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;” – or – “Server=Aron1;Database=pubs;User ID=sa;Password=asdasd;Trusted_Connection=False” (both connection strings produces the same result) Trusted Connection: “Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;” – or – “Server=Aron1;Database=pubs;Trusted_Connection=True;” (both connection strings produces the same result) (use serverName\instanceName as Data Source to use an specifik SQLServer instance) Connect via an IP address: “Data Source=190.190.200.100,1433; Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;” (DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default)) Enabling MARS (multiple active result sets): “Server=Aron1;Database=pubs; Trusted_Connection=True;MultipleActiveResultSets=true” Note! Use ADO.NET 2.0 for MARS functionality. MARS is not supported in ADO.NET 1.0 nor ADO.NET 1.1 Streamline your Data Connections by Moving to MARS, by Laurence Moroney, DevX.com >> Attach a database file on connect to a local SQL Server Express instance: “Server=.\SQLExpress; AttachDbFilename=c:\asd\qwe\mydbfile.mdf; Database=dbname; Trusted_Connection=Yes;” – or – “Server=.\SQLExpress; AttachDbFilename=DataDirectorymydbfile.mdf; Database=dbname; Trusted_Connection=Yes;” (use DataDirectory when your database file resides in the data directory) Why is the “Database” parameter needed? Answer: If the database was previously attached, SQL Server does not reattach it ( it uses the attached database as the default for the connection). Using “User Instance” on a local SQL Server Express instance: “Data Source=.\SQLExpress;integrated security=true; attachdbfilename=DataDirectory\mydb.mdf;user instance=true;” The “User Instance” functionality creates a new SQL Server instance on the fly during connect. This works only on a local SQL Server 2005 instance and only when connecting using windows authentication over local named pipes. The purpose is to be able to create a full rights SQL Server instance to a user with limited administrative rights on the computer. To enable the functionality: sp_configure ‘user instances enabled’,’1′ (0 to disable) Using SQL Server 2005 Express? Don’t miss the server name syntax: SERVERNAME\SQLEXPRESS (Substitute “SERVERNAME” with the name of the computer)
  • Context Connection – connecting to “self” from within your CLR stored prodedure/function C#: using(SqlConnection connection = new SqlConnection(“context connection=true”)) { connection.Open(); // Use the connection } Visual Basic: Using connection as new SqlConnection(“context connection=true”) connection.Open() ‘ Use the connection End Using The context connection lets you execute Transact-SQL statements in the same context (connection) that your code was invoked in the first place.

3. Access

  • ODBC Standard Security: “Driver={Microsoft Access Driver (*.mdb)}; Dbq=C:\mydatabase.mdb;Uid=Admin;Pwd=;” Workgroup: “Driver={Microsoft Access Driver (*.mdb)}; Dbq=C:\mydatabase.mdb;SystemDB=C:\mydatabase.mdw;” Exclusive: “Driver={Microsoft Access Driver (*.mdb)}; Dbq=C:\mydatabase.mdb;Exclusive=1;Uid=admin;Pwd=”
  • OLE DB, OleDbConnection (.NET) Standard security: “Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\somepath\mydb.mdb;User Id=admin;Password=;” Workgroup (system database): “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:System Database=system.mdw;” With password: “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;”

4. Oracle

  • ODBC New version: “Driver={Microsoft ODBC for Oracle};Server=OracleServer.world; Uid=Username;Pwd=asdasd;” Old version: “Driver={Microsoft ODBC Driver for Oracle}; ConnectString=OracleServer.world; Uid=myUsername;Pwd=myPassword;”
  • OLE DB, OleDbConnection (.NET) Standard security: “Provider=msdaora;Data Source=MyOracleDB;User Id=UserName;Password=asdasd;” This one’s from Microsoft, the following are from Oracle Standard Security: “Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=Username;Password=asdasd;” Trusted Connection: “Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;OSAuthent=1;”
  • OracleConnection (.NET) Standard: “Data Source=MyOracleDB;Integrated Security=yes;” This one works only with Oracle 8i release 3 or later Specifying username and password: “Data Source=MyOracleDB;User Id=username;Password=passwd;Integrated Security=no;” This one works only with Oracle 8i release 3 or later
  • Declare the OracleConnection: C#: using System.Data.OracleClient; OracleConnection oOracleConn = new OracleConnection(); oOracleConn.ConnectionString = “my connection string”; oOracleConn.Open(); VB.NET: Imports System.Data.OracleClient Dim oOracleConn As OracleConnection = New OracleConnection() OracleConn.ConnectionString = “my connection string” oOracleConn.Open() Missing the System.Data.OracleClient namespace? Download .NET Managed Provider for Oracle >>Great article! “Features of Oracle Data Provider for .NET” by Rama Mohan G. at C# Corner
  • Core Labs OraDirect (.NET) Standard: “User ID=scott; Password=tiger; Host=ora; Pooling=true; Min Pool Size=0;Max Pool Size=100; Connection Lifetime=0″ Read more at Core Lab and the product page.
  • Data Shape MS Data Shape: “Provider=MSDataShape.1;Persist Security Info=False;Data Provider=MSDAORA;Data Source=orac;user id=username;password=mypw”

5. MySQL

  • MyODBC MyODBC 2.50 Local database: “Driver={mySQL};Server=localhost; Option=16834;Database=mydatabase;” MyODBC 2.50 Remote database: “Driver={mySQL};Server=data.domain.com; Port=3306;Option=131072;Stmt=; Database=my-database;Uid=username;Pwd=password;” MyODBC 3.51 Local database: “DRIVER={MySQL ODBC 3.51 Driver}; SERVER=localhost;DATABASE=myDatabase; USER=myUsername; PASSWORD=myPassword;OPTION=3;” MyODBC 3.51 Remote database: “DRIVER={MySQL ODBC 3.51 Driver}; SERVER=data.domain.com; PORT=3306;DATABASE=myDatabase; USER=myUsername;PASSWORD=myPassword;OPTION=3;”
  • OLE DB, OleDbConnection (.NET) Standard: “Provider=MySQLProv;Data Source=mydb; User Id=UserName;Password=asdasd;” Connector/Net 1.0 (.NET) Standard: “Server=Server;Database=Test;Uid=UserName;Pwd=asdasd;” Download the driver at MySQL Developer Zone. Specifying port: “Server=Server;Port=1234;Database=Test; Uid=UserName;Pwd=asdasd;” Default port is 3306. Enter value -1 to use a named pipe connection. Declare the MySqlClient connection: C#: using MySql.Data.MySqlClient; MySqlConnection oMySqlConn = new MySqlConnection(); oMySqlConn.ConnectionString = “Server=Server;Database=Test;Uid=UserName;Pwd=asdasd;”; oMySqlConn.Open(); VB.NET: Imports MySql.Data.MySqlClient Dim oMySqlConn As MySqlConnection = New MySqlConnection() oMySqlConn.ConnectionString = “Server=Server;Database=Test;Uid=UserName;Pwd=asdasd;” oMySqlConn.Open()
  • MySqlConnection (.NET) eInfoDesigns.dbProvider: “Data Source=server;Database=mydb;User ID=username;Password=pwd;Command Logging=false” This one is used with eInfoDesigns dbProvider, an add-on to .NET Declare the MySqlConnection: C#: using eInfoDesigns.dbProvider.MySqlClient; MySqlConnection oMySqlConn = new MySqlConnection(); oMySqlConn.ConnectionString = “my connection string”; oMySqlConn.Open(); VB.NET: Imports eInfoDesigns.dbProvider.MySqlClient Dim oMySqlConn As MySqlConnection = New MySqlConnection() oMySqlConn.ConnectionString = “my connection string” oMySqlConn.Open()
  • SevenObjects MySqlClient (.NET) Standard: “Host=server; UserName=myusername; Password=mypassword;Database=mydb;” This is a freeware ADO.Net data provider from SevenObjects
  • Core Labs MySQLDirect (.NET) Standard: “User ID=root; Password=pwd; Host=localhost; Port=3306; Database=test; Direct=true; Protocol=TCP; Compress=false; Pooling=true; Min Pool Size=0; Max Pool Size=100; Connection Lifetime=0″

6.Interbase

  • ODBC, Easysoft Local computer: “Driver={Easysoft IB6 ODBC}; Server=localhost;Database=localhost:C:\mydatabase.gdb; Uid=username;Pwd=password” Remote Computer: “Driver={Easysoft IB6 ODBC}; Server=ComputerName; Database=ComputerName:C:\mydatabase.gdb; Uid=username;Pwd=password”
  • ODBC, Intersolv Local computer: “Driver={INTERSOLV InterBase ODBC Driver (*.gdb)};Server=localhost;Database=localhost:C:\mydatabase.gdb; Uid=username;Pwd=password” Remote Computer: “Driver={INTERSOLV InterBase ODBC Driver (*.gdb)}; Server=ComputerName; Database=ComputerName:C:\mydatabase.gdb; Uid=username;Pwd=password” This driver are provided by DataDirect Technologies >> (formerly Intersolv)
  • OLE DB, SIBPROvider Standard: “provider=sibprovider;location=localhost:;data source=c:\databases\gdbs\mygdb.gdb;user id=SYSDBA;password=masterkey” Specifying character set: “provider=sibprovider;location=localhost:;data source=c:\databases\gdbs\mygdb.gdb;user id=SYSDBA;password=masterkey;character set=ISO8859_1″ Specifying role: “provider=sibprovider;location=localhost:;data source=c:\databases\gdbs\mygdb.gdb;user id=SYSDBA;password=masterkey;role=DIGITADORES”

7.IBM DB2

  • OLE DB, OleDbConnection (.NET) from ms TCP/IP: “Provider=DB2OLEDB;Network Transport Library=TCPIP;Network Address=XXX.XXX.XXX.XXX;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema; User ID=MyUser;Password=MyPW” APPC: “Provider=DB2OLEDB;APPC Local LU Alias=MyAlias;APPC Remote LU Alias=MyRemote;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema; User ID=MyUser;Password=MyPW”
  • IBM’s OLE DB Provider (shipped with IBM DB2 UDB v7 or above) TCP/IP: Provider=IBMDADB2;Database=sample;HOSTNAME=db2host; PROTOCOL=TCPIP; PORT=50000;uid=myUserName;pwd=myPwd;
  • ODBC Standard: “driver={IBM DB2 ODBC DRIVER};Database=myDbName;hostname=myServerName; port=myPortNum;protocol=TCPIP; uid=myUserName; pwd=myPwd”

8.Sybase

  • ODBC Standard Sybase System 12 Enterprise Open Client: “Driver={SYBASE ASE ODBC Driver};Srvr=Aron1;Uid=username;Pwd=password” Standard Sybase System 12.5 Enterprise Open Client: “Driver={SYBASE ASE ODBC Driver};NA=HOSTNAME,PORT_NUMBER; UID=username;PWD=password” Standard Sybase System 11: “Driver={SYBASE SYSTEM 11};Srvr=Aron1;Uid=username;Pwd=password;Database=mydb” For more information check out the Adaptive Server Enterprise Document Sets Intersolv 3.10: “Driver={INTERSOLV 3.10 32-BIT Sybase};Srvr=Aron1;Uid=username;Pwd=password;” Sybase SQL Anywhere (former Watcom SQL ODBC driver): “ODBC; Driver=Sybase SQL Anywhere 5.0; DefaultDir=c:\dbfolder\;Dbf=c:\mydatabase.db; Uid=username;Pwd=password;Dsn=””””” Note! The two double quota (“”) following the DSN parameter at the end are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax (\”) or maybe single quota (‘). The empty DSN parameter is indeed critical as not including it will result in error 7778. OLE DB Adaptive Server Anywhere (ASA): “Provider=ASAProv;Data source=myASA” Read more in the ASA User Guide (part 1, chapter 2) >> Adaptive Server Enterprise (ASE) with Data Source .IDS file: “Provider=Sybase ASE OLE DB Provider; Data source=myASE” Note that you must create a Data Source .IDS file using the Sybase Data Advministrator. These .IDS files resemble ODBC DSNs.
  • Adaptive Server Enterprise (ASE): “Provider=Sybase.ASEOLEDBProvider;Srvr=myASEserver,5000; Catalog=myDBname;User Id=username;Password=password” – some reports on problem using the above one, try the following as an alternative – “Provider=Sybase.ASEOLEDBProvider; Server Name=myASEserver,5000;Initial Catalog=myDBname; User Id=username;Password=password” This one works only from Open Client 12.5 where the server port number feature works, allowing fully qualified connection strings to be used without defining any .IDS Data Source files.
  • AseConnection (.NET) Standard: “Data Source=’myASEserver';Port=5000;Database=’myDBname'; UID=’username';PWD=’password';” Declare the AseConnection: C#: using Sybase.Data.AseClient; AseConnection oCon = new AseConnection(); oCon.ConnectionString=”my connection string”; oCon.Open(); VB.NET: Imports System.Data.AseClientDim oCon As AseConnection = New AseConnection()oCon.ConnectionString=”my connection string”oCon.Open()

9.Informix

  • ODBC Informix 3.30: “Dsn=”;Driver={INFORMIX 3.30 32 BIT};Host=hostname; Server=myserver;Service=service-name;Protocol=olsoctcp; Database=mydb;UID=username;PWD=myPwd Informix-CLI 2.5: “Driver={Informix-CLI 2.5 (32 Bit)};Server=myserver; Database=mydb;Uid=username;Pwd=myPwd”
  • OLE DB IBM Informix OLE DB Provider: “Provider=Ifxoledbc.2;password=myPw;User ID=myUser;Data Source=dbName@serverName; Persist Security Info=true”

10. Ingres

  • ODBC DSN-less: “Provider=MSDASQL.1;DRIVER=Ingres;SRVR=xxxxx; DB=xxxxx;Persist Security Info=False;uid=xxxx; pwd=xxxxx;SELECTLOOPS=N; Extended Properties=””SERVER=xxxxx; DATABASE=xxxxx;SERVERTYPE=INGRES””” Important note! The two double quota (“”) in the string are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax (ex. \”) or maybe single quota (‘).

11. Mimer SQL

  • ODBC Standard Security: “Driver={MIMER};Database=mydb;Uid=myuser;Pwd=mypw;” Prompt for username and password: “Driver={MIMER};Database=mydb;”

12. Lightbase

  • Standard Standard: “user=USERLOGIN;password=PASSWORD;UDB=USERBASE; server=SERVERNAME”

13.PostgreSQL

  • Core Labs PostgreSQLDirect (.NET) Standard: “User ID=root; Password=pwd; Host=localhost; Port=5432; Database=testdb;Pooling=true; Min Pool Size=0; Max Pool Size=100; Connection Lifetime=0″ Read more at Core Lab and the product page.
  • PostgreSQL driver Standard: “DRIVER={PostgreSQL};SERVER=ipaddress;port=5432; DATABASE=dbname;UID=username;PWD=password;”
  • Npgsql by pgFoundry (.NET) SSL activated: “Server=127.0.0.1;Port=5432;Userid=myuserid; password=mypw;Protocol=3;SSL=true; Pooling=true;MinPoolSize=3;MaxPoolSize=20; Encoding=UNICODE;Timeout=20;SslMode=Require” Without SSL: “Server=127.0.0.1;Port=5432;Userid=myuserid; password=mypw; Protocol=3;SSL=false; Pooling=true;MinPoolSize=1;MaxPoolSize=20; Encoding=UNICODE;Timeout=15;SslMode=Disable”

14. Paradox

  • ODBC 5.X: Driver={Microsoft Paradox Driver (*.db )};DriverID=538;Fil=Paradox 5.X;DefaultDir=c:\pathToDb\;Dbq=c:\pathToDb\; CollatingSequence=ASCII” 7.X: “Provider=MSDASQL.1;Persist Security Info=False;Mode=Read;Extended Properties=’DSN=Paradox;DBQ=C:\myDb; DefaultDir=C:\myDb;DriverId=538;FIL=Paradox 7.X; MaxBufferSize=2048;PageTimeout=600;';Initial Catalog=C:\myDb”
  • OleDbConnection (.NET) Standard “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\myDb; Extended Properties=Paradox 5.x;”

15. DSN

  • ODBC DSN: “DSN=myDsn;Uid=username;Pwd=;” File DSN: “FILEDSN=c:\myData.dsn;Uid=username;Pwd=;”

16. Firebird

  • .NET – Firebird .Net Data Provider Standard: “User=SYSDBA;Password=masterkey; Database=SampleDatabase.fdb; DataSource=localhost; Port=3050;Dialect=3;Charset=NONE;Role=; Connection lifetime=15;Pooling=true;MinPoolSize=0; MaxPoolSize=50;Packet Size=8192;ServerType=0″

17. Excel

  • ODBC Standard: “Driver={Microsoft Excel Driver (*.xls)};DriverId=790; Dbq=C:\MyExcel.xls;DefaultDir=c:\mypath;” TIP! SQL syntax: “SELECT * FROM [sheet1$]” – i.e. worksheet name followed by a “$” and wrapped in “[” “]” brackets.
  • OLE DB Standard: “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties=””Excel 8.0;HDR=Yes;IMEX=1″”” “HDR=Yes;” indicates that the first row contains columnnames, not data “IMEX=1;” tells the driver to always read “intermixed” data columns as text. Note that this option might affect excel sheet write access negative. TIP! SQL syntax: “SELECT * FROM [sheet1$]” – i.e. worksheet name followed by a “$” and wrapped in “[” “]” brackets. TIP! Check out the [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel] located registry REG_DWORD “TypeGuessRows”. That’s the key to n ot letting Excel use only the first 8 rows to guess the columns data type. Set this value to 0 to scan all rows. This might hurt performance. Important note! The two double quota (“”) in the string are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax (ex. \”) or maybe single quota (‘).

18. Text

  • ODBC Standard: “Driver={Microsoft Text Driver (*.txt; *.csv)}; Dbq=c:\txtFilesFolder\;Extensions=asc,csv,tab,txt;”
  • OLE DB Standard: “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\txtFilesFolder\;Extended Properties=””text;HDR=Yes;FMT=Delimited””” “HDR=Yes;” indicates that the first row contains columnnames, not data Important note! The two double quota (“”) in the string are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax (ex. \”) or maybe single quota (‘).

19. DBF / FoxPro

  • ODBC standard: “Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\mydbpath;”
  • OLE DB, OleDbConnection (.NET) standard: “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\folder; Extended Properties=dBASE IV;User ID=Admin;Password=”

20. AS/400 (iSeries)

  • OLE DB, OleDbConnection (.NET) IBM Client Access OLE DB provider: “PROVIDER=IBMDA400; DATA SOURCE=MY_SYSTEM_NAME; USER ID=myUserName;PASSWORD=myPwd” Where MY_SYSTEM_NAME is the name given to the system connection in OperationsNavigator IBM Client Access OLE DB provider: “PROVIDER=IBMDA400; DATA SOURCE=MY_SYSTEM_NAME;USER ID=myUserName;PASSWORD=myPwd;DEFAULT COLLECTION=MY_LIBRARY;” Where MY_SYSTEM_NAME is the name given to the System Connection, and MY_LIBRARY is the name given to the library in iSeries Navigator.
  • ODBC IBM Client Access ODBC driver: “Driver={Client Access ODBC Driver (32-bit)};System=my_system_name; Uid=myUserName;Pwd=myPwd”

21. Exchange

  • OLE DB Exchange OLE DB provider: “ExOLEDB.DataSource” Specify store in the connection open command like this: conn.open http://servername/mypublicstore

22. Visual FoxPro

  • OLE DB, OleDbConnection (.NET) Database container (.DBC): “Provider=vfpoledb.1;Data Source=C:\MyDbFolder\MyDbContainer.dbc; Collating Sequence=machine” Free table directory: “Provider=vfpoledb.1;Data Source=C:\MyDataDirectory\;Collating Sequence=general” Force the provider to use an ODBC DSN: “Provider=vfpoledb.1;DSN=MyDSN” Read more (Microsoft msdn) >>
  • ODBC Database container (.DBC): “Driver={Microsoft Visual FoxPro Driver};SourceType=DBC; SourceDB=c:\myvfpdb.dbc;Exclusive=No; NULL=NO; Collate=Machine;BACKGROUNDFETCH=NO;DELETED=NO” Free Table directory: “Driver={Microsoft Visual FoxPro Driver}; SourceType=DBF;SourceDB=c:\myvfpdbfolder;Exclusive=No; Collate=Machine; NULL=NO; DELETED=NO;BACKGROUNDFETCH=NO” “Collate=Machine” is the default setting, for other settings check the list of supported collating sequences >> Microsoft Visual Foxpro site: http://msdn.microsoft.com/vfoxpro

23 Pervasive

  • ODBC Standard: “Driver={Pervasive ODBC Client Interface};ServerName=srvname;dbq=@dbname” Pervasive ODBC info >>
  • OLE DB Standard: “Provider=PervasiveOLEDB;Data Source=C:\path”

24. UDL

  • UDL UDL: “File Name=c:\myDataLink.udl;”

Visit : http://e-pondokindah.blogspot.com/

About these ads

Comments

1. nana - July 14, 2006

sangat membantu, tengQ :)

———–
Sama Sama :D

2. Arif - July 17, 2006

Bagus banget……

——
Terima kasih, mudah-mudahan bermanfaat

3. andre - August 4, 2006

Jancokk top abis men ini sangat membantu……………………….
(maaf jancok adalah ungkapan kegembiraan dariku)

——-
huehuehue100x , kebetulan temen kantorku banyak wong jow, jadi sedikitnya taulah artinya ;)
semoga membantu

4. hasan - August 9, 2006

sry yo cak aqu br belajar tapi thank banget ya…

—-
;) sama sama

5. Farhan - August 18, 2006

Perkenalkan, saya farhan dan lagi butuh bantuan. Saya lagi kebingungan ngerancang data base pakai mysql dan VB dengan ems my sql. udah pernah coba dan jalan, tapi pas saya copy aplikasi databasenya ke komputer lain kenapa ga bisa.jadi dari database nya semua data nya ga ada.
Klo boleh sya minta contoh aplikasi database mysql 5 dan vb 6.
sebelumyna terima kasih banyak

—-
sudah saya kirim , silahkan cek emailnya.
untuk masalah yang disebut diatas, pastikan server addressnya, kemudian untuk databasenya  dapat digunakan fasilitas backup/restore atau export database dari mysql appl, jika akan dipindah ke server/pc lain.
sehingga table beserta datanya dapat utuh terbawa. 

6. roni - August 29, 2006

Its cool, ;)

—-

 

7. liz - September 7, 2006

Thx u very much u r my saviour ^_^

8. Hendra - September 7, 2006

Kalo ada error beginian kenapa yach:

Client does not support authentication protocal requested by Server; Consider upgrading mysql Client.

Ada yang bisa tulungin ga? :-(

Thanks before…

9. iwan - September 10, 2006

Hi Hendra, Pke MySql Versi Berapa? Kalo gasalah pake Versi 4.1.x ke atas atau 5.x harus dowbload mysql connector terbaru deh http://dev.mysql.com/downloads/connector/odbc/3.51.html. selamat mencoba!

10. salbie - October 1, 2006

wadooooooh ora ngerti aku.cek angele.iki bahasa opo to?
kayaknya ini bukan duniaku dech
duniaku kan dunia anak anak gerang

11. thomas - November 8, 2006

tenkyu, lumayan membantu, mirip ama situs connectionstrings.com :p, but mau tanya, kalo connect ke postgress dari vb .net, harus donlot add on ga ?

12. muhan dp - November 9, 2006

that’s i need hehe,
oh yo mas tahu ga konsep apllikasi client-server model three tier di vb
btuh referensi nih

thank’s berat

13. rose - November 14, 2006

plz tell me ,how file dsn is created in vb when Asscess is used as back end

14. gops - November 29, 2006

Dear Sir,

We are using VB.NET 2005 (Winform) and the backend SQL Server Express 2005. We would like to connect the Express (.mdf) database from Remote Machine. What type of connection string we have to use?

We tried the following ConnectionString but we got the error:
Provider=SQLNCLI.1;Server=.\SQLEXPRESS;AttachDbFileName=S:\MLJData.mdf;Database=MLJData;Trusted_Connection=Yes;

Also suggest what are all the prerequisites to run sql server express 2005 database in client machine.

We did installed the following tools in client machine:

1. .NET framework 2.0
2. sqlncli.msi (SQL Server Native Client Setup)

Please provide us the solution for this.

Thanks
M. Gopalan
Sofist India

15. tavi - December 11, 2006

mas q new bie bgt soal mysql n vb 6 tp neh q da tugas suruh buat aplkakasi itu
jadi boleh ga mas q minta tolonk dikasih tahu:
1.gmn caranya buat ERD trus connect in nya ke mysql
2.trus mas klo mo download mysql 5 yang bkn versi text kaya DOS alias yg GUI dmn y??coz q dah download n install tp bentuknya dalam bentuk text / DOS
3.ini khan client server,klo dbase nya di linux n aplikasi vb nya di windows connect in nya pake apa??n gmn caranya?/bisa kasih contoh g??
4. gimana caranya buat aplikasi yang udah jadi dalam bentuk .exe??ato bisa diinstall??q blom th

5.makasih mas,sorry banyak tolonk dikirim ke emailq,ato klo masnya sibuk bisa ga mas q dikasih th aja situs yang bisa q kunjungi untuk smua pertanyaan diatas???thx,q tunggu sam y ;)

—-
coba chek emailnya..
kemudian main2 ke http://www.ilmukomputer.com

16. ajiyosman - December 18, 2006

bagus nih,,,,bisa aku pelajarin,,,,

17. Okta - January 17, 2007

Mas aku baru belajar program VB nih, mas kalo misal saya bikin program di VB, DB SQL dan reportnya pake Crystal.
Kalo misal sudah selesai untuk install ke client itu biasanya menggunakan program apa Mas? apakah ada program lainnya atau tidak perlu?

18. Acep - January 31, 2007

Tanya kenapa ??

Kok saya masih Blm bisa ya koneksi VB + Oracle ??

Kasih tahu cara yang lebih detail donk ;)

Terimakasih

19. bingung - February 14, 2007

wow kere…n bgt

20. Drich - March 4, 2007

Mas, pengen tahu juga donk bagaimana contoh scriptnya untuk connect dari VB ke MySQL
Trims…

21. kurniawan - April 3, 2007

Waduh, terima kasih bagus banget websitenya dan sangat berguna bagi semuanya. pasti dibalas sama Tuhan YME. Amien…
——————————————

22. daniel - April 5, 2007

saya punya masalah nich
koneksi dari vb.net 2005 ke mssql 2005
kq ga bisa yah
pesan error nya:
cannot find server “…”
padahal uda diset odbc, instance name, connection stringnya…
saya pake emulator… pengen buat aplikasi di pda…
tolong ya frenz… thx…

23. bombom - April 15, 2007

takon mas….

SELECT * FROM DIL WHERE Nama LIKE ‘*” & text1.text & “*’
ORDER BY Nama

kok gak mau yaa VB+oracle9

24. ihut - April 27, 2007

ok banget….

25. VB NET - ACCESS - EXCEL - FLEXGRID - Crystal Report (1) « Programmer - Akuntan - Sarach - Luthfan - May 7, 2007

[…] ke database ke sql server, my sql atao oracle  ya sama saja.. tinggal contek posting saya yg dulu http://pondokindah.wordpress.com/2006/07/05/semua-tentang-vb-connection-string/) , dilanjutkan dengan bagaimana mengambil data mentah Excel untuk kita masukan ke database , lalu […]

26. wira - May 9, 2007

trima kasih banyak….

27. teguh - May 10, 2007

untuk no 23 tanda % nya kurang

28. teguh - May 10, 2007

tolong untuk masing masing conneksi kasih contoh programnya

29. dian - May 24, 2007

koneksi VB ke SQL Server itu gimana yah?.aku baru mau mulai belajar vB.jd mohon bantuannya.aku pengen bisa,so aku mau belajar skrng.aku masih duduk sekolah nih.jadi aku pengen bisa program dr skrng.

30. satya - May 26, 2007

thanks bisa buat bantuin tugas vb-ku nih!!!

31. Budi - May 29, 2007

Mau Tanya Nih, Saya Pemakai VB dan SQL Server, saya Mau Coba Migrasi Ke FireBird database Tapi Belum connect saya Coba Buat koneksi seperti Di SQL Server Tp Blm Berhasil
Bisa Bantu Nggak?

32. nosie - May 30, 2007

pengunjung baru niy..
cm mo comment aj. website, kordinator, pengunjung, activity dan content yg cukup baik dan berbobot. salut buat smuanya.. still alive yo…!!

33. nawi - June 6, 2007

terima kasih kesempatan untuk bertanyaanya.

Untuk koneksi Vb dengan excel, apakah perintah untuk penambahan atau modifikasi data perintahnya sama seperti yang digunakan pada mysql atau access, sudah saya coba untuk menampilkan datanya sudah berhasil.
mohon bisa diberikan contoh sintak modifikasi datanya

trima kasih

34. Budi - June 6, 2007

Pak.. minta contoh migrasi dari mysql 2.3 ke mysql 5 donk

35. alie - June 19, 2007

mas tolong kirim keemail saya juga ya koneksi vb ke mysql

36. nadhif - June 28, 2007

salam kenal, mohon di tolong
mas aku lagi bikin program client-server connection string pakai jet 4.0 oleDB, terus path database musti di sharing, sehingga database bisa dilihat oleh client dari my networkplace kan jadi gawat kalau database sampai dikotak-katik sama client. mas bisa gak connection string tanpa harus sharing path database di server atau ada cara lain gak ya?
sebelumnya aku ucapin terima kasih, aku lagi butuh banget.. tolong ya.

37. anita - July 13, 2007

Pa bgs bgt n sangt bermanfaat bg yg beljar sukses terus ya……..

38. Siswo Utomo - July 27, 2007

Bagus dan menmbah wawasan buat saya, semoga bermanfaat bagi kita yang belajar vb

39. kadir - August 14, 2007

klo setting database MYSQL dari linux biar bisa di akses dari windows (XP), caranya gmana y?

40. Husni - August 27, 2007

Assalamualaikum
Saya lagi buat tugas ahir dengan menggunakan VB.6.0 dan MySQL dengan koneksinya melalui odbc. form saya selalu gagal koneksi kenapa ya.. pada hal gak ada error lagi. Tolong dong kirim satu form menggunakan Form dan mysql yang lengkap dengan perintah insert, delete, update, save dan cancel ke email saya.
terima kasih….

41. ihsan - August 30, 2007

tolong saya…
saya ingin mengkoneksikan database access ke vb, boleh minta bagaimana sample kodenya dari dim sampai load fomnya sehingga data bisa diakses. dan bagaimana caranya mengeksekusi perintah sql dengan menggunakan database access.thanks

42. Jerry - September 10, 2007

saya punya masalah yang sama dengan husni, tolong email saya juga dunk sperti yang husni minta..
thx before..

43. piki - September 12, 2007

waduoohh..punyeng aku…..mo bikin quiz online pake vb..tp apa bisa diupload/dijalankan di website??tolongin gue donk???hua….
mas bisa ksih source kodenya pake vb ato yang lain gpp deh.soalnya buat PI q.klo bisa dengan screenshotnya.tolong mas..huahua…
sebelumnya mohon maap klo kurang sopan mas..
klo bisa kirimin ke email q ya…biingung jadinya
biasa..manusia gtu loh!!!…thank

44. ronggo - September 28, 2007

gi mana sih caranya conect vb to oracle

45. arif - October 1, 2007

sya memakai vb.net 2005, pd menu utama sya memakai contextmenustrip tapi yg jadi masalah ketika sya compile dan besok sya tambah/edit/hapus contextmenustripnya kok gak ad pengruh sma skali ………..TOLONG DONG BANTUANNYA knp bsa kejadian sprti itu, dan cara u/ mrbah contextmenustrip bgmn? before thank’s

46. dian - October 22, 2007

aku lagi bingung untuk bikin SSL di SQL SERVER 2000 n VB 6.0, gimana ya mass caranya ?
makasih banget ya mass… bingung euy.. ato kalo punya alamat url indonesianya tentang itu boleh aku minta..
sekale lagi makasih banget mass

47. Andy - October 24, 2007

tq ^_^

48. dee - November 8, 2007

makasih banyak ya buat kontribusinya…
Smg dibalez ma Allah SWT,,

chayo ya buat bkin blog yg bermanfaat ky gn…:)

49. Santoso - November 12, 2007

Aloo.,,,pls help me..ada yg tau g caranya Backup dan restore database SQL SERVEr melalui aplikasi Visual Basic 6.0 ? bg dong…codenya…thanks ya…

50. Baguzz - November 13, 2007

Maz, kalo mau buat prog yang bisa attach file di VB gmn yah? misalnya aku mau simpan data excel dari drive D: ke drive C: atau di path program ku, aku dah coba cari di internet tapi stuck nih.. tolong di bantu ya.. kalo bisa saya minta contoh programnya,

thanks berat nih sebelumnya

51. sudarmono - November 16, 2007

Bisa nggak connect ke sql server cuma nyebutin nama server tanpa menyebutkan database enginenya :
misal :
1.seharusnya \\servername\sqlexpress

tapi dibypass nyebutin : \\serrvername

karena dianggap instance nama database engine sudah running

tolong pencerahnannya dari rekan2 semua tau e-mail ke
mr_sudarmono@yahoo.com

52. dony - November 17, 2007

aku juga minta jawaban yang ditanya ama farhan,18agust2006 no urut 5

email:vdd_it@yahoo.com

53. dony - November 17, 2007

aku juga minta jawaban yang ditanya ama farhan,18agust2006 no urut 5. thx ya mas

email: vdd_it@yahoo.com

54. Tonny Dwiyono - November 28, 2007

terima kasih banyak, sangat membantu, akan dicoba,tapi bisa kasih lebih detail tidak mengenai vb + mysql, terima kasih

55. mokijoe - November 29, 2007

thanks,
btew pondok indah kegusur bus way ngak sih?

56. benx2 - December 2, 2007

yooo anak baru neh
pgn belajar
mu’un doanya

57. Rika - December 10, 2007

kalo konek dari Crystal report 8.5 ke MySQL tanpa melalui ODBC bisa ga? Kalo pake SQL Server kan bisa tuh..nah kalo melalui MySQL bisa ga ya?Caranya gmana? karena saya sudah coba selalu melalui ODBC.
Tujuannya biar nanti kalo kita pasang aplikasi dibeberapa client ga perlu setting2 odbc di komputer clientnya..
Makasih…

58. Rh3r3 - December 14, 2007

apa sih syntax pada VB6 buat baca 2 fields pada tabel Visual FoxPro yg sama?

59. Satrio - January 15, 2008

Tanya nih, kalo SAP biasanya pake database apa ya? Oracle? Tapi katanya kalo VB6/program lain mau connect ke databasenya harus lewat API nya SAP dulu gitu? Tolong donk kalo ada yang udah pernah coba….

60. MANULLANG - January 16, 2008

Saya sudah buat package vb6 + crystal report 8.5 dan hasilnya waktu saya instal di client reportnya ngak bisa tampil. Gimana caranya bikin packages supaya kita instal di client kita ngak perlu instal crystal reportnya, maksudnya waktu bikin packagenya udah include crystal reportnya.

Thank you
please help me

Manullang

61. arie - January 25, 2008

mas mau tanya, kl backup mysql lewt VB gimana yach?
maksudnya menjalankan mysqldump lewat VB?

makacih bagt

62. rusli - February 4, 2008

Mas, minta tolong bagi driver Easysoft IB6 ODBC for windows dong.
trus tolong juga ajarin cara konek excel ke firebird. hehehhe maaf nih permintaannya banyak. Makasih sebelumnya

63. Seno - February 4, 2008

Saya ada 2 server, 1 linux, 1 Windows.
Di Server linux diinstal MySql dan ada web aplikasinya.

Di server windows, ada SQL Server.
saat ini saya mau mengirim data dari server Windows , ke Server Linux.
Data yang dikirim melalui sebuah quary / recordset , baru kemudian diinput ke MySql di server linux.

Saya bingung bgmn koneksi VB dr Komputer OS Windows ke MySql di server Linux

Mohon pencerahan, makasih sebelumnya
( zenozen@gmail.com )

64. Seno - February 5, 2008

Saya ada 2 server, 1 linux, 1 Windows.
Di Server linux diinstal MySql dan ada web aplikasinya.

Di server windows, ada SQL Server.
saat ini saya mau mengirim data dari server Windows , ke Server Linux.
Data yang dikirim melalui sebuah quary / recordset , baru kemudian diinput ke MySql di server linux.

Saya bingung bgmn koneksi VB dr Komputer OS Windows ke MySql di server Linux

Mohon pencerahan, makasih sebelumnya

senozen@gmail.com

65. husnul - February 18, 2008

bagus banget ini sngat membantu, bagaimana ya caranya/listing code vb 6 imports dari Excel ke ms sql server…..

66. Vera - February 20, 2008

Sangat menbantu buanget! Thanks A Lot ya Mas! :)

67. arimursandhi - February 20, 2008

Hatur Sembah Nuhun……

Semoga Amal Sampean Diterima Seperti Yg Njenengan Berikan…

Trimakasih Banyak…

Bantuin Nyong trus….

arimursandhi@Gmail.com

68. arifin - February 21, 2008

Mas’e tahu tidak code connection string VB.NET ke PDA terutama pada database access dan sqlce
thanks ya before

69. suma - March 3, 2008

Saya minta tolong Koneksikan file fdb saya dengan VB dong, soalnya atasanku nyuruh ambil data di dalamnya, tuh fdb peninggalan karyawan programmer sebelum gue,sedangkan tuh file pake password juga kayaknya, pusing gue, udah gue gak pernah tahu apa itu firebird ditambah pake password-passwordan segala, kalo ada yg bersedia filenya saya kirim ya, cuma 2 mega kok…thank’s ya.

70. bagong - March 10, 2008

wah bagus banget hasil ngopy paste dari http://www.connectionstrings.com/
ya :))

71. bagustenan - March 14, 2008

Bagus juga tipsnya. Saya sendiri lebih suka pakai MyVBQL daripada MyODBC.
Semua connection string ini bisa juga buat VB 2008 Express?

72. core - April 3, 2008

mas mau tanya, gimana caranya vb acces bisa di pakai multiuser????
Apa data base accesnya mesti di sharing atau ada code2 tambahan?????

73. Ipank - May 8, 2008

tolongin gue dong kasih syntax VB buat export dari SQL ke Access & dari SQL ke Excel ???… thank’s ya

74. buzank - May 20, 2008

thank’s bro

75. buzank - May 20, 2008

thank’s bro

76. ariep & soti-x - May 28, 2008

Nah..ini ilmu banget… Haturnuhun

77. catur - July 24, 2008

membantu banget neh connection string nya.. thanx yah..
omong2, share dunk cara create file dbf dari vb.. pengenya seh cobak export recordset oracle lalu disimpan ke file dbf..

78. yudi - July 26, 2008

mas Q baru belajar Oracle nie n pengen sekali belajar lebih banyak…dr mas…boleh minta contoh program vb + oracle g..? sebelumnya makasih ya mas…..

79. bhakti sakti - July 27, 2008

makasih pak atas kirimannya tapi kok masih ruwet ya? he..he..he…., maklum baru belajar!! tolong kirimi cara belajar PHP, My SQL yang untuk pemula ke email sy ya pak!!!! trimakasih buanyak!!! lo…

80. rhien - July 28, 2008

wah keren

81. girlmaro - July 29, 2008

aku pengen donk cara buat crystal report di vbnet 2005. databaseku sql server2000. masih nyoba2 nich bingung

82. Achmad Saefuloh - August 1, 2008

Saya Mau tanya donk, hasil installan package dari visual basic 6.0 tidak bisa diinstall di komputer lain ya. terus bagaimana solusinya

83. ismail - August 2, 2008

Assalamu’alaikum wr. wb
perkenalkan, nama saya ismail, saya lagi ada tugas untuk membuat aplikasi multi user dengan menggunakan visual basic 6, tolongin saya donk mas…, bagaimana koneksi databasenya ? dan menampilkannya, dan kode/sricpt nya? saya minta tolong kalo ada contoh programnya dan kodenya saya akan sangat berterima kasih apabila mau di kirimkan ke e-mail saya : aismail_dahsyat@plasa.com,
atas kebaikannya saya ucapkan syukron jazakumullah…

84. satwika - August 8, 2008

permisi mau tanya misalnya database mysql saya bawaan dari phpmyaadmin (aplikasi AppServ) itu bisa gak dikonekin ke VB? apa harus nginstall mysql sndiri? kalo iya apa gak bentrok nanti? trima kasih..mohon dijawab scepatnya he..he..

85. Hilman - August 26, 2008

Ho oh…
Saya juga kerja di AppServ 2.2
Connection stringnya gimana ya?
Tolong dong…

please email : hilrd@yahoo.com

86. Bobby - September 5, 2008

Mas tolong saya dibantu gmn caranya atau sintax nya di VB 6 jika mau Backup dan Restore Mysql 5.0. Solanya saya ada project dengan banyak data base (banyak kantor cabang) dan dengan 1 master database yang sama hanya nanti beda nama databasenya. Mohon bantuannya. Saya sudah cari ke mana2 agak sulit. Mohon saya dibantu di beri Function2 dan bagaimana cara memanggilnya di dengan command button. Mohon dikirim via email. Terima kasih atas bantuannya.

87. arie - stmik mikroskil medan - September 16, 2008

thanks so much,. moga amal ibadahnya di terima,. amieennn

88. ujang suhendi - October 28, 2008

Ass…

89. ujang suhendi - October 28, 2008

Ass..ane suhe ane lgi belajar php tolong apa yg sy hrs pelajari terlebih dahulu

90. Thoha - November 2, 2008

Ass..Misi mas, mau nanya ni? Gimana kalo pengen bikin file instalasi (.exe) dari project yang dibikin pake vb.net 2005?

91. yadi - November 15, 2008

gile komplit oiii

92. Helmi - November 29, 2008

klo coding untuk attach database pada saat runtime ada gak mas
klo ada tolong kirim ke email saya ya mas.

93. Ricky - December 20, 2008

mau minta tolong ni, aq buat installer vb.net 2005 dengan database sql server express 2005 standar edition, trus aq coba install installer yg aq buat di komputer laen, kok gak bisa connect ke database nya y, padahal dikomputer tersebut suda ku instal sql server express 2005 nya, .net framework 2.0 jg uda, tapi kok tetep gak bisa y malah muncul pesan error login failed [Ricky\Guest]. padahal aq menggunakan file app.conf. kan seharusnya secara otomatis akan menyesuaikan. mohon petunjuk nya… hehehe… thanks…

94. Ricky - December 20, 2008

o y tambahan database nya uda tak attach jg ke komputer tersebut…
hehehe… cm dikomputer tersebutkan nama komputernya uda berbeda bukan ricky lagi. kira2 apa ya permasalahan nya…? :p

95. candra - February 13, 2009

kang..boleh minta contoh program yg db-nya bawaan appserv dong..itu sama ga ma koneksi mysql diatas..makasih sebelumnya..

96. kahar - February 22, 2009

saya sedang cuba menggunakan vb6 dan mySQL. masaalah skrg apabila saya execute prg vb msg ini yg keluar “method ‘open’ of object ‘_connection’ failed

Set conn = New ADODB.Connection
conn.ConnectionString = “DRIVER={MySQL ODBC 3.51 Driver};” _
& “SERVER=localhost;” _
& “DATABASE=staffbdk;” _
& “USER=root;” _
& “PASSWORD=NSBbsn678;” _
& “OPTION=3″
conn.Open

tolong saya kepada yg tahu masaalah ini

97. farkhan - February 23, 2009

thanks! sangat membantu proyek-ku nich…

98. farkhan - February 23, 2009

mo dicoba dulu nich sourcenya…


Sorry comments are closed for this entry

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: