-
- Turkish I problem with DataColumnCollection
by Christoph Wagner
- 8 Replies
- Last post
by Christoph Wagner
- I wonder if anybody can give me a good advice in how to overcome the turkish i problem in DataColumnCollections. Imagine a DataTable containing the Column("id") or ("ID") depending on the underlying datasource (MsSql/Oracle). Now the application is normally using a syntax like this when retrieving data from the table dataTable.Rows[0]["id"] The DataColumnCollection no
-
- connectionstring variable to be public..
by ravindralokhande
- 4 Replies
- Last post
by bola shokry
- Dear friends, i am new bie to c#. i am working on a proejct in C# & Access database as backend.
Every time i have to open a oledbconnection for communicating with database.
OleDbConnection oleConnection = new OleDbConnection ( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\Administrator\\My Documents\\Visual Studio 2005\\Projects\\ServicesProvide
-
- Creating a generic object based on a Type object
by Midi_Mick
- 3 Replies
- Last post
by Midi_Mick
- Here is a simplified example of what I am trying to achieve:
Code Snippet
Type t = typeof(String);
List<t> stringList = new List<t>();
I realise the above code is wrorng, and why it is wrong. I just need to know how to achieve the effect I am looking for here. My actual application is a bit more complex than this - I get the type from a custom attribute on th
-
- Adding a new row to a dataset
by steve1_rm
- 7 Replies
- Last post
by steve1_rm
- hello,
I am trying to add a new row to a dataset. I then write this changes to a xml file for local storage. However, I have noticed that when I read the xml file back into a dataset and display in the datagrid, the incidentID (PK) is NULL. The incidentID is auto incremented in the sql server database.
Am I doing something wrong
Code Snippet
Dim dr As DataRow dr = dsIncidents.
-
- Updateing Access database from linked fields on Visual Basic form
by poiuytrewq
- 2 Replies
- Last post
by bettoni
- I¡¯ve been struggling with this one for a few days now and any assistance would be appreciated. This is my first Visual Basic Express project where I am attempting to produce new forms onto an existing Access database.
I have created an IDE form and linked fields on it using drag and drop to my database table. It works great. I can¡¯t get the code to update the database when I change the
-
- Daab connection pooling error
by MariaD
- 14 Replies
- Last post
by MariaD
- This is the message that I encounter "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all".
I am a bit confused about this because I am using DaaB and I know this typically handles the connection management. Also, it has to leave the connection open so I can iterate through the resultsets. I am surprise that
-
- No value given for one or more parameters message occurs when attempting to update an Access file. Why?
by saaHelp
- 14 Replies
- Last post
by Paul P Clement IV
- I have used various tips found for this error by none have worked. I tried placing the variables in with " " and that didn't work. What am I doing wrong Here is my code:
Dim myConnection As New OleDb.OleDbConnection _
( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\PR.mdb;User Id=Admin;Password=;" )
Dim myQuery As Strin
-
- Unable seek backward to overwrite data that previously existed in a file opened in Append mode
by Markus Freinberger
- 4 Replies
- Last post
by Chris Lovett
- Hi @ all:
I'm a newbie in C# and have the following Question:
I have an Application that writes a xml-file,ok, but if i try to update the file and insert a new -node, i get this Message:
"Unable seek backward to overwrite data that previously existed in a file opened in Append mode"
Here's the code:
Code Snippet
public partial class
-
- .LDF files
by Rajwebdev
- 6 Replies
- Last post
by Paul P Clement IV
- Currently im using ADAM for storing app information.Appreciate if anyone can tell me whats an . Ldf file
-
- how to set timeout in VB.NET
by MKHA
- 1 Replies
- Last post
by Feng Chen - MSFT
- Hello,
let say if I have a function called abc(input_val) with return code integer, and I would like to set timeout for this function, so that if it cannot complete within the time limit, then kill it and proceed next, how should I implement it
like
step 1
method.timeout = 5000 ' 5000 mil sec
If (method.run(abc())) =0 then
step 2
else
step3
end if
-
- Datasets and variable table names
by JBS
- 5 Replies
- Last post
by JBS
- Hi all!
I've a SQL (2005) database that is structured as follows:
- a schema called "salary"
- the table name is given by the year and the effective table name. Example 2007.employees
- that gives the table name salary.[2007.employees]
In my project I've created a typed dataset with the wizard. I've then renamed the table name in the dataset without the year (ex. 2
-
- OLEDB and Side-By-Side execution
by V. Matveev
- 0 Replies
- Last post
by V. Matveev
- I'm now experimenting with usage of Sybase OLEDB driver library (ASE 12.5) as SxS assemby. I've created application and assembly manifests and the following C# code executed without any warnings or errors using(OleDbConnection conn = new OleDbConnection("Provider=Sybase.ASEOLEDBProvider.2;Server Name=serverName;Server Port Address=5000;Initial Catalog=dbName;User ID=userPassword=pass;"))
-
- .NET FW 2.0 Configuration console has no options?
by Jimmy Jacobson
- 1 Replies
- Last post
by Jimmy Jacobson
- Hello folks,
I've installed the 2.0 Framework on my computer which already has the 1.1 Framework installed. When I open the .NET Framework 2.0 Configuration console, the only items in the left-hand list view are "Console Root", then ".NET Framework 2.0 Configuration", then "My Computer". There are no other items in the list and none of them can be expanded any
-
- How to open file in read mode if it is in use by another process
by Amol.jagtap149
- 3 Replies
- Last post
by nobugz
- I am trying to open file in read mode, which is already opened by other process in write mode. I am getting exception that says you can not access file because its being used by some other process. Does anybody knows how to open file which is already opened by other process in write mode. Thanks Amol
-
- Role of the computer/domain in Kerebos authentication
by PLasne
- 1 Replies
- Last post
by Vipul Modi - MSFT
- When developing the new version of our company's Intranet, I decided I would need to use Kerebos for authentication delegation (user's creds are auto-passed to the Intranet page, it queries the DCs and SQL under user's creds). That all works great, but I have a few questions...
1. Remote users that are not on our domain have not been able to do this authentication successfully. That made sense
-
- Connection object in a multithreading context
by vtortola
- 3 Replies
- Last post
by V.Tortola
- Hi! Do i need a unic connection per thread or can i use a global connection for al DataAdapters That's, i have a multithreading app, each thread connect to the BD and get some rows and i don't know if i must create a new connection per thread or not. Regards.
-
- Streaming a file to a browser blocks on localhost, but not when using another host
by alpeb
- 2 Replies
- Last post
by alpeb
- Hi, This is a bit strange. My program plays as a web server serving binary files. It listens from connections from a web browser though a TcpListener, creates a TcpClient, gets a NetworkStream from it, writes the appropiate http headers to it and then writes the binary file to it. This works fine when making the request from a machine other than the one where this program is, but when trying from
-
- convertion of html file into xml file in c#.net
by prathima tatineni
- 5 Replies
- Last post
by prathima tatineni
- hi all,
I am facing a problem with conversion of a html file into xml file.Please any one help me with a sample of code.I need this one very urgently....Please help me...
regards
prathima.t
-
- .net WebBrowser Click Pop-ups
by FlyinBrian
- 1 Replies
- Last post
by SebasC
- How would I bypass a certificate pop-up using .net 2.0 web browser And it cant be by using sendkeys.
-
- Early rendering of XML files
by Tavis553683
- 4 Replies
- Last post
by Tavis
- We generate an XML file (describing course content) via ASP.NET 2.0 from a combination of SQL Server 2000 data and an InfoPath 2003 XML file. This procedure is carried out manually; the resultant XML file is saved and uploaded to our webserver, where it populates the various course pages and feeds into the search function. It's possible that we would make this available as a feed in different form
-
- Regex Help
by MuscleHead
- 13 Replies
- Last post
by OmegaMan
- Let's say that I have a bunch of input strings as such:
-----------------------
blah blah blah
Attendees: Mr. Jones Alfred Mrs. Smith John Mr. Black Peter Mr. White Arnold
blah blah blah
------------------
And I want to extract the last names of the attendees (i.e., in the above regex, I want four matches: Jones, Smith, Black, White)
If a string does not have the "Attendees:"
-
- Use Cases - Walk me through it please
by Kevin Hoffman
- 10 Replies
- Last post
by Kevin Hoffman
- Ok, I've seen the walkthroughs for the notepad application and the walkthroughs for the RSS reader application. What both of those walkthroughs are lacking is a clear explanation of just what exactly you're doing. I mean, its great that I can add a part here and add a part there...but what's missing is that "a-ha!" moment where you realize why everything has been put together the way it'
-
- Inserting binary files into an Access database
by pblecha
- 4 Replies
- Last post
by pblecha
- I'm a web developer; I'm trying to write a page in ColdFusion to upload a PDF file into an Access database. I'm using a file input form control to get the file from the user; but I can't recall the correct syntax for the insert query.
Help
-
- There must be a better way to do this...
by e78990
- 2 Replies
- Last post
by e78990
- Hello once again,
I know there must be a better way to do what my VB.NET program is currently doing:
I use a webservice that returns a XML file.
I save the xml file, then parse each node one by one. the innervalue is then appended to a sql query, the query is executed and the row in my Sybase db created.
Sometimes the node does not exist in the XML file, so I have to put a conditi
-
- Microsoft.JScript.Vsa.VsaEngine
by rpansini
- 9 Replies
- Last post
by dfl
- I have a simple function:
public static string EvalJScript( string JScript) { return Microsoft.JScript. Eval .JScriptEvaluate(JScript, Microsoft.JScript.Vsa. VsaEngine .CreateEngine()).ToString(); }
that is used all over my .NET 1.1 application and am currently porting over to .NET 2.0. What is the working replacement for this code I found