| Actual Duration vs. Duration |
|
 |
Index ‹ DotNet ‹ Microsoft Project
|
- Previous
- 1
- ADO >> How to resolve "General Network Error"?I'm getting the following message trying to update a SQL Server table:
"General network error. Check your network documentation."
I'm using stored procedures via a SQL data connection from within a .Net
windows application. The application producing the error, reads a table from
the server, then proforms a series of updates, deletions and insertions
locally to a DataSet. After all processing is completed, the data is written
back to the server using the Update(dataset, "table_name") method on the
DataAdapter. The Update method is called 3 times, once for all updated rows,
once for all inserted rows and once for all deleted rows.
Currently, I read and update 3 tables in seperate datasets. 2 tables work
and the 3rd does not. How can I get resolved this issue?
- 2
- Dotnet >> Convert Ascii Character to decimalHi,
I am reading from a serial port from a device which sends over an ascii
character. It uses the full extended 256 character set and therefore has
non-printing characters too. So what i want to do is convert the input to the
associated decimal.
I.E
ASCII Char 'NUL' will become 0
ASCII Char 'SOH' will become 1
ASCII Char 'STX' will become 2
ASCII Char '0' will become 48
ASCII Char '1' will become 49
All the way to up to the decimal value 255
I know it must be some thing simple but I can't find it! I'm using C#.net or
VB.net
Thanks in advance
--
If at first you don't succeed... Hide the evidence that you tried!
- 3
- Net Framework >> Obtain the folder where is the executable of my applicationI want to obtain programatically the folder where the executable of my
applicationj is installed. I want that path to find other files which are
located related to the path where my application is installed. Is there
antway to do this?
For example i want to create a fileinfo object to retrieve the info of a
file which is in the same folder as the executable of my application. I have
tried to do this:
FileInfo info=new FileInfo(".\\example.txt");
the problem with this is that when i create a FileInfo object passing an
absolute path in its constructor
FileInfo info=new FileInfo("c:\\Program Files\\Folder\\File.txt");
when i try later to create another fileinfo object to get another file in
the same folder as my application executable
FileInfo info=new FileInfo(".\\anotherexample.txt"); it throws me an
exception because it cannot find "c:\Program Files\Folder\anotherExample.txt";
- 4
- Visual C#.Net >> ANN: OleDBProNet for .NET version 2 is released at www.udaparts.comHi, All:
OleDBProNet is a .NET class library which is a complete, feature-rich,
and extremely powerful data access solution for .NET programmers through MS
OLEDB technology. It offers the following key benefits over ADO.NET:
1. Extremely simple:
OleDBProNet hides all of complexities of raw OLEDB programming. It is
written with the classical ADO data accessing model. You will never meet
BLOBs and other complicate data types conversion to bother you for all types
of SQL statements.
OleDBProNet comes with fifteen real and advanced C# and VB.NET samples
to assist your developments no matter what programming background you have.
If you have somewhat background in old ADO (Active Data Objects), you
will feel OleDBProNet is extremely simple and intuitive to use.
2. Many features available:
OleDBProNet supports all types of client and server cursors as shown in
the attached samples. It supports all of advanced rowset navigation features
(bookmark, record searching, index, bi-directional scrolling and jumping
etc) directly on server side. OleDBProNet offers much more features than
ADO.NET.
3. Super performance:
OleDBProNet is written from Visual C++ 2005 C++/CLI with direct use of
raw OLEDB interfaces, which almost eliminates data marshaling across layers
between native and managed codes completely. Also, OleDBPro uses batching
mode (20 records per batch) to retrieve and update records by default.
Generally, OleDBProNet is about five times as fast as ADO in .NET
environment. Also, OleDBProNet is about 15% faster than MS OleDB.NET
provider.
OleDBProNet can manage huge data records using server cursors, but
ADO.NET can't. Therefore, OleDBProNet is significantly faster and simpler
than ADO.NET for accessing a large number of data records.
4. Complete solution to all types of your databases:
OleDBProNet is a complete solution to all of types of databases, SQL
server, Oracle, Access, MySQL, DB2, ....... As long as you have an OLEDB
provider, or ODBC driver, or ISAM driver available, it will work for you
with one copy of code.
--
Yuancai (Charlie) Ye
Fast accessing all of remote data sources anywhere with SocketPro using
batch/queue, non-blocking and parallel computation
See 30 well-tested and real OLEDB examples
at http://www.udaparts.com
- 5
- Visual C#.Net >> maximize formsI can set the maximizeBox property. But I didn't find a method to maximize a
MDI child form.
So I must do a duoble click at the maximize box.
Anybody know a maximize function or method?
Thank in advance
Thomas
- 6
- ADO >> Download to Excel from SQL stored procedureCan anyone give me a simple bit of code to run on my website offering
a download to excel facility from a SQL stored procedure? I know how
to get the data from the stored procedure, but how do I let the user
download it to Excel, as I have seen done on some other websites?
- 7
- ADO >> TableAdapter update fail with inconsistent paramterI use Wizard to build TableAdpater
My tableadapter is make by a select command:
Select ID, Name form Test
It update generate a update command:
Update Test set ID=@ID, Name=@Name where ID=@Orginial_ID
But when I use a gridview with the TableAdpater and set the DataMemberKeys
to ID, and Update data with this gridview, it fail with message:
can find update method with parameter Name,@Orginial_ID
I think the girdview did'nt pass the first ID parameter to TableAdpater.
How can I do?
- 8
- Net Framework >> Line based chat server and clientI'm writeing a chat client for a server that is line based.
I have most of the connection stuff working.
I have a Socket, a NetworkStream and a StreamWrtiter
Don't quite have a handle on getting StreamReader.ReadLine to work
asynchronously.
Can someone point me in the right direction.
Thanks
Kyle!
- 9
- Dotnet >> Dataset alternative to stored proc row resultsUsing the reader object I'm not having a problem retrieving stored
procedure return values, but I'm having trouble getting at the actual
data coming back in the row results. My first impulse would be to fill
a dataset, but I'd prefer to return the results in a more generic
fashion, hopefully via the reader. Again, these are row results coming
back from a proc, so there won't be any named variables to work with.
Any suggestions?
Thanks in advance,
Al
- 10
- Dotnet >> Bizar problem with a form (different instances act like one!)Hi all,
I have got a really weird problem:
- A normal VB.net forms application
- One MDI child form with a bunch of controls (tabs, radiobuttons, combo's,
etc.)
- The form is called from several procedures as kind of a dialog
- To my knowledge we haven't done anything in the disigner / code which can
be described as unusual
When de form is called multiple time they seem te listen to each others
events! So when I change a combo, the combobox will change on all forms ?!
All instances are created through a new / contructor and to my knowledge no
variables / controls are declared as static.
Does anyone have ever seen this or made this kind of functionality on
purpose?
I better hope it isn't a little switch in de IDE we turned on by accident.
Hope you can help,
Best regards,
Joost van den Berg
- 11
- Dotnet >> .NET 1.1 (and possibly 1.0 also) Threads leaking "Event" handles. [BUG??]Hi,
Threads in the .NET Framework 1.1 (and possibly in 1.0 also) leak "Event"
handles, by Event handles I mean Win32 Event handles which can be monitored
using the ProcessExplorer from www.sysinternals.com, or even simply look at
the Handle count in the good old windows TaskManager.
To demonstrate the problem, all I did was created a basic Win Forms
application and with Main implemented as:
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
and Form's constructor as
public Form1()
{
while(true)
{
Thread thread = new Thread( new ThreadStart( ThreadProc) );
thread.Start();
Thread.Sleep(1000);
GC.Collect();
}
}
and the ThreadProc is implemented simply as
protected void ThreadProc()
{
Thread.Sleep(100);
return;
}
Now you let it run for a while and monitor the handle count using the
ProcessExplorer or TaskManager to can see that the thread count becomes more
or less constant after a bit (which means that an equilibrium is reached in
which the threads being created and thread which die is same), you will note
that the Handle count keeps on increasing. I have monitored upto 10000
handles after which I killed the application.
Now, this seems like a bug. Has someone got any explaination for this and
possibly a workaround. BTW, I also tried changing the attribute on Main from
STAThread to MTAThread with no change in behavior.
Any help/suggestions would be appreciated.
thanks,
Rohit
- 12
- 13
- Net Framework >> XMLDocument.LoadXML(mystring)Hi I'm trying to use the loadXML method of the
XMLDocument but i'm recieving the following error.
'<', hexadecimal value 0x3C, is an invalid attribute
character
I have a <br> tag in my string which is causing the
problem, does anyone know how i can get around this?
Thanks
N
- 14
- 15
- Dotnet >> Rule ManagementHello all,
If you were to order a a Z-28, you can get a bunch of options on it and in
odd configurations. However, if you were to select the option for the 350
cu in engine, you cannot have the T-Tops option as well. And, if you choose
red exterior, you must have leather interior.
My point and question is this. Is there a design pattern out there or a
best practice for implementing those types of rules? I think that the way I
am going about it, my business logic knows way too much about my data and,
at times depends on the presence of some data in the database. I would like
to get away from that, allow the "look-up" list manager (the person entering
options into the database) to specify the rules that will be enforced at
point of sale.
Thanks in advance gang.
|
| Author |
Message |
lenalb

