... conn.BeginTransaction( ); // Create command in the transaction with parameters SqlCommand cmd = new SqlCommand("InsertCategories_Transacted", conn, tran); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@CategoryID", ... Fill the table String sqlText = "SELECT CategoryID, CategoryName, Description " + "FROM Categories"; da = new SqlDataAdapter(sqlText, ConfigurationSettings.AppSettings[ "Sql_ ConnectString"]); ... { // Create the connection SqlConnection conn = new SqlConnection( ConfigurationSettings.AppSettings[ "Sql_ ConnectString"]); // Create the transaction conn.Open( ); SqlTransaction tran = conn.BeginTransaction(...
Ngày tải lên: 21/01/2014, 11:20
... cmd.CommandText = strSQL cmd.CommandType = ADODB.CommandTypeEnum.adCmdText ' Execute the command cmd.Execute() ' Reopen the Orders table and redisplay the ShippedDate Field rstNew.Open(strDispSQL, ... table and display the ShippedDate as they were rstOld.Open(strDispSQL, cnn) txtResults.Text = "Old Values: " & vbCrLf & vbCrLf & rstOld.GetString ' Set up the Command object to use the SQL string ... can also use the Insert and Delete statements to perform other bulk operations with the Command object One of the last tasks that is useful to perform using ADO with SQL Server is to create objects...
Ngày tải lên: 21/01/2014, 12:20
.NET Enterprise Design with Visual Basic .NET and SQL Server 2000 docx
Ngày tải lên: 22/03/2014, 14:20
Tài liệu Create a Point-and-Click SQL Server Query Tool for Users Using a Windows Form doc
... a new OleDbCommand called ocmdTables and assign the built-in SQL Server stored procedure called sp_Tables After establishing the CommandType as being CommandType.StoredProcedure and then opening ... Next ' Take the string created and add it to the table ' name for a SQL String ' if columns are chosen If Len(strTemp) = Then Me.txtSQLString.Text = "" Else Me.txtSQLString.Text = "Select " & strTemp ... connection and specify the stored procedure to use Dim ocmdTables As New OleDb.OleDbCommand("sp_Tables", mcnn) Dim odrTables As OleDb.OleDbDataReader Try ' Specify the type of command being performed...
Ngày tải lên: 26/01/2014, 11:20
Upgrading IBM Systems Director Server on Windows and migrating to a Microsoft SQL Server or Microsoft SQL Server Express database Version 6 Release 3 pptx
... Microsoft SQL Server Express Tips for user authorities and passwords for Microsoft SQL Server and Microsoft SQL Server Express Estimating free storage space required for the Microsoft SQL Server and ... and passwords for Microsoft SQL Server and Microsoft SQL Server Express Use these tips and techniques to configure, manage, and troubleshoot user authorities and passwords for Microsoft SQL Server ... command smsave command smrestore command Database configuration attributes for Microsoft SQL Server and Microsoft SQL Server Express Database configuration attributes for Microsoft SQL Server and...
Ngày tải lên: 31/03/2014, 16:20
Time-Domain Analysis and z Transform
... , the value of the sample in x(n) is x(3), and the values present in v1 (n), v2 (n) and v3 (n) are x(2), x(1), and x(0), respectively A good understanding of the operation of the discrete-time ... − k) and x(k) and we multiply the samples of h(n − k) and x(k) at each value of k and add the products For our example, we show the summation of the product when n = −2 in Figure 2.4d, and show ... 9, and n < −2, the sequences h(n − k) and x(k) not have overlapping samples, and therefore y(n) = for n > and n < −2 Example 2.2 As another example, let us assume that the input sequence x(n) and...
Ngày tải lên: 29/09/2013, 21:20
Apress - Pro SQL Server 2008 Analytics_ Delivering Sales and Marketing Dashboards (2009)01
... table and change the DomainName for AntonK to your own DomainName For example, if your domain is Adventureworks and your domain name is jsmith, you will input Adventureworks\JSmith for the DomainName ... 5:01 PM Pro SQL Server 2008 Analytics Delivering Sales and Marketing Dashboards ■■■ Brian Paulen and Jeff Finken Paulen_19286 FRONT.fm Page ii Friday, May 1, 2009 5:01 PM Pro SQL Server 2008 ... and any open opportunities Selected parameter values will determine the data displayed SQL Server Business Intelligence Development Studio (BIDS) ships with SQL Server 2008 When you install SQL...
Ngày tải lên: 25/10/2013, 08:15
Apress - Pro SQL Server 2008 Analytics_ Delivering Sales and Marketing Dashboards (2009)02
... tables and graphs achieve my goals? • Can I develop and understand my KPIs using SQL Server Reporting Services (SSRS)? • How should the reports and dashboards I develop be made available to users? ... cubes and SQL Server data Access is most frequently accomplished through pivot tables SQL Server Reporting Services (SSRS) Reports are developed via the Microsoft BI Studio (Visual Studio) using SQL ... Studio (Visual Studio) using SQL and Multidimensional Expressions (MDX) SSRS provides built-in access to OLAP cubes and authoring for SQL Server data sets SQL Server Analysis Services (SSAS) Cubes...
Ngày tải lên: 25/10/2013, 08:15
Understanding SQL Server Locks
... System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior run, SqlCommand cmdHandler, SqlDataReader dataStream) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() ... SqlTransaction t1Trans; public static SqlTransaction t2Trans; // declare two SqlCommand objects public static SqlCommand t1Command; public static SqlCommand t2Command; public static void UpdateCustomerT1() ... serConnection.BeginTransaction(IsolationLevel.Serializable); // create a SqlCommand and set its Transaction property // to serializableTrans SqlCommand serializableCommand = serConnection.CreateCommand(); serializableCommand.Transaction = serializableTrans;...
Ngày tải lên: 28/10/2013, 16:15
Create and Call SQL Server 2000 User-Defined
... UDF string Dim strSQL As String strSQL = "CREATE FUNCTION udf_ShowProdAndCat ( @UnitPriceParm money)" strSQL &= "RETURNS @ProdAndCatTab TABLE" & vbCrLf strSQL &= "(" & vbCrLf strSQL &= " ProductID ... vbCrLf strSQL &= " ProductName nvarchar(80)," & vbCrLf strSQL &= " CategoryName nvarchar(80)," & vbCrLf strSQL &= " UnitPrice int" & vbCrLf strSQL &= ")" & vbCrLf strSQL &= "AS" & vbCrLf strSQL &= ... will have INSERT @ProdAndCatTab and RETURN statements in there to create the Table return value The rest of the code is much the same as other TSQL statements Calling SQL Server 2000 UDFs You...
Ngày tải lên: 28/10/2013, 19:15
Apress - Pro SQL Server 2008 Relational Database Design and Implementation (2008)01
... Page i Pro SQL Server 2008 Relational Database Design and Implementation Louis Davidson With Kevin Kline, Scott Klein, and Kurt Windisch 8662FM.qxp 7/28/08 6:19 PM Page ii Pro SQL Server 2008 ... Row-Level Security with Views 422 Obfuscating Data 426 Monitoring and Auditing 429 Server and ... Syntax 506 Compiled SQL Server Code 514 SQL Server Concurrency Controls ...
Ngày tải lên: 29/10/2013, 15:15