... multiple administrators want to connect. If two administrators are connected yet not usingthe session, the third administrator cannot connect. Customizing a Network UsingtheRegistry It's ... risks. To modifythe default settings for Remote Desktop, proceed as follows: 1. Open the Control Panel, start Administrative Tools, then select the Terminal Services Configuration option. The ... specific computers. To block connections to that port on sensitive systems, use IPSec. To change the port used by Remote Desktop, do the following: 1. Open theregistry and locate the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp...
... Note You'll find the AddProduct4.sql file in the ch 11 directory. The UpdateProduct() Procedure UpdateProduct() updates a row in the Products table. Listing 11 .5 shows the UpdateProduct.sql ... PushChangesUsingProcedures.cs in the ch 11 directory that illustrates the use of the methods shown in this section. The listing for this program is omitted from this book for brevity. Creating the Stored ... out how to run this scriptto create the procedure in the database. Listing 11 .4: ADDPRODUCT4.SQL /* AddProduct4.sql creates a procedure that adds a row tothe Products table using values...
... setting, type the new port number after the IP address of the computer to which you want to connect. If the new port is 8098, and the IP address of the server is 19 2 .16 8 .1. 8, the new IP address ... REG_DWORD data type) to1. Disabling Persistent Network Connections To disable the option for restoring persistent network connections, start theregistry editor, open the HKEY_USERS\.DEFAULT\Software\Microsoft\WindowsNT\CurrentVersion\Network\Persistent ... feature, click the Advanced button on the General tab of the Internet Protocol (TCP/IP) Properties window. The Advanced TCP/IP Settings window will open. Go tothe DNS tab and clear the Register...
... called to push the new row tothe database. The AddProduct4() stored procedure is run to add the new row tothe Products table, and the RowState of myNewDataRow changes to Unchanged. Modifying ... run to add the new row tothe Products table. The database then generates a new ProductID for the row, which is then returned by the AddProduct4() stored procedure. You can then read the new ... 4, the DeleteProduct() stored procedure is run behind the scenes to perform the delete. Note You'll find a complete program named PushChangesUsingProcedures.cs in the ch 11 directory...
... 6 .17 shows the completed form up and running. Notice that the top part of the form shows the details for the row from the Customers table where the CustomerID is ALFKI; the bottom part of the ... contains a column named CustomerID that is a foreign key to the CustomerID column of the Customers table (CustomerID is the primary key for the Customers table). The use of the foreign key defines ... displays the rows from the Orders table for that customer. When you move tothe next row in the Customers table, the rows from the Orders table for that customer are automatically displayed in the...
... passing the connection string tothe constructor SqlConnection mySqlConnection = Using a SqlConnection Object to Connect to a SQL Server Database You create a SqlConnection object usingthe SqlConnection() ... close the database connection usingthe Close() method // of the SqlConnection object new SqlConnection(connectionString); // open the database connection usingthe // Open() method of the ... to be used again. If you then supply the same details in the connection string (same database, username, password, and so on), then the connection from the pool is retrieved and returned to...
... variables of the appropriate type are created in this while loop, each of which is used to store the result from the Get* method. For example, the productID variable is used to store the ProductID ... unitPrice = 19 unitsInStock = 17 discontinued = False productID = 3 productName = Aniseed Syrup unitPrice = 10 unitsInStock = 13 discontinued = False productID = 4 productName = Chef Anton's ... unitsInStock = 53 discontinued = False productID = 5 productName = Chef Anton's Gumbo Mix unitPrice = 21. 35 unitsInStock = 0 discontinued = True Using the GetSql* Methods to Read...
... work anymore; the only way to hide the Sidebar is to use the Old Finder Mode button. • Hide the Sidebar by clicking the Old Finder Mode button, a white, capsule-like button in the upper-right ... upper-right corner of the window, or using its menu equivalent (ViewHide Toolbar). (See Section 1. 2 .10 for more on the Old Finder Mode button.) Then again, why would you ever want to hide the Sidebar? ... years, the Mac finally beats the "It's illogical to eject a disk by dragging it tothe Trash!" problem. (For other ways to eject disks, see Section 11 .1. 1.3.) • It makes disc-burning...
... Listing 6 .1 shows the contents of the Form1.cs file. Click the OK button to continue. VS .NET will create a new subdirectory named MyWindowsApplication in the directory specified in the Location ... Form1() { To add a label and a button control to your form select the appropriate control from the Toolbox and drag it to your form. For example, to add a label to your form, you select the ... about the Toolbox, which you use to add controls to your form. Working with the Toolbox You add controls to your form by selecting the control from the Toolbox and dragging the control to your...