|
How do i change the field to variable length string?
Is that jus a varchar
without setting the size of field?
soz bit of a newb to this game
|
|
|
|
|
the var in varchar means that it's a variable length, the number is the maximum possible length. nvarchar is unicode, I believe, I tend to use nvarchar.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thank you christian
I tried to enter nvarchar into mySQL but it jus ended up changing it back to a varchar anyway
|
|
|
|
|
OK, mySQL is crap, perhaps it doesn't support both. Either way, that's a variable length string.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
the mysql connector doesn't seem to support a base64 string
What about an int64?
|
|
|
|
|
That's because you don't know what a Base64 encoding string is. It's an encoded stream of bytes that's most commonly used to send binary data in an email. Here, read this[^].
|
|
|
|
|
i have it working
this seemed to have done the trick
hashedBytes = shaHash.ComputeHash(encoder.GetBytes(txtPassword.Text))
Dim PWhash As String = encoder.GetString(hashedBytes)
param = cmdString.Parameters.Add("?p_Password", MySqlDbType.VarChar)
param.Direction = ParameterDirection.Input
param.Value = PWhash
|
|
|
|
|
Good morning evrybody
i'm wondring if someone can help me and show me how to configure the command objet of ADO.net and its requete to insert image into my database.
mydatabase (pictures) has one column "picture" with image type of sql server 2005.
thank you
my mail : dalidali184@yahoo.fr
DAli
|
|
|
|
|
Google for one of the million or so examples of this. All you have to type into Google is "vb.net sql server 2005 store image".
|
|
|
|
|
Could I get a Function Address in a Remote Process?
And how could I do?
|
|
|
|
|
You don't. The address would be meaningless on any machine other than the one the function is actually running on. So the question because, why would you even need it?
|
|
|
|
|
Now I have to use a API to do something.
It need a address of function, which in the third process.
|
|
|
|
|
Billypon wrote: It need a address of function, which in the third process.
Which won't do you any good because an address cannot be called on a remote machine. You can only give an API function an address on the LOCAL machine to call. You cannot give it an address on a remote machine. There's simply no way to represent that.
Now, you have to have a proxy running on the machines. On the local machine, the address you give the API function will be a delegate on the local machine in a proxy. This proxy marshals the call to a remote component that calls the real method on the remote. The API function won't know anything about the remote machine.
|
|
|
|
|
No!
It means both of the two process are run in the local machine which i say
|
|
|
|
|
It STILL won't do you any good because each process runs in it's own address space! Think of it this way. Each process thinks it's the only one running under Windows and has access to up to 2 GB's of RAM. The address you get for the function doesn't apply because it sits in a different address space.
|
|
|
|
|
i just wanna ask again, about what i posted last night... I am making a module for data entry of grades. But before that, i need first to search for the subjects before entering the grades of the students.
In clicking the search button, it should search a particular subject, then the datagrid should display all the students who enrolled in that subject that i will going to search.
I made a three database in access: 1. database of the students, 2. database of the different subjects. and
3. database of the students and the subjects they enroll.
How can I connect those three database to each other. The display of the datagrid should change if i search another subject. But i can't do it.
I use the OleDbDataAdapter. In the data adapter configuration wizard, will i choose those 3 database in the query builder so that it will be connected? Is this correct???
|
|
|
|
|
Uhhh, any particular reason why these are three seperate databases instead of just one database with 3 tables and a couple of relationships?
|
|
|
|
|
Because i am making a computerized grading system. But before that, i should first make a data entry of grades of each student enrolled in every subject they had enrolled.
So I made a separate database of the file maintenance of the all the students who enrolled. Then another database for all the subject offer in this semester with each corresponding proffesor in each subject. Then another database for the subjects that each of the students take.
In my module, i will going to search any subject offer, then the datagrid should display all the students who enroll in that subject. The display of the datagrid should also change if i will going to search another subject.
How can i make a query for that??? And how can i connect those database??? Is my module correct???
|
|
|
|
|
Rharzkie wrote: Is my module correct???
Nope. To simplify this, you actually have three tables in a single database. Doing it in seperate databases uneccessarily complicates your database.
|
|
|
|
|
yup, three tables in a single database...how can i make those tables connected in my project?
How can i make a query for that if i will going to search another subjects? The students who enroll in that subject should view in the database...
|
|
|
|
|
What you're asking is simple SQL. I suggest picking up a book on it and going through it.
You don't "connect" the tables. You use JOIN clauses in your SQL statements, with properly keyed tables, to get the data out of multiple, related, tables.
There's a bunch of different ways of doing it, but exactly how is determined by your table structure.
|
|
|
|
|
after i finished my application and saved it then i set new project setup (for deployment ) then i found that every form that i have made didn't open and the following msg appeared :
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
what should i have to do now
plz help??
|
|
|
|
|
Hi,
when you add an event wire through the keyboard, Visual will propose
default method name, which you can accept with TAB key; if you do, it also
creates the event handler containing a single throw statement. You are then
supposed to replace the throw by your actual code; if you forget to do so,
Designer may not like it.
BTW: if you never noticed, try it on a new project and form. Inside the
constructor of the form, type "this.Load+=" now wait a while, accept with
TAB, wait a while, accept with TAB. The Load handler skeleton will be inserted.
Remedy: close the project in Visual. Open the source file with a simple
editor (Notepad) and disable those throw statements. Reopen project in Visual.
|
|
|
|
|
plz explain more or show me any article or upload project and send it to me cz i need it badly
|
|
|
|
|
Hi,
I will not write an article on this.
Read my previous reply again, use Notepad/Wordpad and search your file(s)
for methods such as (name may vary):
void Form1_GotFocus(object sender, EventArgs e) {
throw new Exception("The method or operation is not implemented.");
}
|
|
|
|