<< < 156 157 158 159 160 161 162 163 164 165 166 > >>   Sort: Date

What are the different methods to access Database in .NET ?
What are the different methods to access Database in .NET ? What are the different methods to access Database in .NET ? * OleDB,ODBC,SQLClient * OleDB, JDBC, SQLServer * ODBC-JDBC, DataSet, SQLClient * Datasource, DataSet, DSN OleDB,ODBC,SQLClient
2014-07-17, 1456👍, 0💬

What are cursors? Name four type of cursors and when each one would be applied?
What are cursors? Name four type of cursors and when each one would be applied? Opening a cursor on a result set allows processing the result set one row at a time. The four API server cursor types supported by SQL Server are: a) Static cursors b) Dynamic cursors c) Forward-only cursors d) Keyset-dr...
2014-10-17, 1451👍, 0💬

What are good ADO.NET object(s) to replace the ADO Recordset object?
What are good ADO.NET object(s) to replace the ADO Recordset object? The differences includes In ADO, the in-memory representation of data is the recordset. In ADO.net, it is the dataset A recordset looks like a single table in ADO In contrast, a dataset is a collection of one or more tables in ADO....
2014-09-08, 1449👍, 0💬

What will be output for the given code?
What will be output for the given code? What will be output for the given code? Dim I as integer = 5 Do I = I + 2 Response.Write (I &amp; " ") Loop Until I &gt; 10 * 5 8 * 5 7 9 * 7 9 11 * Errors out 7 9 11 (if corrected)
2014-09-02, 1440👍, 0💬

What does it mean to have quoted_identifier on? What are the implications of having it off?
What does it mean to have quoted_identifier on? What are the implications of having it off? SET QUOTED_IDENTIFIER ON- Causes SQL Server to follow the SQL-92 rules regarding quotation mark delimiting identifiers and literal strings. Identifiers delimited by double quotation marks can be either Transa...
2014-10-15, 1439👍, 0💬

How do we upgrade SQL Server 7.0 to 2000?
How do we upgrade SQL Server 7.0 to 2000? Run the installation of the SQL Server 2000 In the Existing Installation dialog box, click Upgrade your existing installation, and then click Next. In the Upgrade dialog box, you are prompted as to whether you want to proceed with the requested upgrade. Clic...
2014-10-31, 1430👍, 0💬

What does Server.MapPath do?
What does Server.MapPath do? Answer1 srver.mappath() maps the path given in the argument to the server’s physical path. Answer2 It returns the complete(absolute) path of the file used in parameter. Answer3 It returns a string containing the physical path in the server’s file system that corres...
2014-09-29, 1425👍, 0💬

A new server-side control can be created by implementing the class ___________
A new server-side control can be created by implementing the class ___________ A new server-side control can be created by implementing the class ___________ * System.Web.WebControl * System.Web.UI.WebControl * System.Web.UI.WebControls.WebC ontrol* Any one of the above System.Web.UI.WebControls.Web. ..
2014-06-27, 1422👍, 0💬

