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
development: | |
adapter: sqlserver | |
database: mydatabase | |
username: myusername | |
password: mypassword | |
dsn: mydsn |
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
/etc/freetds/freetds.conf | |
[mydsn] | |
host = server_ip_address | |
port = 1433 | |
tds version = 7.0 |
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
/etc/odbcinst.ini | |
[FreeTDS] | |
Description = TDS driver (Sybase/MS SQL) | |
Driver = /usr/lib/odbc/libtdsodbc.so | |
Setup = /usr/lib/odbc/libtdsS.so | |
CPTimeout = | |
CPReuse = | |
FileUsage = 1 | |
/etc/odbc.ini |
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
export ODBCINI=/etc/odbc.ini | |
export ODBCSYSINI=/etc | |
export FREETDSCONF=/etc/freetds/freetds.conf |
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
sqsh -S mydsn -U db_username -P db_password | |
# AND/OR | |
isql -v myserver_dsn username password |
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
USE company; | |
SELECT * FROM departments; |
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
<div id="progressbar" class="ui-progressbar"> |
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
// Initialize | |
$('#progressbar').progressbar({ value: 0 }); | |
// Record current position in a list | |
current_position = 0; | |
// Record list length | |
list_length = $('li').length; | |
// Loop through the list |
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
+----------+---------+-------------+ | |
| Database | Records | Time Taken | | |
+----------+---------+-------------+ | |
| MySQL | 10000 | 206 seconds | | |
| mongoDB | 10000 | 196 seconds | | |
+----------+---------+-------------+ | |
+----------+---------+-------------+ | |
| Database | Records | Time Taken | | |
+----------+---------+-------------+ | |
| MySQL | 5000000 | 8.5 hours | |
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
// elapsed time in days (BAD) | |
int d; | |
// (GOOD) | |
int elapsedTimeInDays; |