connection to external MySQL in VB - mysql

I am able to create a connection string to query the database from an external network however am unable to create a connection via new data source and therefore a dataset in order to populate a data grid view using the external information.
I have made it so that if pc name = name of dev pc it uses local server name to connect, otherwise it uses external IP.
Is there a way to create a connection for the external connection from the dev computer as its not possible to test connection and therefore gets error that its unable to connect to specified MySQL host
When inputting data into a data grid view a connection needs to be made by assigning that grid view a source. These sources come from the datasets created from the connection string by going to project, add new data source. Because the dataset needs to be accessible externally I need to create a new connection string through add new data source. Because the dev computer and database are on the same computer I cant create the connection string using that method and therefore cant create the dataset to populate the data grid view.
Thanks in advance

You are trying to solve the wrong problem here. Just create your data source to the local database normally. The connection string will be stored in the config file. When you deploy the application, you deploy the config file as well and you simply modify the connection string in it. How do you think developers create applications for customers that use completely different databases?

Related

SSIS Connection Manager - Use files with Different Names, same structure

i am getting two text file having same structure with different name every time.
and i need to load the file everytime to table. how can we configure our connection manager
to load data from different file name to a table. Please any one suggest.
You can use a FileName variable in your Flat File Connection Manager's ConnectionString property and dynamically set it to the different name(s) and achieve this.
Here's a detailed article that shows you step-by-step on how to accomplish this.
SSIS - Dynamically set Flat File Connection Manager

Cannot open .accdb files because Access looking for hard-coded path

I have received a few .accdb files from a client, and I am trying to open them in Microsoft Access 2013. The files seem to open correctly, but whenever I click on any of the tables or queries on the left I get the following error message:
C:\[hard-coded path on client's computer] is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
Now, I know that the path does not exist on my computer. But why is Access looking for a hard-coded path on another person's computer? And how can I access the tables and queries in Access?
Additional question: Is there an easy way to import the data to SQL Server instead? I read a couple of posts about importing data from Access to SQL Server, but apparently the SQL Server Import and Export Wizard is expecting a file of a different format, not .accdb.
Thanks in advance.
You need to get the back-end database file from your client. All the tables are stored there. Once you receive it, save it at a convenient location on your computer and use the "Linked Table Manager" on the "External Data" tab in the .accdb you already have. That will allow you to update the table links for the current location of the back-end database file on your system.

How to get the data from MysqlDataReader in C# into a .html file

I have created an Empty website in Visual studio 2012.
I have created a class for MySQL data connection where i have written code for establishing connection and query string..
Then there is index.html file in which I have to display database table data.
How to do this?
Please provide a sample for above scenario.

Dynamic ConnectionString in Connection Manager (OLE DB)

I have a local database table that contains 50+ external data sources from which I can build a connection string. I am currently trying to setup SSIS to dynamically build connection strings from this table and pass them to the connection manager. I have successfully set a variable and assigned this variable to the ConnectionString expression property in Connection Manager.
I then use an OLE DB source object to copy a table from this source to our local database. The problem is that if the connection string is not set at design time I get validation errors for the OLE DB object.
If I manually set the connection string property it works fine, but that defeats the perpose of creating the dynamic connectionstring variable.
The idea here is to have the dynamic partion detect what machine it is running from and build the proper string (DEV, UAT, QA). I also do not want these connection strings in a dtsConfig file.
I took a look at this: http://www.simple-talk.com/sql/ssis/working-with-property-expressions-in-sql-server-integration-services/, but it does not have any solution for my situation.
I just found the solution after reading the first line of that error "Package Validation Error" I went to the package properties and changed DelayValidation to True.
I guess asking questions here really does help you find your own solution.

SSRS Dynamically change Datasource connection String

I want to modify the connection String of a Shared Data Source on a report Server. the reason is, every week we deploy new data on the server, so I am planning to deploy new database, test it and modify the datasource so that it than connect to new database, then remove the old database.
Can anyone help me in the regards.
I tried to use this post: Updating Shared data source connection string programmatically
but I can not create ReportingService2005 object as dll is missing to which this object points.
Thanks
ReportingServices2005 is not a dll, it's a webservice
The URL is formatted as below for most 2005 instances:
https://<<Report Server Name>>/ReportServer/ReportService2005.asmx
If you add the web reference the solution you have should work
An alternative to creating a custom application to do this is to use the rs.exe utility to execute the code as a script.
Scripting with the rs Utility and the Web Service