Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new to IBM DB2. Got a job to migrate data from DB2 to SQL Server. Able to connect DB2 database with IBM DB2 client via command prompt. We have already migrated Oracle data to SQL server with ASP.NET SQL Bulk Copy in C#. Need to migrate DB2 data on regular basis based on daily updates. Need details on how to run DB2 sql queries in any editor just like SQL plus for Oracle or Management Studio for SQL Server. Also need information on how to sync DB2 data with Bulk Copy in C#. Thank you in advance for the answers!
2 ways I currently do this are by using an ODBC connection to the db2 db and then:
1) set up a linked server so that queries can be directly run against db2. The downside is that moving large tables is pretty slow.
2) use SSIS to move the data. These can be created directly from SQL server for simple imports and for anything requiring more complicated coding such as cleaning up the data along the way (I have to remove lots of white space char fields), I use Visual Studio to create the SSIS packages.
Both methods can be set up as jobs and run automaticaly.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 11 months ago.
Improve this question
I've created a multiple user application in WinForm and it have a database on the server which is on the other computer. So far, i set up the server database (MySql) manually and create each tables in the database manually as well. I was wondering is there a way to create (maybe an exe file) to automate the entire process?
I've did some searching on the internet but most of the answer i get are the configuration of the database which i've go through it when i did the manual set up. I developed the application and the database separately so what is related to the database in my application are the connection string only. i did managed to publish the application and now i need to find a way to publish my server database.
With mysql you cannot automate the install of the mysql software, unless you have a paid for enterprise licence or you release your software as open source under GPL.
To automate mysql installation, you can use mysql installer console.
What you can definitely automate is the deployment of your mysql data structure and the configuration of the mysql instance.
The former requires an sql script that creates the database and all other database objects (tables, indedes, views, users, etc) that you can execute as part of an install process. The latter requires overwriting or adding your settings to my.cnf / my.ini configuration files.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a C# application with SQL Server, and I have one database and lots of tables. If I want run this application from another PC, what can I do?
For example I will set up SQL Server 2012 Express on the other PC, then should I attach my database? Or anyway? Second question when I install just SQL Server 2012 Express, how can I attach my database?
SQL Server and C# are made to talk to each other across machines (client/server). To connect from a C# program to a SQL Server database you need to know the instance name (the SQL Server install where you can have more then one instance per physical machine), the database name and depending on whether you are using built in security (where you are using your sign in account on the client which has privileges on the server) or not in which case you need to provide a user name/password that does have privileges on the server.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I need to export some tables of netsuite to mssql. How can i get the table structure and will insert that data to mssql . I need to use this data for my analytics tool. Can anybody help me on this ?
If you have purchased the SuiteAnalytics Connect bundle from NetSuite, you can download and install their ODBC driver on your SQL server. Then you can create a linked server directly to your NetSuite instance.
The schema for the views that are exposed via the ODBC driver can be found in the NetSuite help under the topic SuiteAnalytics -> SunteAnalytics Connect -> Connect Schema.
We have a set of stored procedures that run nightly downloading our data into SQL server using this feature.
We purchased the SuiteAnalytics Connect add-on module for this purpose and got ODBC connection access to our data. It's not cheap, but it does provide pretty good access. You can do it via SuiteTalk / RESTlets, but you'll have to build your own, unless someone else on here has or knows of something pre-built/written to download data that way.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am trying to make an engineering program using C# language, the program requires input from the user to substitute it in the equations but the equations needs lots of constants and coefficients, for example, a frictional coefficient that varies with temperature, so I have tabulated this data in an SQL database table.
So my question: is it possible to make this table included within the application so that the program can be easily published and used so that users do not need to install SQL or any database program.
If using a database is not the right call to create such application how to do this ?
You can use SQL Server Compact for file based databases up to 4GB.
I believe what you're looking for is Visual Studio's SQL Server Project:
http://msdn.microsoft.com/en-us/library/84b1se47%28v=vs.90%29.aspx
To use it for your scenario, you would script out the database WITH data:
Generate script in SQL Server Management Studio
It probably won't load in < 5 seconds, but you can also set the db project to just be there & not load every time the project is loaded, then a dev can just re-enable the db project, publish it & disable it again.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have created a .Net application which has some functionality to store and retrieve records from SQL database.
But now I have to create a setup of this application and install it on client side. But I don't know how to do that. Plus database functionality should also work on client end I mean he should be able to add and delete the records through program.
I have to create a setup for my .net application which also consist database file all connectivity. So when I install it on client machine it should not ask for database or connectivity stuff.
If you have created SQL Server Database for your WinForms application then you would probably need to deploy same SQL Server version that you used to the clients server/PC.
Otherwise you will need to restructure your code for SQL ServerCE or whichever database you would use.
SQL Server compact download: http://www.microsoft.com/cs-cz/download/details.aspx?id=17876
You will just need to pass the .sdf file to your WinForms project and use similar syntax as for SQL Server.
E.g.
SqlCeConnection conn =
new SqlCeConnection(#"Data Source=|DataDirectory|\dbJournal.sdf");
conn.Open();
Note: That you could install only SQL Server Express which is NOT full version of SQL Server and doesn't require that much disk space and processing power.
SQL Server Express download: http://www.microsoft.com/en-us/download/details.aspx?id=29062
Recommend to see (SQL CE): .NET Window Forms local database
This article will be helpful for creating set up. For Database support, add compact edition of your database into setup file.