Tài liệu Restore a SQL Server Database doc

Tài liệu Restore a SQL Server Database doc

Tài liệu Restore a SQL Server Database doc

... you want to take place. The choices are found in the SQLDMO.SQLDMO _RESTORE_ TYPE namespace and are SQLDMORestore _Database, SQLDMORestore_Files, SQLDMORestore_Log. Database This property allows ... Label Name Label1 Text SQL Servers ListBox Name lstSQLServers Label Name Label2 Text Databases ListBox Name lstDatabases Label Name Label3 Text Backup Devices ListBox Name lstB...

Ngày tải lên: 26/01/2014, 11:20

5 328 0
Tài liệu Specifying Locking Hints in a SQL Server Database doc

Tài liệu Specifying Locking Hints in a SQL Server Database doc

... command. SqlCommand cmd = new SqlCommand(sqlText, conn, tran); // Create the DataAdapter and CommandBuilder. SqlDataAdapter da = new SqlDataAdapter(cmd); SqlCommandBuilder cb = new SqlCommandBuilder(da); ... preventing users from reading data being changed by a user. Locks are acquired and released by user actions; they are managed internally by database software. A locking hin...

Ngày tải lên: 14/12/2013, 18:16

5 541 0
Tài liệu Back Up and Verify a SQL Server Database doc

Tài liệu Back Up and Verify a SQL Server Database doc

... doesn't shoot himself in the foot. 7.2 Back Up and Verify a SQL Server Database Backing up a database is probably one of the most important features to incorporate into your application. ... Backup Action This property allows you to specify what type of backup that you want to take place. The choices are SQLDMOBackup _Database, SQLDMOBackup_Differential, SQLDMOBac...

Ngày tải lên: 21/01/2014, 12:20

11 422 0
Tài liệu Retrieving Constraints from a SQL Server Database docx

Tài liệu Retrieving Constraints from a SQL Server Database docx

... System.EventArgs e) { // Create the DataAdapter to retrieve schema information. SqlDataAdapter da = null; if (primaryKeyRadioButton.Checked) da = new SqlDataAdapter(GETPRIMARYKEYCONSTRAINTS, ... constraint in the current database. Table 6-10. REFERENTIAL_CONSTRAINTS information schema view Column name Data type Description CONSTRAINT_CATALOG nvarchar(128) Database name CONSTRA...

Ngày tải lên: 26/01/2014, 10:20

7 393 0
Tài liệu Executing a SQL Server Stored Procedure By Using ActiveX Data Objects doc

Tài liệu Executing a SQL Server Stored Procedure By Using ActiveX Data Objects doc

... use the ADO Command object, as well as the Parameter object if you are passing parameters. You will create a Command object and supply the command text, which in this case will be the name of ... Listing A. 7 Northwind SQL Server Database: T -SQL for the Stored Procedure Called CustOrdersHist ALTER PROCEDURE CustOrderHist @CustomerID nchar(5) AS SELECT ProductName, Total=SUM(...

Ngày tải lên: 14/12/2013, 20:16

2 450 0
Tài liệu Getting a SQL Server Query Plan pdf

Tài liệu Getting a SQL Server Query Plan pdf

... the plan for. cmd.CommandText = "SELECT * FROM Customers WHERE Country='USA' " + "ORDER BY CompanyName"; // Retrieve the plan into DataReader. SqlDataReader ... Description Date and Time Alters current session settings for handling of date and time data Locking Alters current session settings for handling SQL Server locking Miscellaneous Alters cur...

Ngày tải lên: 26/01/2014, 10:20

3 367 0
Tài liệu Using a SqlConnection Object to Connect to a SQL Server Database phần 2 doc

Tài liệu Using a SqlConnection Object to Connect to a SQL Server Database phần 2 doc

... SqlConnection(" ;server= localhost ;database= Northwind;uid=sa;pwd=sa"); // monitor the StateChange event using the StateChangeHandler() method mySqlConnection.StateChange += new StateChangeEventHandler(StateChangeHandler); ... PRINT and RAISERROR statements to the database for execution. You'll learn the details of the SqlCommand object and the ExecuteNonQuery() met...

Ngày tải lên: 14/12/2013, 13:15

7 593 0
Tài liệu Creating a New SQL Server Database doc

Tài liệu Creating a New SQL Server Database doc

... // SQL DDL command text to create database. String sqlText = "CREATE DATABASE MyDatabase ON PRIMARY " + "(NAME = MyDatabase_Data, " + "FILENAME = '" + DATAFILENAME ... [ Team LiB ] Recipe 10.7 Creating a New SQL Server Database Problem You need to create a new database in your SQL Server. Solution Use the CREATE DATABASE...

Ngày tải lên: 21/01/2014, 11:20

3 410 1
Tài liệu Determining the Length of Columns in a SQL Server Table doc

Tài liệu Determining the Length of Columns in a SQL Server Table doc

... connection. SqlConnection conn = new SqlConnection( ConfigurationSettings.AppSettings[" ;Sql_ ConnectString"]); // Create DataAdapter. SqlDataAdapter da = new SqlDataAdapter(sqlText, ... = new DataSet( ); // Fill the schema and data. da.FillSchema(ds, SchemaType.Mapped); da.Fill(ds); // Iterate over the table collection in the DataSet. foreach(DataTable dt in ds.Tables)...

Ngày tải lên: 24/12/2013, 05:15

4 458 0
Tài liệu Using a Single Stored Procedure to Update Multiple Changes to a SQL Server Database pdf

Tài liệu Using a Single Stored Procedure to Update Multiple Changes to a SQL Server Database pdf

... SP0811_Update Used to update the table TBL0811 with the changes made to the DataSet passed in as an NText input parameter @data. The parameters @data and @datadeleted contain an XML representation ... . private void StoredProcedureMultipleRowsForm_Load(object sender, System.EventArgs e) { ds = new DataSet( ); // Create the DataAdapter. SqlDataAdapter da = new SqlDataAdapter(...

Ngày tải lên: 21/01/2014, 11:20

7 442 0
w