|
Now, it is a matter of whether or not he could implement such a tool if he really needs to do offline transfers of data through USB or removable media. I can only imagine the fun in doing version control on the records being transferred between the databases. Time stamping the rows, dealing with locks on both ends, etc.
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
fatemehsoleimani wrote: there are not methoad to transfer data in offline mode
No! As Pete and Dave have said, you need a network connection of some sort to have the two computer transfer information. Now, I am the THIRD person to say this. What part of it do you not understand?
fatemehsoleimani wrote: sql server directly with export data might transfer data to server in offline
Only way would be through a removable disc media. This would entail writing the local database data to a file, and having some application on the server read this file.
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
thanks for guide i am understand that i dont might transfer in offline.
i am need how to transfer data bulk in file in c#?
very very thanks for guide .
i am need example code for this do.
please frther guides me.
best regards
|
|
|
|
|
If both your servers are accessible from the same network that you're connected from then you can use sql import/export wizard
|
|
|
|
|
Does anyone know what could be wrong here:
Using Odbc to connect to a MySQL database.
Driver={MySQL ODBC 5.2 Driver};Server=[server url];Port=3306;Database=[dbname];User=[usrname];Password=[pwd];Option=3;
I checked the datasource (64 bit, the 32 bit doesn't seem to have a driver) and it looks ok. The only difference is the driver in the Data Sources says: "MySQL ODBC 5.2 Unicode Driver", but I tried that too (and the ANSI version as well).
I always receive the error:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I googled this, but nothing worked so far.
Additionally I tried the OleDb version with this stuff: http://dev.mysql.com/downloads/connector/net/[^], but that doesn't work either with this connection string.
(Provider=MySQL Provider;Data Source=[servername];User ID=[usrname];Password=[pwd];Initial Catalog=[dbname];) The driver is "activated".
The parameters I pass are correct and MySQL Workbench is working as well as the ODBC connection.
The code is pretty robust by know and PostgreSQL ODBC works, so I'm pretty sure it's not the code (although you never know.)
Does anyone have an idea?
thanks!
[SOLUTION]
My mistake, I was under the impression that the provider installed OleDb support, but in fact it installs an entire new provider (MySql provider). When interfaced with that it looks like it's working.
[\SOLUTION]
modified 13-Jan-14 9:27am.
|
|
|
|
|
Thanks for marking it solved!
Never underestimate the power of stupid things in large numbers
--- Serious Sam
|
|
|
|
|
can someone help me with finding complete information about the printer that is connected to the network (number of pages printed ,number of pages copied by whom and at what time). My network setup, there is a print server ,2 network printers on the network.
I m new to programming and I need to submit this project ASAP
|
|
|
|
|
And what have you tried? Where are you stuck?
Never underestimate the power of stupid things in large numbers
--- Serious Sam
|
|
|
|
|
|
hi ,
i dont english good .i will import data from excel to c# win application and transfer data to sql. but i can't .i will import data from excel(some columnsnot all) to grid and insert bulk to sql .i am low level .please help .
best regards.
|
|
|
|
|
|
very thanks for your help i will study your link
best regards
|
|
|
|
|
i have all result that i want in access database and i will to display to user in their real values in datagridview that i will generate.. any one can give me a example to code that i must use.
|
|
|
|
|
|
Hello,
I have imported a CSV file into SQL, the wizard has added this as a new table.
I am trying to run a SQL Statement to insert the data from the imported table into the one I need to use in the new data table.
However I am getting the following error.
Collapse | Copy Code
Msg 2627, Level 14, State 1, Line 4
Violation of PRIMARY KEY constraint 'PK_Customer'. Cannot insert duplicate key in object 'dbo.Customer'. The duplicate key value is (105).
The statement has been terminated.
This is my statement:
Collapse | Copy Code
INSERT INTO dbo.Customer
(custID,lastName,firstName,title,address1,address2,address3,postCode,email,fax)
SELECT ACCOUNT,SURNAME,FORENAMES,TITLE,ADD1,ADD2,ADD3,POSTCODE,EMAIL,FAX
FROM dbo.[NCCUST CSV FORMAT PFS 9.1.14];
Any pointers would be great Smile | :)
Thanks
|
|
|
|
|
Well, the error says it all. There are obviously 2 customers with the value 105 in the ACCOUNT field in the 'CSV' table. You need to either remove the Primary key restraint on dbo.customer (not recommended) or remove one of the customers in the 'CSV' table with ACCOUNT 105.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
I know that you have had a great answer from Wayne, but you would better posting SQL questions next time with the correct forum Database[^]
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Hi dudes, how can I get HotSpot and Size values of any mouse cursor, globally?
Following code works only in my own application:
Cursor.Current.HotSpot.ToString();
Tip for Windows API?
Without answer on internet or others forum...
|
|
|
|
|
|
|
Check out http://npoi.codeplex.com/[^]
You'll have to write some code to interface between your grid(s) and NPOI but in the end it works like a charm.
NPOI does support multiple sheets.
|
|
|
|
|
Member 10508431 wrote: any one have a clue ? Sounds like you'd expect a "no".
The datagridview is there to display data; it does not know about formats. If you want to save your data in Excel, you'd best search for some examples on writing data to Excel.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hello!
I was having some trouble with this error, but i added the command, and now i receive another error. Please, check out my code:
protected void btnAdd_Client(object sender, System.EventArgs e)
{
SqlConnection con = new SqlConnection(@"Data Source=JOHN-PC\SQLEXPRESS;Initial Catalog=subiect1;Integrated Security=True");
try
{
con.Open();
SqlCommand command = new SqlCommand("SET IDENTITY_INSERT Clienti ON");
command.ExecuteNonQuery();
SqlCommand cmd = new SqlCommand("insert into Clienti(ID, Nume, Prenume, Data_Nasterii, Adresa_mail) values(@ID, <a href="/Members/nume">@Nume</a> @Prenume, @Data_Nasterii, @Adresa_mail)", con);
cmd.Parameters.AddWithValue("@ID", txtID.Text);
cmd.Parameters.AddWithValue("@Nume", txtNume.Text);
cmd.Parameters.AddWithValue("@Prenume", txtPrenume.Text);
cmd.Parameters.AddWithValue("@Data_Nasterii", txtDataNastere.Text);
cmd.Parameters.AddWithValue("@Adresa_mail", txtAdresamail.Text);
int count = cmd.ExecuteNonQuery();
if (count == 1)
lblMsg.Text = "Clientul [" + txtID.Text + "] a fost adaugat!";
else
lblMsg.Text = "Clientul nu a putut fi adaugat!";
}
catch (Exception ex)
{
lblMsg.Text = "Error --> " + ex.Message;
}
finally
{
SqlCommand command = new SqlCommand("SET IDENTITY_INSERT Clienti OFF");
command.ExecuteNonQuery();
con.Close();
}
}
This is a function which adds new clients in my local database. As you can see, i placed the set_identity commands before and after the actual adding client code. What do i miss here?
|
|
|
|
|
Member 10513597 wrote: now i receive another error
There's a problem with my car. How do I fix it?
We can't read your mind, and we can't see your screen. If you don't tell us what the error is, we can't help you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Well, i provided the code and i asked you to look over it, maybe you discover something wrong, which i haven't seen before. That was the main purpose of my post.
|
|
|
|