|
Posted: Wed Apr 06 15:21:38 CDT 2005 |
Top |
Microsoft Project >> Actual Duration vs. Duration
When would you use Actual Duration and when would you use
Duration?
I went to help to find:
The Duration field is the total span of active working
time for a task. This is generally the amount of working
time from the start to the finish of a task.
The Actual Duration field shows the span of actual
working time for a task so far, based on the scheduled
duration and current remaining work or percent complete.
This program is too confusing
Thank you
DotNet256
|
| |
|
| |
 |
John

|
Posted: Wed Apr 06 15:21:38 CDT 2005 |
Top |
Microsoft Project >> Actual Duration vs. Duration
In article <0c4601c53ae2$e8443050$EMail@HideDomain.com>,
"Karen" <EMail@HideDomain.com> wrote:
> When would you use Actual Duration and when would you use
> Duration?
> I went to help to find:
> The Duration field is the total span of active working
> time for a task. This is generally the amount of working
> time from the start to the finish of a task.
>
> The Actual Duration field shows the span of actual
> working time for a task so far, based on the scheduled
> duration and current remaining work or percent complete.
>
> This program is too confusing
> Thank you
Karen,
Just like schedule dates, Duration is a field either entered by the user
or calculated by Project based on scheduled Start and Finish. Those
elements of a task define its plan. Actual values on the other hand
represent what is really happening once the task is started. Actual
Start is assumed by Project to coincide with schedule Start unless the
user manually enters an Actual Start date that is different from the
Start date. Then Project re-adjusts the schedule Start to agree with
what really happened. Keep in mind the original plan is captured by
values in the Baseline fields.
As you note, Actual Duration = Duration x % Complete. Pretty
straightforward. Many users are confused by the % Complete value they
see on a Summary line because it is NOT the sum or average of subtask %
Complete values. Rather % Complete for a Summary line is:
Summary % Complete = (sum of subtask Actual Durations/sum of subtask
Durations) * 100%.
I don't know if this helped but hopefully it gives a little more
background. Project can be VERY confusing. Truly understanding it
requires a solid understanding of Project Management principles and lots
of hands on use. Formal training can help but there is just no
substitute for experience gained with everyday use. Project is just not
as intuitive as other Office applications. Hang in there, most of us
(yeah even the MVPs) are still learning also.
John
Project MVP
|
| |
|
| |
 |
