|
|
select * from dba_col_comments where 1=1 and owner='anyxxxxxx' and comments is NULL and able_name not like 'BIN$%' order by table_name |
|
select * from dba_tab_comments where 1=1 and owner='anyxxxxxx' and comments is NULL and table_name not like 'BIN$%' order by table_name |
|
"C:\Program Files\Microsoft SQL Server90\Tools\Binn\sqlcmd" -S localhost -i e:\Backupbackup.sql |
풀백업
|
declare @runtime nvarchar(10) declare @backupdevice nvarchar(100) declare @backupname nvarchar(100) set @runtime = substring(convert(nvarchar(20), getdate(), 8) ,1,2) set @backupdevice = N'e:\Backupbackup_' + @runtime + N'.bak' set @backupname = N'backup_' + @runtime BACKUP DATABASE [TU] TO DISK = @backupdevice WITH NOFORMAT, INIT, NAME = @backupname, SKIP, NOREWIND, NOUNLOAD, STATS = 10 |
증분 백업
|
declare @runtime nvarchar(10) declare @backupdevice nvarchar(100) declare @backupname nvarchar(100) set @runtime = substring(convert(nvarchar(20), getdate(), 8) ,1,2) set @backupdevice = N'e:\Backupbackup_' + @runtime + N'.bak' set @backupname = N'backup_' + @runtime BACKUP DATABASE [TU] TO DISK = @backupdevice WITH DIFFERENTIAL, NOFORMAT, INIT, NAME = @backupname, SKIP, NOREWIND, NOUNLOAD, STATS = 10 |
|
set yyyy=%date:~0,4% set mm=%date:~5,2% set dd=%date:~8,2% echo group%yyyy%%mm%%dd%.log >> file.txt |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
private OleDbDataReader rd; private OleDbConnection Conn; private string strRet; private OleDbCommand cmd; private StringBuilder sbSQL; private OleDbParameter paramnSeq; try { // SQLOLEDB MSDAORA Conn = new OleDbConnection("Provider=MSDAORA;Data Source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.xxx )(PORT = 1521)))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = GROUP))); User Id =; Password =;"); Conn.Open(); try { sbSQL = new StringBuilder(); sbSQL.Append(" SELECT * "); sbSQL.Append(" FROM HEIS_CUSTOMER "); sbSQL.Append(" WHERE 1=1 "); sbSQL.Append(" AND CUSTOMER_CODE = ? "); paramnSeq = new OleDbParameter("CUSTOMER_CODE", OleDbType.Char, 4); paramnSeq.Value = "0003"; cmd = new OleDbCommand(sbSQL.ToString(), Conn); cmd.Parameters.Add(paramnSeq); rd = cmd.ExecuteReader(); if (rd.Read()) { strRet = rd["CUSTOMER_CODE"].ToString(); } else { strRet = ""; } } catch (System.Exception e1) { throw e1; } finally { rd.Close(); } } catch (System.Exception e2) { throw e2; } finally { Conn.Close(); } |
|
<script language="javascript"> function totopbottom() { // if (document.body.scrollTop == 0) { 오유에는 이렇게 되어 있지만... if (document.documentElement.scrollTop == 0) { window.scrollTo(0,document.body.scrollHeight); } else { window.scrollTo(0,0); } } function topbottom() { document.body.ondblclick = totopbottom; } </script> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#region Using directives using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing; using System.Windows.Forms; #endregion namespace UsingADOManagedProvider { partial class ADONetForm1 : Form { public ADONetForm1( ) { InitializeComponent( ); // connect to Northwind Access database string connectionString = "Data Source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.XXX )(PORT = 1521)))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = GROUP))); User Id =; Password ="; // get records from the customers table string commandString = "Select CompanyName, ContactName from Customers"; // create the data set command object // and the DataSet OleDbDataAdapter DataAdapter = new OleDbDataAdapter( commandString, connectionString ); DataSet DataSet = new DataSet( ); // fill the data set object DataAdapter.Fill( DataSet, "Customers" ); // Get the one table from the DataSet DataTable dataTable = DataSet.Tables[0]; // for each row in the table, display the info foreach ( DataRow dataRow in dataTable.Rows ) { lbCustomers.Items.Add( dataRow["CompanyName"] + " (" + dataRow["ContactName"] + ")" ); } } } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#region Using directives using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing; using System.Windows.Forms; #endregion namespace UsingADOManagedProvider { partial class ADONetForm1 : Form { public ADONetForm1( ) { InitializeComponent( ); // connect to Northwind Access database string connectionString = "provider=Microsoft.JET.OLEDB.4.0; " + "data source = c:\nwind.mdb"; // get records from the customers table string commandString = "Select CompanyName, ContactName from Customers"; // create the data set command object // and the DataSet OleDbDataAdapter DataAdapter = new OleDbDataAdapter( commandString, connectionString ); DataSet DataSet = new DataSet( ); // fill the data set object DataAdapter.Fill( DataSet, "Customers" ); // Get the one table from the DataSet DataTable dataTable = DataSet.Tables[0]; // for each row in the table, display the info foreach ( DataRow dataRow in dataTable.Rows ) { lbCustomers.Items.Add( dataRow["CompanyName"] + " (" + dataRow ["ContactName"] + ")" ); } } } } |
|
|