How do you call and execute a Stored Procedure in.NET? Give an example.
How do you call and execute a Stored Procedure in.NET? Give an example. Answer1 ds1=new DataSet(); sqlCon1=new SqlConnection(connectionstring );String strCom1=”byroyalty”; sqlCom1=new SqlCommand(strCom1,sqlCon1); sqlCom1.CommandType=CommandTyp e.StoredProcedure;sqlDa1=new SqlDataAdapter(sqlCom...
2014-09-15, 1416👍, 0💬

Why can I only seem to malloc 640K or so?. .....
I've got 8 meg of memory in my PC. Why can I only seem to malloc 640K or so?. Under the segmented architecture of PC compatibles, it can be difficult to use more than 640K with any degree of transparency, especially under MS-DOS.
2016-04-12, 1411👍, 0💬

What is Duff's Device?
What is Duff's Device? It's a devastatingly devious way of unrolling a loop, devised by Tom Duff while he was at Lucasfilm. In its ``classic'' form, it was used to copy bytes, and looked like this: register n = (count + 7) / 8; /* count > 0 assumed */ switch (count % 8) { case 0: do { *to = *from++;...
2015-01-02, 1410👍, 0💬

How does you handle this COM components developed in other programming languages in.NET?
How does you handle this COM components developed in other programming languages in.NET? Answer1: add the component in add reference window, click .NETCOM tab. Answer1: While adding the refferences we can handle the COM components in other .Net programming languages.
2014-11-12, 1409👍, 0💬

How do I swap bytes?
How do I swap bytes? V7 Unix had a swab function, but it seems to have been forgotten. A problem with explicit byte-swapping code is that you have to decide whether to call it or not, based on the byte order of the data and the byte order of the machine in use. A better solution is to define functio...
2015-02-16, 1400👍, 0💬

I im dynamically allocating an array, like this ...
I'm dynamically allocating an array, like this: int *iarray = (int *)malloc(nints); malloc isn't returning NULL, but the code isn't working. A:malloc is a low-level, typeless allocator. It doesn't know how you're going to use the memory; all it does is to allocate as many bytes of memory as you ask ...
2016-04-06, 1396👍, 0💬

I am allocating a large array for some numeric work ...
I'm allocating a large array for some numeric work, using the line double *array = malloc(300 * 300 * sizeof(double)); malloc isn't returning null, but the program is acting strangely, as if it's overwriting memory, or malloc isn't allocating as much as I asked for, or something.. Notice that 300 x ...
2016-04-15, 1394👍, 0💬

What is the maximum length of a varchar in SQL Server?
What is the maximum length of a varchar in SQL Server? Answer1 VARCHAR[(n)] Null-terminated Unicode character string of length n, with a maximum of 255 characters. If n is not supplied, then 1 is assumed. Answer2 8000 Answer3 The business logic is the aspx.cs or the aspx.vb where the code is being w...
2014-09-15, 1388👍, 0💬

How do you find the error, how can you know the number of rows affected by last SQL Statement?
How do you find the error, how can you know the number of rows affected by last SQL Statement? Answer1 @@errors-&gt;give the last error occured in the current DB. Ans. select @@rowcount Answer2. Use @@ERROR which returns the error number for the last Transact-SQL statement executed fro knowing t...
2014-11-03, 1384👍, 0💬

What is the STUFF function and how does it differ from the REPLACE function?
What is the STUFF function and how does it differ from the REPLACE function? Answer1: stuff-&gt; inserts into it without removing any thing. Replace-&gt;replace the given text with the new one. Answer2: STUFF - it deletes a specified length of characters and inserts another set of characters...
2014-10-13, 1382👍, 0💬

Which of the following is the C# escape character for Null?
Which of the following is the C# escape character for Null? Which of the following is the C# escape character for Null? * \n * \0 * \f * \v \0
2014-08-06, 1382👍, 0💬

What is the best way of making my program efficient?
What is the best way of making my program efficient? By picking good algorithms, implementing them carefully, and making sure that your program isn't doing any extra work. For example, the most microoptimized character-copying loop in the world will be beat by code which avoids having to copy charac...
2015-02-11, 1381👍, 0💬

How can I read one character at a time, without waiting for the RETURN key
How can I read one character at a time, without waiting for the RETURN key Alas, there is no standard or portable way to do these things in C. Concepts such as screens and keyboards are not even mentioned in the Standard, which deals only with simple I/O ``streams'' of characters. Input to a compute...
2015-11-11, 1371👍, 0💬

Explain features of SQL Server like Scalibility, Availability, Integration with Internet.
Explain features of SQL Server like Scalibility, Availability, Integration with Internet. Scalibility - The same Microsoft SQL Server 2000 database engine operates on Microsoft Windows 2000 Professional, Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server, Windows 98, and Windows M...
2014-10-27, 1359👍, 0💬

What is a good way to implement complex numbers in C?
What is a good way to implement complex numbers in C? It is straightforward to define a simple structure and some arithmetic functions to manipulate them. C99 supports complex as a standard type. Here is a tiny example, to give you a feel for it: typedef struct { double real; double imag; } complex;...
2015-06-19, 1358👍, 0💬

What is the use of trace utility?
What is the use of trace utility? Tracing is a very important monitoring and debugging tool for distributed, multitier applications. Such applications often contain problems that can only be observed when the application is under a heavy load and the inherent randomness of a real-life environment. T...
2014-11-10, 1356👍, 0💬

<< < 156 157 158 159 160 161 162 163 164 165 166 > >>   Sort: Date