Karen

|
Posted: Wed Apr 06 15:51:30 CDT 2005 |
Top |
Microsoft Project >> Actual Duration vs. Duration
You've been very helpful - Thank you very much!
>-----Original Message-----
>In article <0c4601c53ae2$e8443050$EMail@HideDomain.com>,
> "Karen" <EMail@HideDomain.com> wrote:
>
>> When would you use Actual Duration and when would you
use
>> Duration?
>> I went to help to find:
>> The Duration field is the total span of active working
>> time for a task. This is generally the amount of
working
>> time from the start to the finish of a task.
>>
>> The Actual Duration field shows the span of actual
>> working time for a task so far, based on the scheduled
>> duration and current remaining work or percent
complete.
>>
>> This program is too confusing
>> Thank you
>
>Karen,
>Just like schedule dates, Duration is a field either
entered by the user
>or calculated by Project based on scheduled Start and
Finish. Those
>elements of a task define its plan. Actual values on the
other hand
>represent what is really happening once the task is
started. Actual
>Start is assumed by Project to coincide with schedule
Start unless the
>user manually enters an Actual Start date that is
different from the
>Start date. Then Project re-adjusts the schedule Start
to agree with
>what really happened. Keep in mind the original plan is
captured by
>values in the Baseline fields.
>
>As you note, Actual Duration = Duration x % Complete.
Pretty
>straightforward. Many users are confused by the %
Complete value they
>see on a Summary line because it is NOT the sum or
average of subtask %
>Complete values. Rather % Complete for a Summary line is:
>Summary % Complete = (sum of subtask Actual
Durations/sum of subtask
>Durations) * 100%.
>
>I don't know if this helped but hopefully it gives a
little more
>background. Project can be VERY confusing. Truly
understanding it
>requires a solid understanding of Project Management
principles and lots
>of hands on use. Formal training can help but there is
just no
>substitute for experience gained with everyday use.
Project is just not
>as intuitive as other Office applications. Hang in
there, most of us
>(yeah even the MVPs) are still learning also.
>
>John
>Project MVP
>.
>
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ Microsoft Project |
- Next
- 1
- Net Framework >> Nullable boolean true on webservice response comes across as nullHello all,
I'm working on a web app that we converted over to asp 2.0 recently and
here's the issue I ran into:
We use a java webservice to retrieve data and display this data to the user.
This was working in 1.1 and nothing changed around this particular webservice
call on either side after the switch to 2.0. The webservice response is an
array of value objects and the value object contains a boolean. I intercepted
the response with Fiddler and verified that the boolean was set to either
true or false on all the vo's in the array. But after the response object was
created and I could look at it in the code while debugging, the (nullable)
boolean field in every vo in the array was null.
To fix this temporarily, I had the webservice provider change the boolean
field to a 'NullableBoolean' class that contained a boolean value - this way,
the correct value came across and I could work with it.
I'm not sure if this is helpful, but there's one more detail I noticed -
The xml doc I intercepted with Fiddler looks something like this
('processed' is the boolean variable):
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"...>
<env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
...
<responseVos...>
...
<ResponseVo ...>
...
<processed href="#ID_4"/>
...
</ResponseVo>
...
</responseVos...>
...
<xsd:boolean xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:boolean" id="ID_4">true</xsd:boolean>
...
</env:Body>
</env:Envelope>
This is working for now but I think I shouldn't have to have my webservice
provider fix my problem, right? Any help in solving this problem would be
greatly appreciated.
--
ak
- 2
- Visual C#.Net >> BinaryReader munges dataI'm about to rip out what little hair I have left; I have a class that
uses a BinaryReader, and the data is getting munged. A subset of the
code follows; I've removed the parts that aren't relevant.
What's really strange is that it reads the file just fine until the
272nd call to the Read method of the class, at which point it begins
munging the data.
Any thoughts would be greatly appreciated; I've tried reading by byte,
as well as reading blocks, and it makes no difference.
-Kevin
public class HeaderStream
{
private const int c_BlockSize = 680;
private System.IO.BinaryReader str;
public HeaderStream(string path)
{
FileStream s = new FileStream(path,
FileMode.Open,
Read);
str = new BinaryReader(s);
}
public OWHeader Read()
{
byte[] buf = new byte[c_BlockSize];
int i;
i = str.Read(buf, 0, c_BlockSize);
if (i != c_BlockSize)
throw new EndOfStreamException(
String.Format(
"End of stream reached with bytes left to read"));
return new OWHeader(buf);
}
}
- 3
- Visual C#.Net >> Programmatically disabling Windows Control EventsHi
I wanted to programmatically disable events like SelectedIndexChanged without
using a boolean flag, which indeed I find a quick and dirty solution. So, I
found a
piece of code that do this more elegant:
* How to disable event in C#?
Link: http://tinyurl.com/alsge
Group: microsoft.public.dotnet.framework.compactframework
But I saw it is limited to ComboBoxes and to the SelectedIndexChanged Event
and
I want to generalize it to an object of type control and to every possible
event. To
give you an idea, I will post some of my ugly code:
public static EventHandler DisableSelectedIndexChanged(Control control)
{
FieldInfo fieldInfo;
object fieldObject;
EventHandler handler = null;
fieldInfo = control.GetType().GetField("SelectedIndexChanged",
BindingFlags.Instance | BindingFlags.NonPublic);
if (fieldInfo != null)
{
fieldObject = fieldInfo.GetValue(control);
if (fieldObject is EventHandler)
{
handler = (EventHandler)fieldObject;
//This is the part I want to avoid
if (control is ComboBox)
((ComboBox)control).SelectedIndexChanged -= handler;
else if (control is ListBox)
((ListBox)control).SelectedIndexChanged -= handler;
else if (control is ListView)
((ListView)control).SelectedIndexChanged -= handler;
else if (control is TabControl)
((TabControl)control).SelectedIndexChanged -= handler;
}
}
return handler;
}
Is it possible to avoid the casting and get a pointer to the
SelectedIndexChanged
property, then apply the -= operation over it? How? As I could understand,
FieldInfo.GetValue(control) only returns the handler, but not the
SelectedIndexChanged property.
Thanks in advanced,
Josef
- 4
- Visual C#.Net >> Adding multiple enum itemsprobably simple but need quick answer if possible. How do I add multiple
enum values to a particular property
e.g. in Vb you would have added them (bit like)
myDataView.RowStateFilter = DataViewRowState.CurrentRows +
DataViewRowState.ModifiedOriginal;
Thanks in advance.
--
Br,
Mark Broadbent
mcdba , mcse+i
=============
- 5
- Winforms >> ListView.tag lost objectHi,
I have a Form with two ListViews; The ListViews are diplayed on the
Design surface, but I progmatically adding the items to each ListView.
When adding the items to the list view I am iterating through and
setting the following:
...
With myListViewItem
.Text = drArticles("Title").ToString
.ToolTipText = drArticles("Summary").tostring
.Tag = CType(drArticles("ID"),Guid)
End With
myListView.Items.Add
...
This works fine and the items are displayed.
The problem arises when I respond to a SelectedIndexChanged event I can
retrieve the .ToolTipText and .Text values from then
SelectedListViewItemCollection but the .tag property is always empty (it
knows the object type is GUID but does not have the value. I know the
value is being set as I can set the ToolTipText to same ID as the TAG
and it is stored correctly.
Any ideas?
Many thanks in advance
- 6
- Dotnet >> Composite UI application Block - Thread Safe?Does anyone have any input on setting up my CAB application so that the
application is thread safe, and cached appropiately? I read that this
can be managed through Services, and dynamic injection. On the
contrary, I was told that this can be handled using Enterprise Library
cached application block. Last, but not least, i read you can implement
this at the class level, creating immutable classes, and caching them
accordingly. Any suggestions would be greatly appreciated?
- 7
- Dotnet >> Localized Exception Messages in WinFormsSystem exception messages in VS2005 are given in the local language.
Sometimes it is nice, but often it is quite inconvenient - try looking up
MSDN or Google with a localized message!
So, after having received a rather obtuse message concerning a P/Invoke
error, I spent some time getting rid of this unwanted feature, and I wish to
share with you the results.
First, my solution: In the Load event of the main form, add:
Thread.CurrentThread.CurrentUICulture = new
System.Globalization.CultureInfo ("en-US");
Now, the explanation:
Visual Studio Debugger, How to: Find Out More About an Exception with the
Exception Assistant says quite clearly:
"Message: Message associated with the exception. This is displayed in the
language specified by the CurrentUICulture property of the thread that
throws the exception."
So it is a feature, albeit not well considered.
Where does CurrentUICulture come from?
The help at NET Framework Class Library, Thread.CurrentUICulture Property,
advises:
Application.Run(new UICulture());
But this is wrong, Application.Run does not take a culture parameter, and
the Application.CurrentCulture property does not affect the behavior of the
exception assistant - CurrentCulture and CurrentUICulture are not the same
thing! CurrentUICulture is a property of the thread, and is not affected by
either of the application CurrentCulture or the assembly
NeutralResourcesLanguage attribute. It is the language specified in the
control panel regional and language options.
The assembly Culture attribute may not be used: "Information on the culture
or language the assembly supports. This information should be used only to
designate an assembly as a satellite assembly containing culture- or
language-specific information. (An assembly with culture information is
automatically assumed to be a satellite assembly.)"
So we are left with dynamically modifying the thread CurrentUICulture.
In development I can make it depend on #if DEBUG. But what if a user in
another country gets a system exception using my software? I will get the
error message in his language and what could I do with it?
See http://msmvps.com/blogs/calinoiu/archive/2006/06/30/103426.aspx
JR
- 8
- Visual C#.Net >> Get the plain text from html stringI am wondering what is the fastest way to get plain text such as "abc def 12"
from an HTML string.
I can parse it, but not sure how to deal with those special characters, such
as & and >. Is there an API to get the right plain text?
TIA.
- 9
- Net Framework >> Assembly info file..Can I give a variable in the assembly info file?
Say like
<Assembly: AssemblyTitle(var1)>
var1 is a static variable in my project that is common for the project
VJ
- 10
- Visual C#.Net >> COM interoperatability using PInvoke (SEH Exception)Hi All,
I am trying to call COM Component in .NET using PInvoke.
In the following scenario, ( I am getting an exception called SEH -
External component has thrown an exception)
UnManaged Code
---------------
virtual HRESULT IDispatch::GetIDSOfNames(const IID & riid, LPWSTR *
rgizNames, UINT CNames, LCID lcid, DISPID *rgDispID)
Managed Code (I have rewritten)
------------
int GetIDsOfNames ([In] System.Guid guid, ref System.String[]
rgNames,[In] System.UInt32 cNames, [In] System.UInt32 lcid,
[Out] out long[] dispID);
Public Test()
{
AXIDispatch pIScriptDispatch;
String[] wszScriptFunctions = new String[1];
wszScriptFunctions[0] = "entryMethod";
long[] dispIDFunctions = new long[1];
pIScriptHost.GetScriptDispatch (out pIScriptDispatch);
IntPtr p = Marshal.GetIDispatchForObject(pIScriptHost);
IntPtr ppv;
Marshal.QueryInterface(p,ref diug,out ppv);
pIScriptDispatch = (AXUtil.AXIDispatch)Marshal.GetObjectForIUnknown(ppv);
try
{
pIScriptDispatch.GetIDsOfNames (guid,ref wszScriptFunctions, 1,
1033, out dispIDFunctions);
}
catch (Exception ex)
{
Console.WriteLine (ex.ToString ());
}
}
If I execute Test() I will be getting the following Exception for
Invoking "GetIDsOfNames(....)"
System.Runtime.InteropServices.SEHException: External component has
thrown an exception.
What could be the reason to get this kind exeception, I don't know
what to do in order to handle it error. Could anyone
kindly help me to solve ? I will greatly appreciate.
Thanks & Regards
R. Muthiah Samy
- 11
- Microsoft Project >> Overallocation issueHi All,
I have also another overallocation problem and I got crazy with it last
2 months. It became quite critical for me and still can't solve it.
I've simplified it (8 basic tasks over 8 phase), 4 resources, single
resource assignments, work entered. Read all articles, watched training
movies, searched online helps and digged news groups.
I desperately need a help for that. I will be happy if you can help me
or forward me to somewhere.
Best Regards
- 12
- Net Framework >> Having trouble deploying Custom User Control to a container ...If I develop a user control that is made from intrinsic windows controls such
as text box, etc, I can successfully deploy it to the the browser and see it
instantiated.
but if I add a third party control to the custom control, then I have
difficulty instantiating it.
I guess this has to do with .Net framework security.
I have done my best to change the security policies on the local computer to
allow the Custom User Control to run, but had no success.
I have dveloped and deployed the user control by following the steps
provided at the following URL:
http://www.c-sharpcorner.com/Code/2003/March/ActiveXInNet.asp
Is there any way I can develop a user control in .Net that includes a third
party control and instantiate into a container?
All helpful comments will be appreciated.
Thanks,
Mehran Sedaghatpour.
- 13
- ADO >> Problem with disable msde connection poolHello,
To resotre MSDE database, the connection pool must be disabled. I set
pooling=false in the connection string, i.e.,
SqlConnection conn = new SqlConnection("server=(local)\\NetSDK;
database=mydb; uid=sa; password=abc; pooling=false;");
It seems that the connection pool was not disabled. Here are the error
messages I got:
[Microsoft][ODBC SQL Server Driver][SQL Server]Exclusive access could
not be obtained because the database is in use.
[Microsoft][ODBC SQL Server Driver][SQL Server]RESTORE DATABASE is
terminating abnormally.
Any ideas? Are there any other ways to disable the connection pool?
Any help would be appreciated!
Mandy
- 14
- Visual C#.Net >> Access ModifiersHi,
Is it possible to declare a variable or array in the class that is
accessible to all the methods in the class? For the example below, I would
like to make the variable lnVar1 accessible to both methods m1 and m2 but I
am getting an error. Is there another way to do this?
Thanks
Roy
using System;
using System.Collections.Generic;
using System.Text;
namespace cClasses
{
class Program
{
static void Main(string[] args)
{
AA2.m1();
}
}
}
public class AA2
{
protected int lnVar1 = 0;
public static void m1()
{
Console.Write("M1 {0}", lnVar1);
}
public static void m2()
{
Console.Write("M2 {0}", lnVar1);
}
}
- 15
- Visual C#.Net >> Adding Items to ComboboxI am using a C# combobox control. There are too many items to add right from
the start, I want to add 20 or so, then when the user cursors down to the
last one and cursors down again, I will add the next 20 so that they can
continue. Is there an event for when the user has reached the end of the list?
The only other was I can think of to handle it would be to capture each time
they pressed the up or down arrow, then see if the value changed, and if not,
add items. Is there not a better way than that? Thanks.
|
|
|