debasisdas 580 Posting Genius Featured Poster

You need to format the DateTimePicker1.Text before passing the same into database for inserting.

debasisdas 580 Posting Genius Featured Poster

what you have tried so far ?

debasisdas 580 Posting Genius Featured Poster

you have to create a procedure / function for that.

debasisdas 580 Posting Genius Featured Poster

I am only getting results for converting a MS Accss 'database' to a SQL 'database'. ...... I just want to convert one MS Access 'table' to SQL Server (2008) 'table'.

What is the difference ?

Netcode commented: none +5
debasisdas 580 Posting Genius Featured Poster

so, what is the problem ?

debasisdas 580 Posting Genius Featured Poster

You need to use ADO library in VB 6.

Read more here and here.

debasisdas 580 Posting Genius Featured Poster

for that you need to frame the query dynamically at run time.

try this.

PREPARE sql_stmt FROM "your query";
EXECUTE sql_stmt;
debasisdas 580 Posting Genius Featured Poster

you need to round off the value to the desired decimal places.

debasisdas 580 Posting Genius Featured Poster

how to insert a pdf file in database

Read the file into a binary stream and store the same into a database table.

debasisdas 580 Posting Genius Featured Poster

You need to read this.

The concept is same for all databases.

debasisdas 580 Posting Genius Featured Poster

What exactly you mean by disable a cell of datagrid ? Are you trying to make it read only ?

debasisdas 580 Posting Genius Featured Poster

declaring variables and assigning values to those.

debasisdas 580 Posting Genius Featured Poster

This may help.

also try --- Shell "shutdown -s"

debasisdas 580 Posting Genius Featured Poster
debasisdas 580 Posting Genius Featured Poster

From where you got this error ?

What code , which application, which database ?

debasisdas 580 Posting Genius Featured Poster

you can search for those. Most of them are not free to use.

debasisdas 580 Posting Genius Featured Poster

You need to use some third party tools / components to generate barcode.

debasisdas 580 Posting Genius Featured Poster

That will depend how the value is stored.

Sql Server and MySql may behave differently to the exact same piece of code, after all they are two different databases from two different vendors.

debasisdas 580 Posting Genius Featured Poster

check for date format.

debasisdas 580 Posting Genius Featured Poster

4. How does it happen that people here misunderstand each other frequently?
There.

We do it frequently for some serious fun and to confuse others.

debasisdas 580 Posting Genius Featured Poster

Your code is horrible.
Columns names are qualified by table name not the reverse as mentioned by you in the SQL.

debasisdas 580 Posting Genius Featured Poster

Using the owner argument with the Show method ensures that the dialog box will be minimized when it’s parent is minimized, or unloaded should the parent form be closed.

Using the Show method with both style and owner arguments.

For example:

' Display frmAbout as a modeless child of frmMain.
    frmAbout.Show vbModeless, frmMain
debasisdas 580 Posting Genius Featured Poster

You can go ahead and implement the approach if you have proper back up and recovery mechanism. Remember you are putting all the eggs in a single basket.

debasisdas 580 Posting Genius Featured Poster

What exactly you are trying to do ?

debasisdas 580 Posting Genius Featured Poster

ADODC is not a database, it is a control to connect to database.

use ADODB and try this code

cn.begintrans  ' cn--adodb connection object
cn.execute "your update command goes here"
cn.committrans
debasisdas 580 Posting Genius Featured Poster

If it is one value or more always better to store securely , preferable in DB.

debasisdas 580 Posting Genius Featured Poster

What about using database for the purpose.

debasisdas 580 Posting Genius Featured Poster

Have you tried as i suggested in my previous post ?

debasisdas 580 Posting Genius Featured Poster

Consider this and check if this suits your requirement.

Tables structure

Person
(id,
name,
field3,
field4,
..........
static_energy,
se_status)

1. Initially insert al other details into the Person table except statis_energy column and set the se_status to 0.
2. when the external process runs creat the output into a text file with name same as ID of the person and update the status in the table to 1.
continue this process for all other person details.
3. Run a procedure to read the text file and update the static_energy column of the corresponding record (based on ID).

debasisdas 580 Posting Genius Featured Poster

Is that being stored anywhere in the DB ?

debasisdas 580 Posting Genius Featured Poster

How the application knows what is the status of the execution of external process ?

Are you setting any flag ?

debasisdas 580 Posting Genius Featured Poster

Generally how you determine if the external process executed properly or not ?

debasisdas 580 Posting Genius Featured Poster

Are you going to insert every thing from the text file into a table or update a single field of a table based on data in text file ?

debasisdas 580 Posting Genius Featured Poster

which part you are struck up with ?

1. read the content from the text file.
2. write to database.

it should be that simple.

debasisdas 580 Posting Genius Featured Poster

What exactly you are trying to do ?

debasisdas 580 Posting Genius Featured Poster

Try this sample code.

Dim cn As New ADODB.connection
 
cn.Open "Provider = Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\data\DataBaseName.mdb"

cn.BeginTrans
cn.Execute "your insert statement goes here."
cn.CommitTrans
debasisdas 580 Posting Genius Featured Poster

i think that is what i suggested.

debasisdas 580 Posting Genius Featured Poster

Are you doing any other processing in application startup or only database connection ?

debasisdas 580 Posting Genius Featured Poster

What about storing the voting time in DB and allow the user to vote again only after 24 hrs.

debasisdas 580 Posting Genius Featured Poster

Oracle works on 1521 and 1522 only, using other ports may not help.

debasisdas 580 Posting Genius Featured Poster

It is not the connection string but he driver that you are using to use the connection string internally makes all the difference.

Which port you are going to open ?

debasisdas 580 Posting Genius Featured Poster

The solution in the link will work if you are using some of the basic controls like a textbox and buttons. Other wise backward compatibility is not supported on most of the applications.

debasisdas 580 Posting Genius Featured Poster

Find more connection stings here.

debasisdas 580 Posting Genius Featured Poster

You need to look into the property pallet of the control, and refer to the property mentioned in the previous post.

debasisdas 580 Posting Genius Featured Poster

tnsping only working on database server

who told you ?

It will work from each and every system that has oracle client installed and has the TNS set, and can access the server over any network like LAN.

debasisdas 580 Posting Genius Featured Poster

type tnsping <database_name> at command prompt and check the response time.


ex---- tnsping orcl

debasisdas 580 Posting Genius Featured Poster

what about tnsping ?

debasisdas 580 Posting Genius Featured Poster

and how fast is the ping request

try using system / server name instead of IP.

debasisdas 580 Posting Genius Featured Poster

You need to write log for each event or each execution step if required .

debasisdas 580 Posting Genius Featured Poster

Tell me first the database is on the same machine from which you are trying to connect or on another server over LAN ?