This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Call Main() | |
Sub Main() | |
Dim cn | |
Dim rs | |
Set cn = CreateObject("ADODB.Connection") | |
cn.Open "PROVIDER=MSDASQL;Driver={SQL Server};" & _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Call Main() | |
Sub Main() | |
Dim cn | |
Dim rs | |
Set cn = CreateObject("ADODB.Connection") | |
cn.Open "PROVIDER=SQLOLEDB;" & _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Call Main() | |
Sub Main() | |
Dim dbe | |
Dim db | |
Dim rs | |
Set dbe = CreateObject("DAO.DBEngine.36") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Call Main() | |
Sub Main() | |
Dim dbe | |
Dim db | |
Dim rs | |
Set dbe = CreateObject("DAO.DBEngine.120") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Call Main() | |
Sub Main() | |
Dim dbe | |
Dim db | |
Dim rs | |
Set dbe = CreateObject("DAO.DBEngine.36") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
#include <sqlext.h> | |
#include <sql.h> | |
int _tmain( int argc, TCHAR* argv[] ) | |
{ | |
HENV henv; | |
HDBC hdbc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main( int argc, char* argv[] ) | |
{ | |
EXEC SQL BEGIN DECLARE SECTION; | |
char szServerDatabase[] = "(local).pubs"; | |
char szLoginPassword[] = "sa.P@ssW0rd"; | |
char szCommand[] = "SELECT 'Hello, ESQL/C World!' AS Message"; | |
char message[32] = { 0 }; | |
EXEC SQL END DECLARE SECTION; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DBNTWIN32 | |
#include "windows.h" | |
#include <sqlfront.h> | |
#include <sqldb.h> | |
#include <stdio.h> | |
int main( int argc, char* argv[] ) | |
{ | |
DBPROCESS* dbproc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.hello.insert( { message: 'Hello, MongoDB World!' } ); | |
var cur = db.hello.findOne(); | |
print( cur.message ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT 'Hello, Derby World!' AS Message FROM SYSIBM.SYSDUMMY1; |