|
|
When a connection to an oracle database is established, we are dependant on machine by adapting almost of the connection methods. The following codes are independent of many such barriers, as it requires no tnsnames.ora. Private Sub cmdTest_Click() On Error GoTo Hell Dim vCn As New ADODB.Connection Dim vRs As New ADODB.Recordset Dim vCs As String '''''''vCs = "driver={microsoft odbc for oracle}; uid=scott/tiger@ora9i" vCs = "provider=msdaora; data source=(description=(address_list=(address=(protocol=tcp)(host=pc4santosh)(port=1521)))(connect_data=(service_name=ora9i))); user id=scott; password=tiger;" vCn.Open vCs vRs.Open "select count(*) from tab", vCn MsgBox vRs.Fields(0) GoTo Ends
Hell: MsgBox "Error : " & Err.Number & vbCrLf & Err.Description Ends: If vRs.State = 1 Then vRs.Close: If vCn.State = 1 Then vCn.Close
End Sub
»»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com Really Simple Syndication ( RSS ) is a way for content publishers to make news, blogs, and other content available to subscribers. You can view RSS content in Microsoft Office Outlook 2007
|
Select the current column
| CTRL+SPACEBAR
|
| Select the current row
| SHIFT+SPACEBAR
|
| Paste a function into a formula
| SHIFT+F3
|
| When you enter a formula, display the Formula Palette after you type a function name
| CTRL+A
|
| Alternate between displaying cell values and displaying cell formulas
| CTRL+` (left quote)
|
| Enter the date
| CTRL+; (semicolon)
|
| Enter the time
| CTRL+: (colon)
|
| Fill the selected cell range with the current entry
| CTRL+ENTER
|
| Display the Go To dialog box
| F5
|
| Display the Format Cells dialog box
| CTRL+1
|
| This key combination selects the current range around the active cell, the area defined as the largest rectangle of data surrounded by white space
| CTRL+SHIFT+* (asterisk)
|
| Insert the AutoSum formula
| ALT+= (equal sign) | »»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com Command window usage A cross between Visual Basic's Immediate window and a command line, the Command window lets you execute Visual Studio commands or code statements, depending on the mode of the window. The illustration below shows a Command window that's been switched to immediate mode using the immed command. The Command window has two modes: Command mode { >cmd }, allows you to execute Visual Studio commands without using the menu system, or to execute commands that don't appear in any menu. Immediate mode { >immed }, used in debugging, allows you to evaluate expressions, check the value of variables, execute program statements and functions, and so on. JavaScript - Step by Step Debugging Enable client side script debugging in Internet Explorer go to Tools ->Internet Options and on advanced tab make sure that the Disable script debugging is unchecked. Below listing highlights above step You can now debug client side script code directly in Visual Studio 2005 environment. It is made possible through powerful debugging options that enable you to debug managed code, script code, T-SQL code, and native code. Visual studio 2005 supports 64-bit debugging either locally or remotely. You can now debug Java scripts hosted by IE. Visual studio debugger provides enhanced new features like data tips, visualizers which allow us to view contents of complex variables and data types in a meaningful way. The time required to install an operating system depends on various elements and it differs from computer to computer; operating system to operating system. There are a number of ghosting software that can be used for imaging a drive as well as writing the image back on the boot drive.
I am presenting a different approach, and the steps are as under
1. Install the operating systems ( windows ) in two partitions i.e. make your computer dual bootable 2. Install all your applications on your default operating system i.e. on primary partition 3. Boot your computer from non-default operating system 4. Go to 'Backup and Restore' utility of windows 5. Make a drive back up of primary partition on any of your secondary partition
Now you system is ready to meet any disaster, what you need to do is, just boot from the non-default operating system and restore the backup archive at primary partition.
»»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com
What's new or different from MS-DOS
Windows 2000 retains and enhances almost all the functionality of MS-DOS. These tables explain new Windows 2000 commands not found in MS-DOS, changes to MS-DOS commands, and unavailable MS-DOS commands.
This table explains Windows 2000 system commands not found in MS-DOS.
| Command
| Function
|
| at
| Schedules commands and programs to run on a computer at a specified time and date.
|
| cacls
| Displays or modifies access control lists (ACLs) of files.
|
| convert
| Converts file systems from FAT or FAT32 to NTFS.
|
| dosonly
| Prevents starting applications other than MS-DOS-based applications from the Command.com prompt.
|
| echoconfig
| Displays messages when reading the MS-DOS subsystem Config.nt file.
|
| endlocal
| Ends localization of environment variables.
|
| findstr
| Searches for text in files using regular expressions.
|
| ntcmdprompt
| Runs the Windows 2000 command interpreter, Cmd.exe, rather than Command.com after running a TSR or after starting the command prompt from within an MS-DOS application.
|
| popd
| Changes to the directory last set with the pushd command.
|
| pushd
| Saves the current directory for use by the popd command, and then changes to the specified directory.
|
| setlocal
| Begins localization of environmental variables.
|
| start
| Runs a specified program or command in a secondary window and in its own memory space.
|
| Title
| sets the title of the command prompt window.
|
| &&
| Command following this symbol runs only if the command preceding the symbol succeeds.
|
| ||
| Command following this symbol runs only if the command preceding the symbol fails.
|
| &
| Separates multiple commands on the command line.
|
| ( )
| Groups commands.
|
| ^
| Escape character. Allows typing command symbols as text.
|
| ; or ,
| Separates parameters. |
Changes to MS-DOS Commands
This table lists changes and improvements to MS-DOS commands.
| Command
| Changed features
|
| chcp
| Changes code pages for full-screen mode only.
|
| cmd
| Cmd.exe replaces Command.com.
|
| del
| New switches provide many more functions.
|
| dir
| New switches provide many more functions.
|
| diskcomp
| Switches /1 and /8 are not supported.
|
| diskcopy
| Switch /1 is not supported.
|
| doskey
| Available for all character-based programs that accept buffered input. Doskey has been improved by a series of enhancements.
|
| format
| 20.8 MB optical drive supported. Switches /b, /s, and /u are not supported.
|
| label
| The symbols ^ and & can be used in a volume label.
|
| mode
| Extensive changes.
|
| more
| New switches provide many more functions.
|
| path
| The %PATH%environment variable appends the current path to a new setting at the command prompt.
|
| print
| Switches /b, /c, /m, /p, /q, /s, /t, and /u are not supported.
|
| prompt
| New character combinations allow you to add ampersands ($a), parentheses ($c and $f), and spaces ($s) to your prompt.
|
| recover
| Recovers files only.
|
| rmdir
| New /s switch deletes directories containing files and subdirectories.
|
| sort
| Does not require TEMP environment variable. File size is unlimited.
|
| xcopy
| New switches provide many more functions. |
Unavailable MS-DOS Commands
The following MS-DOS commands are not available at the command prompt.
| Command
| New procedure or reason for obsolescence
|
| assign
| Not supported in Windows 2000.
|
| backup
| Not currently supported.
|
| choice
| Not currently supported.
|
| ctty
| Not currently supported.
|
| dblspace
| Not supported.
|
| defrag
| Windows 2000 automatically optimizes disk use. To optimize a disk manually, right-click it in My Computer, click Properties, and then, on the Tools tab, click Defragment Now.
|
| deltree
| The rmdir /s command deletes directories containing files and subdirectories.
|
| diskperf
| Not currently supported.
|
| dosshell
| Unnecessary with Windows 2000.
|
| drvspace
| The Drvspace program is not currently supported.
|
| emm386
| Unnecessary with Windows 2000.
|
| fasthelp
| This MS-DOS 6.0 command is the same as the Windows 2000 command help. Windows 2000 also provides an online command reference.
|
| fdisk
| Disk Management prepares hard disks for use with Windows 2000.
|
| include
| Multiple configurations of the MS-DOS subsystem are not supported.
|
| interlnk
| The Interlnk program is not supported.
|
| intersrv
| The Intersrv program is not supported.
|
| join
| Increased partition size and an improved file system eliminate the need to join drives.
|
| memmaker
| Windows 2000 automatically optimizes the MS-DOS subsystem's memory use.
|
| menucolor
| Multiple configurations of the MS-DOS subsystem are not supported.
|
| menudefault
| Multiple configurations of the MS-DOS subsystem are not supported.
|
| menuitem
| Multiple configurations of the MS-DOS subsystem are not supported.
|
| mirror
| Not supported in Windows 2000.
|
| msav
| The Msav program is not supported.
|
| msbackup
| Windows 2000 provides the Backup utility (in the Administrative Tools in Control Panel) for computers with tape drives, or the xcopy command for computers without tape drives.
|
| mscdex
| It is unnecessary to configure the MS-DOS subsystem to use a CD-ROM drives. Windows 2000 provides access to CD-ROM drives for the MS-DOS subsystem.
|
| msd
| Use the System Information snap-in. To start System Information, click Start, click Run, and then type msinfo32.
|
| numlock
| Not currently supported.
|
| power
| The Power utility is not supported.
|
| restore
| Not currently supported.
|
| scandisk
| The Scandisk utility is not supported.
|
| smartdrv
| Windows 2000 automatically provides caching for the MS-DOS subsystem.
|
| submenu
| Multiple configurations of the MS-DOS subsystem are not supported.
|
| sys
| Windows 2000 will not fit on a standard 1.2 MB or 1.44 MB floppy disk.
|
| undelete
| Not supported in Windows 2000.
|
| unformat
| Not supported in Windows 2000.
|
| vsafe
| The Vsafe program is not supported. | When a file is deleted from your computer, its contents aren’t immediately destroyed. Windows simply marks the hard drive space as being available for use by changing one character in the file table so that the file entry won’t be displayed in my computer or a command line dir command, etc. If you manage to start an un deletion process before windows uses that part of the hard drive to write a new file, all you have to do is set that flag back to “on,” and you get the file Obviously, the sooner you try to restore a file, the more successful you’ll be. But stop a moment and think about the other things that could cause this part of the hard drive to be overwritten. If your hard drive is pretty full, the odds are much greater that windows will grab your precious unallocated space for its next write. Or, if you defrag the hard drive, you run the risk of unused parts of the drive being overwritten! (this also means that if you are running silent background defrag services like disk keeper, or if you have defrag utilities scheduled to defrag automatically, you might get blindsided — lose your chance at data recovery — if you don’t halt them until you have your deleted file recovered So the rule is: 1) Stop using that computer immediately! This minute! Right now! 2) Use another computer to get the recovery tool you will need. And the warning is 1) Source code should never be copied to client’s system 2) Even if we delete after completing our purpose, 3) It can be recovered so also it is not in recycle bin
| Provider |
Description |
| Microsoft SQL Server .NET Data Provider (System.Data.SqlClient) |
The Microsoft SQL Server .NET Data Provide allows you to connect to a Microsoft SQL Server 7.0, 2000, and 2005 databases.
For Microsoft SQL Server 6.5 or earlier, use the OLE DB .NET Data Provider with the SQL Server OLE DB Provider (SQLOLEDB).
Using C#:
using System.Data.SqlClient; ... SqlConnection oSQLConn = new SqlConnection(); oSQLConn.ConnectionString = "Data Source=(local);" + "Initial Catalog=myDatabaseName;" + "Integrated Security=SSPI"; //Or // "Server=(local);" + // "Database=myDatabaseName;" + // "Trusted_Connection=Yes"; oSQLConn.Open(); ... oSQLConn.Close();
// If you open the connection, then close the connection! // Otherwise the connection does not go back into the connection pool. // Note the SqlDataAdapter will open and close the connection for you // when calling it's Fill or Update methods. However if the connection // is already open, the SqlDataAdapter will leave it open.
Using VB.NET:
Imports System.Data.SqlClient ... Dim oSQLConn As SqlConnection = New SqlConnection() oSQLConn.ConnectionString = _ "Data Source=(local);" & _ "Initial Catalog=myDatabaseName;" & _ "Integrated Security=SSPI" oSQLConn.Open() If connection to a remote server (via IP address): oSQLConn.ConnectionString = _ "Network Library=DBMSSOCN;" & _ "Data Source=xxx.xxx.xxx.xxx,1433;" & _ "Initial Catalog=myDatabaseName;" & _ "User ID=myUsername;" & _ "Password=myPassword" oSQLConn.Open() Where: - "Network Library=DBMSSOCN" tells SqlClient to use TCP/IP Q238949 - xxx.xxx.xxx.xxx is an IP address of the remote SQL Server. - 1433 is the port number for the remote SQL Server. Q269882 and Q287932 - You can also add "Encrypt=yes" for encryption |
| MySQLDirect .NET Data Provider - From CoreLab (CoreLab.MySql) |
MySQLDirect .NET is data provider to direct access to MySQL database server for the Microsoft .NET Framework and .NET Compact Framework. It is completely based on ActiveX Data Objects for the .NET Framework (ADO.NET) technology. ADO.NET provides a rich set of components for creating distributed, data-sharing applications. It is an integral part of the .NET Framework, providing access to relational data, XML, and application data.
MySQLDirect .NET data provider can be used in the same way as the SQL Server .NET or the OLE DB .NET Data Provider. Data provider can access MySQL server either using native MySQL network protocol directly or through MySQL client library. It allows to create lightweight and fast applications working with MySQL.
Using C#
using CoreLab.MySql; ... MySqlConnection oMySqlConn = new MySqlConnection(); oMySqlConn.ConnectionString = "User ID=myUsername;" + "Password=myPassword;" + "Host=localhost;" + "Port=3306;" + "Database=myDatabaseName;" + "Direct=true;" + "Protocol=TCP;" + "Compress=false;" + "Pooling=true;" + "Min Pool Size=0;" + "Max Pool Size=100;" + "Connection Lifetime=0"; oMySqlConn.Open();
Using VB.NET
Imports CoreLab.MySql ... Dim oMySqlConn As MySqlConnection = New MySqlConnection() oMySqlConn.ConnectionString = _ "User ID=myUsername;" & _ "Password=myPassword;" & _ "Host=localhost;" & _ "Port=3306;" & _ "Database=myDatabaseName;" & _ "Direct=true;" & _ "Protocol=TCP;" & _ "Compress=false;" & _ "Pooling=true;" & _ "Min Pool Size=0;" & _ "Max Pool Size=100;" & _ "Connection Lifetime=0" oMySqlConn.Open() |
| ODBC .NET Data Provider (System.Data.ODBC) |
The Open Database Connectivity (ODBC) .NET Data Provider provides access to native ODBC drivers the same way the OLE DB .NET Data Provider provides access to native OLE DB providers.
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
For SQL Server ODBC Driver ' VB.NET Imports System.Data.Odbc ... Dim oODBCConnection As OdbcConnection Dim sConnString As String = _ "Driver={SQL Server};" & _ "Server=MySQLServerName;" & _ "Database=MyDatabaseName;" & _ "Uid=MyUsername;" & _ "Pwd=MyPassword" oODBCConnection = New Odbc.OdbcConnection(sConnString) oODBCConnection.Open()
For Oracle ODBC Driver ' VB.NET Imports System.Data.Odbc ... Dim oODBCConnection As OdbcConnection Dim sConnString As String = _ "Driver={Microsoft ODBC for Oracle};" & _ "Server=OracleServer.world;" & _ "Uid=myUsername;" & _ "Pwd=myPassword" oODBCConnection = New Odbc.OdbcConnection(sConnString) oODBCConnection.Open()
For Access (JET) ODBC Driver ' VB.NET Imports System.Data.Odbc ... Dim oODBCConnection As OdbcConnection Dim sConnString As String = _ "Driver={Microsoft Access Driver (*.mdb)};" & _ "Dbq=c:\somepath\mydb.mdb;" oODBCConnection = New Odbc.OdbcConnection(sConnString) oODBCConnection.Open()
For Sybase System 11 ODBC Driver ' VB.NET Imports System.Data.Odbc ... Dim oODBCConnection As OdbcConnection Dim sConnString As String = _ "Driver={Sybase System 11};" & _ "SRVR=mySybaseServerName;" & _ "DB=myDatabaseName;" & _ "UID=myUsername;" & _ "PWD=myPassword"
oODBCConnection = New OdbcConnection(sConnString) oODBCConnection.Open()
For all other ODBC Drivers ' VB.NET Imports System.Data.Odbc ... Dim oODBCConnection As OdbcConnection Dim sConnString As String = _ "Dsn=myDsn;" & _ "Uid=myUsername;" & _ "Pwd=myPassword" oODBCConnection = New Odbc.OdbcConnection(sConnString) oODBCConnection.Open() |
| OLE DB .NET Data Provider (System.Data.OleDb) |
The Microsoft .NET Framework Data Provider for OLE DB allow you to use native OLE DB providers (e.g. Microsoft.JET.OLEDB.4.0) through COM interop to enable data access.
For IBM AS/400 OLE DB Provider ' VB.NET Imports System.Data.OleDb ... Dim oOleDbConnection As OleDbConnection Dim sConnString As String = _ "Provider=IBMDA400.DataSource.1;" & _ "Data source=myAS400DbName;" & _ "User Id=myUsername;" & _ "Password=myPassword" oOleDbConnection = New OleDb.OleDbConnection(sConnString) oOleDbConnection.Open()
For JET OLE DB Provider ' VB.NET Imports System.Data.OleDb ... Dim oOleDbConnection As OleDbConnection Dim sConnString As String = _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\myPath\myJet.mdb;" & _ "User ID=Admin;" & _ "Password=" oOleDbConnection = New OleDb.OleDbConnection(sConnString) oOleDbConnection.Open()
For Oracle OLE DB Provider ' VB.NET Imports System.Data.OleDb ... Dim oOleDbConnection As OleDbConnection Dim sConnString As String = _ "Provider=OraOLEDB.Oracle;" & _ "Data Source=MyOracleDB;" & _ "User ID=myUsername;" & _ "Password=myPassword" oOleDbConnection = New OleDb.OleDbConnection(sConnString) oOleDbConnection.Open()
For SQL Server OLE DB Provider ' VB.NET Imports System.Data.OleDb ... Dim oOleDbConnection As OleDbConnection Dim sConnString As String = _ "Provider=sqloledb;" & _ "Data Source=myServerName;" & _ "Initial Catalog=myDatabaseName;" & _ "User Id=myUsername;" & _ "Password=myPassword" oOleDbConnection = New OleDb.OleDbConnection(sConnString) oOleDbConnection.Open()
For Sybase ASE OLE DB Provider ' VB.NET Imports System.Data.OleDb ... Dim oOleDbConnection As OleDbConnection Dim sConnString As String = _ "Provider=Sybase ASE OLE DB Provider;" & _ "Data Source=MyDataSourceName;" & _ "Server Name=MyServerName;" & _ "Database=MyDatabaseName;" & _ "User ID=myUsername;" & _ "Password=myPassword" oOleDbConnection = New OleDb.OleDbConnection(sConnString) oOleDbConnection.Open() |
| Oracle .NET Data Provider - From Microsoft (System.Data.OracleClient) |
The Microsoft .NET Framework Data Provider for Oracle is an add-on component to the .NET Framework 1.0 that provides access to an Oracle database using the Oracle Call Interface (OCI) as provided by Oracle Client software. Oracle 8i Release 3 (8.1.7) Client or later must be installed for this provider to function correctly.
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Using C#:
using System.Data.OracleClient; ... OracleConnection oOracleConn = new OracleConnection(); oOracleConn.ConnectionString = "Data Source=Oracle8i;" + "Integrated Security=SSPI"; oOracleConn.Open();
Using VB.NET:
Imports System.Data.OracleClient ... Dim oOracleConn As OracleConnection = New OracleConnection() oOracleConn.ConnectionString = "Data Source=Oracle8i;" & _ "Integrated Security=SSPI"; oOracleConn.Open() |
| Oracle .NET Data Provider - From Oracle (Oracle.DataAccess.Client) |
The Oracle Data Provider for .NET (ODP.NET) features optimized data access to the Oracle database from a .NET environment. ODP.NET allows developers to take advantage of advanced Oracle database functionality, including Real Application Clusters, XML DB, and advanced security. The data provider can be used from any .NET language, including C# and Visual Basic .NET.
ODP.NET makes using Oracle from .NET more flexible, faster, and more stable. ODP.NET includes many features not available from other .NET drivers, including Multiple Active Result Sets (MARS), a native XML data type, the ability to bind array parameters, and flexible LOB tuning. ODP.NET is designed for scalable enterprise Windows solutions by providing full support for Unicode and local and distributed transactions. Distributed transactions are supported using the Oracle Services for MTS.
Using C#
using Oracle.DataAccess.Client; ... OracleConnection oOracleConn = new OracleConnection(); oOracleConn.ConnectionString = "Data Source=MyOracleServerName;" + "Integrated Security=SSPI"; oOracleConn.Open();
Using VB.NET
Imports Oracle.DataAccess.Client ... Dim oOracleConn As OracleConnection = New OracleConnection() oOracleConn.ConnectionString = _ "Data Source=MyOracleServerName;" & _ "Integrated Security=SSPI"; oOracleConn.Open(); |
| OraDirect .NET Data Provider - From CoreLab (CoreLab.Oracle) |
OraDirect .NET is a data provider to direct access to Oracle database server for the Microsoft .NET Framework and .NET Compact Framework. It is completely based on ActiveX Data Objects for the .NET Framework (ADO.NET) technology. ADO.NET provides a rich set of components for creating distributed, data-sharing applications. It is an integral part of the .NET Framework, providing access to relational data, XML, and application data.
OraDirect .NET data provider can be used in the same way as the SQL Server .NET or the OLE DB .NET Data Provider. OraDirect .NET can access Oracle server using Oracle Call Interface (OCI) or through TCP/IP directly.
Using C#
using CoreLab.Oracle; ... OracleConnection oOracleConn = new OracleConnection(); oOracleConn.ConnectionString = "User ID=myUsername;" + "Password=myPassword;" + "Host=(local);" + "Pooling=true;" + "Min Pool Size=0;" + "Max Pool Size=100;" + "Connection Lifetime=0"; oOracleConn.Open();
Using VB.NET
Imports CoreLab.Oracle ... Dim oOracleConn As OracleConnection = New OracleConnection() oOracleConn.ConnectionString = "User ID=myUsername;" & _ "Password=myPassword;" & _ "Host=(local);" & _ "Pooling=true;" & _ "Min Pool Size=0;" & _ "Max Pool Size=100;" & _ "Connection Lifetime=0" oOracleConn.Open() |
| PostgreSQLDirect .NET Data Provider - From CoreLab (CoreLab.PostgreSql) |
PostgreSQLDirect .NET is data provider to direct access to PostgreSQL database for the Microsoft .NET Framework and .NET Compact Framework. It completely based on ActiveX Data Objects for the .NET Framework (ADO.NET) technology. ADO.NET provides a rich set of components for creating distributed, data-sharing applications. It is an integral part of the .NET Framework, providing access to relational data, XML, and application data.
PostgreSQLDirect .NET data provider can be used in the same way as the SQL Server .NET or the OLE DB .NET Data Provider.
Using C#
using CoreLab.PostgreSql; ... PgSqlConnection oPgSqlConn = new PgSqlConnection(); oPgSqlConn.ConnectionString = "User ID=myUsername;" + "Password=myPassword;" + "Host=localhost;" + "Port=5432;" + "Database=myDatabaseName;" + "Pooling=true;" + "Min Pool Size=0;" + "Max Pool Size=100;" + "Connection Lifetime=0"; oPgSqlConn.Open();
Using VB.NET
Imports CoreLab.PostgreSql ... Dim oPgSqlConn As PgSqlConnection = New PgSqlConnection() oPgSqlConn.ConnectionString = "User ID=myUsername;" & _ "Password=myPassword;" & _ "Host=localhost;" & _ "Port=5432;" & _ "Database=myDatabaseName;" & _ "Pooling=true;" & _ "Min Pool Size=0;" & _ "Max Pool Size=100;" & _ "Connection Lifetime=0" oPgSqlConn.Open() |
| Sybase Adaptive Server (ASE) Enterprise .NET Data Provider (Sybase.Data.AseClient) |
The ASE Enterprise .NET Data Provider is an add-on component to the .NET Framework that allows you to access a Sybase Adaptive Server Enterprise (ASE) database.
Using C#
using Sybase.Data.AseClient; ... AseConnection oAseConn = new AseConnection(); oAseConn.ConnectionString = "Data Source=(local);" + "Initial Catalog=myDatabaseName;" + "User ID=myUsername;" + "Password=myPassword" oAseConn.Open();
Using VB.NET
Imports System.Data.AseClient ... Dim oAseConn As AseConnection = New AseConnection() oAseConn.ConnectionString = "Data Source=(local);" & _ "Initial Catalog=myDatabaseName;" & _ "User ID=myUsername;" & _ "Password=myPassword" oAseConn.Open() |
| VistaDB (VistaDB.Provider) |
The VistaDB Provider allows you to access a VistaDB database.
Using C#
using VistaDB.Provider; ... public VistaDBConnection OpenConnection() { string connectionString = @"Data Source = C:\VistaDB.vdb3; Open Mode = ExclusiveReadWrite"; VistaDBConnection connection = new VistaDBConnection(connectionString); connection.Open(); return connection; }
Using VB.NET
Imports VistaDB.Provider ... Dim vistaDBConnection As VistaDBConnection = New VistaDBConnection() vistaDBConnection.ConnectionString = @"Data Source = C:\VistaDB.vdb3; Open Mode = ExclusiveReadWrite"; vistaDBConnection.Open() |
| Ref: http://www.carlprothman.net/Default.aspx?tabid=86 |
| Provider |
Description |
| OLE DB Provider for Active Directory Service |
oConn.Open & _ "Provider=ADSDSOObject;" & _ "User Id=myUsername;" & _ "Password=myPassword" |
| OLE DB Provider for Advantage |
oConn.Open & _ "Provider=Advantage OLE DB Provider;" & _ "Data source=c:\myDbfTableDir;" & _ "ServerType=ADS_LOCAL_SERVER;" & _ "TableType=ADS_CDX" |
| OLE DB Provider for AS/400 (from IBM) |
oConn.Open & _ "Provider=IBMDA400;" & _ "Data source=myAS400;" & _ "User Id=myUsername;" & _ "Password=myPassword" |
| OLE DB Provider for AS/400 and VSAM (from Microsoft) |
oConn.Open & _ "Provider=SNAOLEDB;" & _ "Data source=myAS400;" & _ "User Id=myUsername;" & _ "Password=myPassword" |
| OLE DB Provider for Commerce Server |
For Data Warehouse oConn.Open & _ "Provider=Commerce.DSO.1;" & _ "Data Source=mscop://InProcConn/Server=mySrvName:" & _ "Catalog=DWSchema:Database=myDBname:" & _ "User=myUsername:Password=myPassword:" & _ "FastLoad=True" ' Or oConn.Open & _ "URL=mscop://InProcConn/Server=myServerName:" & _ "Database=myDBname:Catalog=DWSchema:" & _ "User=myUsername:Password=myPassword:" & _ "FastLoad=True" For Profiling System oConn.Open & _ "Provider=Commerce.DSO.1;" & _ "Data Source=mscop://InProcConn/Server=mySrvName:" & _ "Catalog=Profile Definitions:Database=myDBname:" & _ "User=myUsername:Password=myPassword" ' Or oConn.Open & _ "URL=mscop://InProcConnect/Server=myServerName:" & _ "Database=myDBname:Catalog=Profile Definitions:" & _ "User=myUsername:Password=myPassword" |
| OLE DB Provider for DB2 (from Microsoft) |
For TCP/IP connections oConn.Open & _ = "Provider=DB2OLEDB;" & _ "Network Transport Library=TCPIP;" & _ "Network Address=xxx.xxx.xxx.xxx;" & _ "Initial Catalog=MyCatalog;" & _ "Package Collection=MyPackageCollection;" & _ "Default Schema=MySchema;" & _ "User ID=MyUsername;" & _ "Password=MyPassword" For APPC connections oConn.Open & _ = "Provider=DB2OLEDB;" & _ "APPC Local LU Alias=MyLocalLUAlias;" & _ "APPC Remote LU Alias=MyRemoteLUAlias;" & _ "Initial Catalog=MyCatalog;" & _ "Package Collection=MyPackageCollection;" & _ "Default Schema=MySchema;" & _ "User ID=MyUsername;" & _ "Password=MyPassword" |
| OLE DB Provider for DTS Packages |
The Microsoft OLE DB Provider for DTS Packages is a read-only provider that exposes Data Transformation Services Package Data Source Objects. oConn.Open & _ = "Provider=DTSPackageDSO;" & _ "Data Source=mydatasource" |
| OLE DB Provider for Exchange |
oConn.Provider = "EXOLEDB.DataSource" oConn.Open & _ = "http://myServerName/myVirtualRootName" |
| OLE DB Provider for Index Server |
oConn.Open & _ "Provider=MSIDXS;" & _ "Data source=MyCatalog" |
| OLE DB Provider for Internet Publishing |
oConn.Open & _ "Provider=MSDAIPP.DSO;" & _ "Data Source=http://mywebsite/myDir;" & _ "User Id=myUsername;" & _ "Password=myPassword" ' Or oConn.Open & _ "URL=http://mywebsite/myDir;" & _ "User Id=myUsername;" & _ "Password=myPassword" |
| OLE DB Provider for Microsoft Jet |
For standard security oConn.Open & _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=c:\somepath\myDb.mdb;" If using a Workgroup (System Database) (Note, remember to convert both the MDB and the MDW to the 4.0 database format when using the 4.0 OLE DB Provider) oConn.Open & _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=c:\somepath\mydb.mdb;" & _ "Jet OLEDB:System Database=MySystem.mdw", _ "myUsername", "myPassword". If MDB has a database password oConn.Open & _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=c:\somepath\mydb.mdb;" & _ "Jet OLEDB:Database Password=MyDbPassword", _ "myUsername", "myPassword" If want to open up the MDB exclusively oConn.Mode = adModeShareExclusive oConn.Open & _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=c:\somepath\myDb.mdb;" If MDB is located on a network share oConn.Open & _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=\\myServer\myShare\myPath\myDb.mdb" If MDB is located on a remote machine - Or use an XML Web Service via SOAP Toolkit or .NET - Or upgrade to SQL Server and use an IP connection string If you don't know the path to the MDB (using ASP) This assumes the MDB is in a sub-directory called "db" directory, which has Read/Write permissions for the Web site identity account (e.g. IUSR_XXXXX). If you don't know the path to the MDB (using VB) oConn.Open & _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & App.Path & "\myDb.mdb;" & _ "User Id=admin;" & _ "Password=" This assumes the MDB is in the same directory where the application is running. You can also open an Excel Spreadsheet using the JET OLE DB Provider oConn.Open & _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=c:\somepath\mySpreadsheet.xls;" & _ "Extended Properties=""Excel 8.0;HDR=Yes""" Where "HDR=Yes" means that there is a header row in the cell range (or named range), so the provider will not include the first row of theselection into the recordset. If "HDR=No", then the provider will include the first row of the cell range (or named ranged) into the recordset. You can also open a Text file using the JET OLE DB Provider oConn.Open & _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=c:\somepath\;" & _ "Extended Properties=""text;HDR=Yes;FMT=Delimited""" 'Then open a recordset based on a select on the actual file oRs.Open "Select * From MyTextFile.txt", oConn, _ adOpenStatic, adLockReadOnly, adCmdText |
| OLE DB Provider for Microsoft Project |
oConn.Open & _ "Provider=Microsoft.Project.OLEDB.9.0;" & _ "Project Name=c:\somepath\myProject.mpp" |
| OLE DB Provider for mySQL |
oConn.Open & _ "Provider=MySQLProv;" & _ "Data Source=mySQLDB;" & _ "User Id=myUsername;" & _ "Password=myPassword" |
OLE DB Provider for ODBC Databases
|
(WARNING: This OLE DB Provider is considered obsolete by Microsoft!)
For Access (Jet) oConn.Open & _ "Provider=MSDASQL;" & _ "Driver={Microsoft Access Driver (*.mdb)};" & _ "Dbq=c:\somepath\mydb.mdb;" & _ "Uid=myUsername;" & _ "Pwd=myPassword" For SQL Server oConn.Open & _ "Provider=MSDASQL;" & _ "Driver={SQL Server};" & _ "Server=myServerName;" & _ "Database=myDatabaseName;" & _ "Uid=myUsername;" & _ "Pwd=myPassword" |
OLE DB Provider for OLAP Services
|
Microsoft OLE DB for Online Analytical Processing (OLAP) is a set of objects and interfaces that extends the ability of OLE DB to provide access to multidimensional data stores. For ADOMD.Catalog oCat.ActiveConnection = _ "Provider=MSOLAP;" & _ "Data Source=myOLAPServerName;" & _ "Initial Catalog=myOLAPDatabaseName" For ADOMD.Catalog (with URL) oCat.ActiveConnection = _ "Provider=MSOLAP;" & _ "Data Source=http://myServerName/;" & _ "Initial Catalog=myOLAPDatabaseName" For Excel PivotTable With ActiveWorkbook.PivotCaches.Add(SourceType:=xlExternal) .Connection = "OLEDB;" & _ "Provider=MSOLAP;" & _ "Location=myServerDataLocation;" & _ "Initial Catalog=myOLAPDatabaseName" .MaintainConnection = True .CreatePivotTable TableDestination:=Range("A1"), _ TableName:= "MyPivotTableName" End With |
| OLE DB Provider for Oracle (from Microsoft) |
oConn.Open & _ "Provider=msdaora;" & _ "Data Source=MyOracleDB;" & _ "User Id=myUsername;" & _ "Password=myPassword" |
| OLE DB Provider for Oracle (from Oracle) |
For Standard Security oConn.Open & _ "Provider=OraOLEDB.Oracle;" & _ "Data Source=MyOracleDB;" & _ "User Id=myUsername;" & _ "Password=myPassword"
For a Trusted Connection oConn.Open & _ "Provider=OraOLEDB.Oracle;" & _ "Data Source=MyOracleDB;" & _ "User Id=/;" & _ "Password=" ' Or oConn.Open & _ "Provider=OraOLEDB.Oracle;" & _ "Data Source=MyOracleDB;" & _ "OSAuthent=1"
Note: "Data Source=" must be set to the appropriate Net8 name which is known to the naming method in use. For example, for Local Naming, it is the alias in the tnsnames.ora file; for Oracle Names, it is the Net8 Service Name. |
| OLE DB Provider for Pervasive |
oConn.Open & _ "Provider=PervasiveOLEDB;" & _ "Data Source=C:\PervasiveEB" |
| OLE DB Provider for Simple Provider |
The Microsoft OLE DB Simple Provider (OSP) allows ADO to access any data for which a provider has been written using the OLE DB Simple Provider Toolkit. Simple providers are intended to access data sources that require only fundamental OLE DB support, such as in-memory arrays or XML documents. OSP in MDAC 2.6 has been enhanced to support opening hierarchical ADO Recordsets over arbitrary XML files. These XML files may contain the ADO XML persistence schema, but it is not required. This has been implemented by connecting the OSP to the MSXML2.DLL, therefore MSXML2.DLL or newer is required.
oConn.Open & _ "Provider=MSDAOSP;" & _ "Data Source=MSXML2.DSOControl.2.6" oRS.Open "http://WebServer/VirtualRoot/MyXMLFile.xml",oConn |
| OLE DB Provider for SQLBase |
oConn.Open & _ "Provider=SQLBaseOLEDB;" & _ "Data source=mySybaseServer;" & _ "Location=mySybaseDB;" & _ "User Id=myUserName;" & _ "Password=myUserPassword" |
| OLE DB Provider for SQL Server |
For Standard Security oConn.Open & _ "Provider=sqloledb;" & _ "Data Source=myServerName;" & _ "Initial Catalog=myDatabaseName;" & _ "User Id=myUsername;" & _ "Password=myPassword" or oConn.Open & _ "Provider=sqloledb;" & _ "Server=myServerName;" & _ "Database=myDatabaseName;" & _ "User Id=myUsername;" & _ "Password=myPassword"
For a Trusted Connection oConn.Open & _ "Provider=sqloledb;" & _ "Data Source=myServerName;" & _ "Initial Catalog=myDatabaseName;" & _ "Integrated Security=SSPI"
To connect to a "Named Instance" oConn.Open & _ "Provider=sqloledb;" & _ "Data Source=myServerName\myInstanceName;" & _ "Initial Catalog=myDatabaseName;" & _ "User Id=myUsername;" & _ "Password=myPassword" Note: In order to connect to a SQL Server 2000 "named instance", you must have MDAC 2.6 (or greater) installed.
To Prompt user for username and password oConn.Provider = "sqloledb" oConn.Properties("Prompt") = adPromptAlways oConn.Open & _ "Data Source=myServerName;" & _ "Initial Catalog=myDatabaseName"
To connect to SQL Server running on the same computer oConn.Open & _ "Provider=sqloledb;" & _ "Data Source=(local);" & _ "Initial Catalog=myDatabaseName;" & _ "User ID=myUsername;" & _ "Password=myPassword"
To connect to SQL Server running on a remote computer (via an IP address) oConn.Open & _ "Provider=sqloledb;" & _ "Network Library=DBMSSOCN;" & _ "Data Source=xxx.xxx.xxx.xxx,1433;" & _ "Initial Catalog=myDatabaseName;" & _ "User ID=myUsername;" & _ "Password=myPassword" Where: - "Network Library=DBMSSOCN" tells OLE DB to use TCP/IP rather than Named Pipes (Q238949) - xxx.xxx.xxx.xxx is an IP address - 1433 is the default port number for SQL Server. Q269882 and Q287932 - You can also add "Encrypt=yes" for encryption |
| OLE DB Provider for SQL Server via SQLXMLOLEDB |
The SQLXMLOLEDB provider is an OLE DB provider that exposes the Microsoft SQLXML functionality through ADO. The SQLXMLOLEDB provider is not a rowset provider; it can only execute commands in the "write to an output stream" mode of ADO. oConn.Open & _ "Provider=SQLXMLOLEDB.3.0;" & _ "Data Provider=SQLOLEDB;" & _ "Data Source=mySqlServerName;" & _ "Initial Catalog=myDatabaseName;" & _ "User Id=myUserName;" & _ "Password=myUserPassword" |
| OLE DB Provider for Sybase Adaptive Server Anywhere (ASA) |
oConn.Open & _ "Provider=ASAProv;" & _ "Data source=myASA" |
| OLE DB Provider for Sybase Adaptive Server Enterprise (ASE) |
oConn.Open & _ "Provider=Sybase ASE OLE DB Provider;" & _ "Data source=myASEServer" ' Or oConn.Open & _ "Provider=Sybase.ASEOLEDBProvider;" & _ "Srvr=myASEServer,5000;" & _ "Catalog=myDBName;" & _ "User Id=myUserName;" & _ "Password=myUserPassword" Where: - The Sybase ASE OLE DB provider from the Sybase 12.5 client CD - 5000 is the port number for Sybase. Note: The Open Client 12 Sybase OLE DB Provider fails to work without creating a Data Source .IDS file using the Sybase Data Administrator. These .IDS files resemble ODBC DSNs. Note: With Open Client 12.5, the server port number feature finally works, allowing fully qualified network connection strings to be used without defining any .IDS Data Source files. |
| OLE DB Provider for Text Files |
Actually there is no OLE DB Provider for Text files. However, you can use the OLE DB Provider for JET to read and write data in Text files. Or you can use the ODBC Driver for Text. |
| OLE DB Provider for UniData and UniVerse |
oConn.Open & _ "Provider=Ardent.UniOLEDB;" & _ "Data source=myServer;" & _ "Location=myDatabase;" & _ "User ID=myUsername;" & _ "Password=myPassword" |
| OLE DB Provider for Visual FoxPro |
oConn.Open & _ "Provider=vfpoledb;" & _ "Data Source=C:\vfp9\Samples\Data\myVFPDB.dbc;" & _ "Mode=ReadWrite|Share Deny None;" & _ "Collating Sequence=MACHINE;" & _ "Password=''"
The Visual FoxPro OLE DB Provider is not installed by MDAC 2.x. You must install Visual FoxPro or download the OLE DB Provider |
| Ref: http://www.carlprothman.net/Default.aspx?tabid=87 | --FIND STATUS SELECT SID, SERIAL#, LOGON_TIME, USERNAME, OSUSER, MACHINE, PROGRAM, STATUS, TYPE, MODULE FROM V$SESSION; --KILL SESSION ALTER SYSTEM KILL SESSION 'SID,SERIAL#' IMMEDIATE;
Private Sub Command1_Click() Dim c As New ADODB.Connection Dim r As New ADODB.Recordset c.Open "driver={microsoft access driver (*.mdb)};dbq=F:\test.mdb;uid=;pwd=mypwd" Set r = c.OpenSchema(adSchemaTables, Array(Empty, Empty, Empty, "Table")) 'ms access Set r = c.OpenSchema(adSchemaTables, Array("Pubs", Empty, Empty, "Table")) 'sql srv While Not r.EOF Debug.Print r!TABLE_NAME r.MoveNext Wend End Sub
»»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com CONVERSION OF DATA TYPES v.toString();v.toString(Number2-16) parseInt(v); parseInt(v,2); parseFloat(v); parseFloat(v,2); NaN(NotANumber);
FUNCTIONS Definition function funName(var1,var2){ Stm1; Stm2; return var1+var2; } Calls v=funName(2,5);
ARRAYS Creating var a = new Array(); var a = new Array(10); var a; a=[20,30,40]; Resizing var a = new Array(5); a[9]=100; Elements size v = arrName.length; Methods v = arrName.join(); // “1,2,3” v = arrName.join(“. ”); // “1. 2. 3” arrName.reverse(); arrName.sort(); arrName.concat([100,101,102]); v = arrName.slice(0,2); //first 3 elements v = arrName.slice(2,-2); //3rd to rest except last 2 v = arrName.toString();
DOCUMENT OBJECT MODEL Methods clear(); open(); close(); write(); writeln(); Properties alinkColor BgColor cookies domain fgColor lastModified linkColor location/URL title vlinkColor activeElement charset defaultCharse
OTHER OBJECTS history history.back();history.go(+/-Number);history.forward(); history.lengh, history.current Math Math.abs(); Math.round(); Math.pow(); Math.max(); Math.sqrt(); Math.min();
FORMS AND EVENT HANDLING onAbort : image onBlur : all onChange : select, text input elements onClick : links and buttons onDblClick : document, links, images, buttons onError : image onFocus : all onKeyDown : document, links, images, text onKeyPress : document, links, images, text onKeyUp : document, links, images, text onLoad : window, image onMouseDown : document, links, images onMouseOut : links, images, layers onMouseOver : links, images, layers onMouseUp : document, links, images onReset : form onResize : window onSubmit : form onUnload : window
COOKIES AND FILE INCLUSIONS Cookies Storing document.cookies = “value;expires=date”; Retriving v = document.cookies <script src=“filename”></script> <script archive=“fn.jar” src=“filename”></script>
TIPS ON JAVASCRIPT Using with Using date var v = new Date(); v.getDate(); v.getMonth(); v.getYear(); v.setDate(); v.setMonth(); v.setYear(); 1st : 1 to 31, 2nd : 0 to 11, 3rd : Year Dialogbox alert(“msgStr”); promt(“msgStr”,“defVal”); confirm(“msgStr”); SlyleSheet <style type=“text/javascript”> tags.H1.fontstyle=“bold”; </style> Methods for input elements blur(); click(); select(); focus(); Event handling <script for=“objname” even=“onClick”> alert(“Hi”); </script> Displaying message status=“type here”; Opening a new window var w = window.open(“about:blank”, “winName”, “setting”, yes); w.methodName();/w.attributeName; if 2nd parameter is blank then new window else same window if 4th parameter is yes then it will replace the history entry 3rd parameter : statusbar=yes, fullscreen=yes, height=600, width=400, left=100, top=200, resizable=yes, scrollbars=yes, toolbar=yes, locationbar=yes Window timer setTimeout(); setInterval(); clearTimeout(); clearInterval(); Version support <script language=“javascript”>var v = 1.0; </script> <script language=“javascript1.1”> v = 1.1; </script> <script language=“javascript1.2”> v = 1.2; </script> document.write(v);</script> Script support <script language=javascript1.1> </script> <noscript> This browser doesn’t support ????? </noscript> Using plugins <embed src=file:///C|/1.wav hidden=true autostart=false> <embed src=file:///C|/2.wav hidden=true autostart=false> document.embeds[Numer].play(); Using applets <applet name=“abc” code=“Abc.class width=400 height=200></applet> document.abc.MethodName(); Printing a document window.print(); »»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com To get the scrollbar on the left side of a control, the 'dir' parameter is to be used for instant, <html dir="rtl"> will put the browser's scrollbar at the left side instead of the default right side <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML dir="rtl"> <HEAD> <TITLE> New Document </TITLE> </HEAD> <BODY> This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. This is a test. </BODY> </HTML> SQL> SELECT * FROM EMP; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- 7369 SMITH CLERK 7902 17-DEC-80 800 20 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 7566 JONES MANAGER 7839 02-APR-81 2975 20 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 7782 CLARK MANAGER 7839 09-JUN-81 2450 10 7788 SCOTT ANALYST 7566 19-APR-87 3000 20 7839 KING PRESIDENT 17-NOV-81 5000 10 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 7876 ADAMS CLERK 7788 23-MAY-87 1100 20 7900 JAMES CLERK 7698 03-DEC-81 950 30 7902 FORD ANALYST 7566 03-DEC-81 3000 20 7934 MILLER CLERK 7782 23-JAN-82 1300 10 14 ROWS SELECTED. SQL> SQL> SELECT * FROM SALGRADE; GRADE LOSAL HISAL ---------- ---------- ---------- 1 700 1200 2 1201 1400 3 1401 2000 4 2001 3000 5 3001 9999 SQL> SQL> SELECT E.*, S.* FROM EMP E, SALGRADE S WHERE E.SAL BETWEEN S.LOSAL AND S.HISAL; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO GRADE LOSAL HISAL ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- ---------- ---------- ---------- 7369 SMITH CLERK 7902 17-DEC-80 800 20 1 700 1200 7876 ADAMS CLERK 7788 23-MAY-87 1100 20 1 700 1200 7900 JAMES CLERK 7698 03-DEC-81 950 30 1 700 1200 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 2 1201 1400 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 2 1201 1400 7934 MILLER CLERK 7782 23-JAN-82 1300 10 2 1201 1400 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 3 1401 2000 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 3 1401 2000 7566 JONES MANAGER 7839 02-APR-81 2975 20 4 2001 3000 7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 4 2001 3000 7782 CLARK MANAGER 7839 09-JUN-81 2450 10 4 2001 3000 7788 SCOTT ANALYST 7566 19-APR-87 3000 20 4 2001 3000 7902 FORD ANALYST 7566 03-DEC-81 3000 20 4 2001 3000 7839 KING PRESIDENT 17-NOV-81 5000 10 5 3001 9999 14 ROWS SELECTED. SQL> SQL> SELECT 2 ENAME, 3 JOB, 4 SAL, 5 CASE 6 WHEN GRADE=1 THEN SAL*0.45 7 WHEN GRADE=2 THEN SAL*0.35 8 WHEN GRADE=3 THEN SAL*0.25 9 ELSE SAL*0.15 END 10 DA, 11 CASE 12 WHEN GRADE=1 THEN SAL*0.20 13 WHEN GRADE=2 THEN SAL*0.16 14 WHEN GRADE=3 THEN SAL*0.12 15 ELSE SAL*0.08 END 16 HRA, 17 CASE 18 WHEN GRADE=1 THEN SAL*0.12 19 WHEN GRADE=2 THEN SAL*0.10 20 WHEN GRADE=3 THEN SAL*0.08 21 ELSE SAL*0.06 END 22 OTHER 23 FROM ( 24 SELECT ENAME, JOB, SAL, GRADE FROM EMP E, SALGRADE S 25 WHERE E.SAL BETWEEN S.LOSAL AND S.HISAL 26 ); ENAME JOB SAL DA HRA OTHER ---------- --------- ---------- ---------- ---------- ---------- SMITH CLERK 800 360 160 96 ADAMS CLERK 1100 495 220 132 JAMES CLERK 950 427.5 190 114 WARD SALESMAN 1250 437.5 200 125 MARTIN SALESMAN 1250 437.5 200 125 MILLER CLERK 1300 455 208 130 ALLEN SALESMAN 1600 400 192 128 TURNER SALESMAN 1500 375 180 120 JONES MANAGER 2975 446.25 238 178.5 BLAKE MANAGER 2850 427.5 228 171 CLARK MANAGER 2450 367.5 196 147 SCOTT ANALYST 3000 450 240 180 FORD ANALYST 3000 450 240 180 KING PRESIDENT 5000 750 400 300 14 ROWS SELECTED. SQL> »»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com Pal do pal ka saath hamara, Pal do pal ke yarane hain Is manzil par milne wale, Us manzil par kho jaane hain Nazron ke shokh nazrane, Hoton ke garm paimaane Hai aaj apni mehfil mein, Kal kya ho koi kya jaane Ye pal khushi ki zannat hai, Is pal ko jile deewane Aaj ki khushiyan ek haqeekat, Kal ki khishiyan afsane Pal do pal ka saath hamara, Pal do pal ke yarane hain Har khushi kuchchh der ki mehmaan hai, Pura karle dil me jo armaan hai Zindagi ek tejraun toofan hai, Iska jo pichha kare nadan Gumsuda khushiyon pe kyon hairan hai, Waqt laute iska kab im-aam hai Jhoom jab tak dhadkano me jaan hai, Jhoomna hi zindagi ki saan hai Avval aakhir har koi anjaan hai, Zindagi bas raah ki pahchan hai Doston apna to ye imaan hai, Jo bhi jitna saath de ehssan hai Umra ka rista jodne wale, Apni nazar me deewane hai By Sahir Ludhyanvi
Q. Who is the GM of Hewlett Packard (hp) ?
A. Rajiv Gupta
Q. Who is the creator of Pentium chip (needs no introduction as 90% of the today's computers run on it)?
A. Vinod Dahm
Q. Who is the third richest man on the world?
A. According to the latest report on Fortune Magazine, it is Azim Premji, who is the CEO of Wipro Industries. The Sultan of Brunei is at 6 th position now.
Q. Who is the founder and creator of Hotmail (Hotmail is world's No.1 web based email program)?
A. Sabeer Bhatia
Q. Who is the president of AT & T-Bell Labs (AT & T-Bell Labs is the creator of program languages such as C, C++, Unix to name a few)?
A. Arun Netravalli
Q. Who is the new MTD (Microsoft Testing Director) of Windows 2000, responsible to iron out all initial problems?
A. Sanjay Tejwrika
Q. Who are the Chief Executives of CitiBank, Mckensey & Stanchart?
A. Victor Menezes, Rajat Gupta, and Rana Talwar.
Q. We Indians are the wealthiest among all ethnic groups in America, even faring better than the whites and the natives.
A. There are
3.22 millions of Indians in USA (1.5% of population).
38% of doctors in USA are Indians.
12% scientists in USA are Indians.
36% of NASA scientists are Indians.
34% of Microsoft employees are Indians.
28% of IBM employees are Indians.
17% of INTEL scientists are Indians.
13% of XEROX employees are! Indians.
Some of the following facts may be known to you. These facts were recently published in a German magazine, which deals with WORLD HISTORY FACTS ABOUT INDIA.
1. India never invaded any country in her last 1000 years of history.
2. India invented the Number system. Zero was invented by Aryabhatta.
3. The world's first University was established in Takshila in 700BC. More than 10,500 students from all over the world studied more than 60 subjects. The University of Nalanda built in the 4 th century BC was one of the greatest achievements of ancient India in the field of education.
4. According to the Forbes magazine, Sanskrit is the most suitable language for computer software.
5. Ayurveda is the earliest school of medicine known to humans.
6. Although western media portray modern images of India as poverty striken and underdeveloped through political corruption, India was once the richest empire on earth.
7. The art of navigation was born in the river Sindh 5000 years ago. The very word "Navigation" is derived from the Sanskrit word NAVGATIH.
8. The value of pi was first calculated by Budhayana, and he explained the concept of what is now k! nown as the Pythagorean Theorem. British scholars have last year (1999) officially published that Budhayan's works dates to the 6 th Century which is long before the European mathematicians.
9. Algebra, trigonometry and calculus came from India . Quadratic equations were by Sridharacharya in the 11 th Century; the largest numbers the Greeks and the Romans used were 106 whereas Indians used numbers as big as 10 53.
10. According to the Gemmological Institute of America, up until 1896, India was the only source of diamonds to the world.
11. USA based IEEE has proved what has been a century-old suspicion amongst academics that the pioneer of wireless communication was Professor Jagdeesh Bose and not Marconi.
12. The earliest reservoir and dam for irrigation was built in Saurashtra.
13. Chess was invented in India ..
14. Sushruta is the father of surgery. 2600 years ago he and health scientists of his time conducted surgeries like cesareans, cataract, fractures and urinary stones. Usage of anaesthesia was well known in ancient India ..
15. When many cultures in the world were only nomadic forest dwellers over 5000 years ago, Indians established Harappan culture in Sindhu Valley ( Indus Valley Civilisation).
16. The place value system, the decimal system was developed in India in 100 BC.
Quotes about India ..
We owe a lot to the Indians, who taught us how to count, without which no worthwhile scientific discovery could have been made.
-Albert Einstein.
India is the cradle of the human race, the birthplace of human speech, the mother of history, the grandmother of legend and the great grand mother of tradition.
-Mark Twain.
If there is one place on the face of earth where all dreams of living men have found a home from the very earliest days when man began the dream of existence, it is India .
-French scholar Romain Rolland.
India conquered and dominated China culturally for 20 centuries without ever having to send a single soldier across her border.
-Hu Shih(former Chinese ambassador to USA )
ALL OF THE ABOVE IS JUST THE TIP OF THE ICEBERG, THE LIST COULD BE ENDLESS.
BUT, if we don't see even a glimpse of that great India in the India that we see today, it clearly means that we are not working up to our potential; and that if we do, we could once again be an evershining and inspiring country setting a bright path for rest of the world to follow.
SQL> SELECT * FROM EMPDET; EID NAME DESI D_DT H_DT ADDRESS ---- ------------------------- ------------------------- --------- --------- -------------------------------------------------------- 1. MS. NANCY DAVOLIO SALES REPRESENTATIVE 08-DEC-48 01-MAY-92 507 - 20TH AVE. E. APT. 2A, SEATTLE, WA, 98122, USA 2. DR. ANDREW FULLER VICE PRESIDENT, SALES 19-FEB-52 14-AUG-92 908 W. CAPITAL WAY, TACOMA, WA, 98401, USA 3. MS. JANET LEVERLING SALES REPRESENTATIVE 30-AUG-63 01-APR-92 722 MOSS BAY BLVD., KIRKLAND, WA, 98033, USA 4. MRS. MARGARET PEACOCK SALES REPRESENTATIVE 19-SEP-37 03-MAY-93 4110 OLD REDMOND RD., REDMOND, WA, 98052, USA 5. MR. STEVEN BUCHANAN SALES MANAGER 04-MAR-55 17-OCT-93 14 GARRETT HILL, LONDON, SK, SW1 8JR, UK 6. MR. MICHAEL SUYAMA SALES REPRESENTATIVE 02-JUL-63 17-OCT-93 COVENTRY HOUSE MINER RD., LONDON, SK, EC2 7JR, UK 7. MR. ROBERT KING SALES REPRESENTATIVE 29-MAY-60 02-JAN-94 EDGEHAM HOLLOW WINCHESTER WAY, LONDON, SK, RG1 9SP, UK 8. MS. LAURA CALLAHAN INSIDE SALES COORDINATOR 09-JAN-58 05-MAR-94 4726 - 11TH AVE. N.E., SEATTLE, WA, 98105, USA 9. MS. ANNE DODSWORTH SALES REPRESENTATIVE 27-JAN-66 15-NOV-94 7 HOUNDSTOOTH RD., LONDON, SK, WG2 7LT, UK 9 ROWS SELECTED. SQL> SELECT SNO, NAME "NAME AND DESIGN", DT||' ' "BIRTH/HIRE DATE", ADDRESS FROM 2 ( 3 SELECT EID, EID SNO, NAME, D_DT DT, SUBSTR(ADDRESS, 1,30) ADDRESS, 1 POS FROM EMPDET 4 UNION ALL 5 SELECT EID, ' ' SNO, DESI, H_DT DT, TRIM(SUBSTR(ADDRESS,31,30)) ADDRESS, 2 POS FROM EMPDET 6 UNION ALL 7 SELECT EID, NULL, NULL, NULL, NULL, 3 POS FROM EMPDET 8 ) SKTAB 9 ORDER BY 10 EID, POS 11 / SNO NAME AND DESIGN BIRTH/HIRE DATE ADDRESS ---- ------------------------- --------------- ------------------------------ 1. MS. NANCY DAVOLIO 08-DEC-48 507 - 20TH AVE. E. APT. 2A, SE SALES REPRESENTATIVE 01-MAY-92 ATTLE, WA, 98122, USA 2. DR. ANDREW FULLER 19-FEB-52 908 W. CAPITAL WAY, TACOMA, WA VICE PRESIDENT, SALES 14-AUG-92 , 98401, USA 3. MS. JANET LEVERLING 30-AUG-63 722 MOSS BAY BLVD., KIRKLAND, SALES REPRESENTATIVE 01-APR-92 WA, 98033, USA 4. MRS. MARGARET PEACOCK 19-SEP-37 4110 OLD REDMOND RD., REDMOND, SALES REPRESENTATIVE 03-MAY-93 WA, 98052, USA 5. MR. STEVEN BUCHANAN 04-MAR-55 14 GARRETT HILL, LONDON, SK, S SALES MANAGER 17-OCT-93 W1 8JR, UK 6. MR. MICHAEL SUYAMA 02-JUL-63 COVENTRY HOUSE MINER RD., LOND SALES REPRESENTATIVE 17-OCT-93 ON, SK, EC2 7JR, UK 7. MR. ROBERT KING 29-MAY-60 EDGEHAM HOLLOW WINCHESTER WAY, SALES REPRESENTATIVE 02-JAN-94 LONDON, SK, RG1 9SP, UK 8. MS. LAURA CALLAHAN 09-JAN-58 4726 - 11TH AVE. N.E., SEATTLE INSIDE SALES COORDINATOR 05-MAR-94 , WA, 98105, USA 9. MS. ANNE DODSWORTH 27-JAN-66 7 HOUNDSTOOTH RD., LONDON, SK, SALES REPRESENTATIVE 15-NOV-94 WG2 7LT, UK 27 ROWS SELECTED. »»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com
<html> <head> <script type="text/javascript" language="javascript">
function ExecThisCommand(sCmd) { var sObj = new ActiveXObject("Shell.Application"); var sPrMeter = ""; sObj.ShellExecute(sCmd,sPrMeter, "", "open", "1"); }
</script>
</head>
<body onload="ExecThisCommand('notepad')">
The following code will be applied only while printing. It will have no impact while using the class for displaying content on the browser.
@media Print { .PrintYa{ display: block; } .PrintNo{ display: block !important; } } »»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com
//Description - Calling Function function PopUpWin(url){ window.open(url,'','menubar=1,toolbar=0,location=0,scrollbars=1,' + SetCenter(620,485) + ',status=0'); return false; } //Description - Called Function function SetCenter(Wd, Ht){ var Lf, Tp; Lf=(screen.availWidth-Wd)/2; Tp=(screen.availHeight-Ht)/2; return ' left=' + Lf + ',top=' + Tp + ',width=' + Wd + ', height=' + Ht + ' '; } »»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com
|