Click here to Skip to main content
16,015,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I create app and all work fine.
Need to replace string instead of local database to be cloud database
Data in table database is the same.

New string is:

Data Source=94.251.1.1,1433;Initial Catalog="BCC";User ID=admin;Password=admin


What I have tried:

My database data:

C#
SQLiteConnection con;
        public SQLiteConnection GetConnectionWithCreateDatabase()
        {
            string fileName = "sampleDatabase.db3";
            string documentPath = System.Environment.GetFolderPath
                   (System.Environment.SpecialFolder.Personal);
            string path = Path.Combine(documentPath, fileName);
            con = new SQLiteConnection(path);
            con.CreateTable<Employee>();
            return con;
        }
Posted
Updated 8-Sep-23 9:57am
v3
Comments
Richard Deeming 8-Sep-23 3:59am    
I trust that's not your real publicly-accessible SQL Server connection string you've just posted to a public forum?

And if that's the real credentials, then you should change the password ASAP to something that wouldn't be guessed in the first 30 seconds. :)
Stylus STYLUS 8-Sep-23 4:08am    
Data are fake. Just for example
CHill60 8-Sep-23 4:39am    
What is your actual question?
Stylus STYLUS 8-Sep-23 4:51am    
Instead local database need to replace cloud database
This is data
Data Source=94.251.1.1,1433;Initial Catalog="BCC";User ID=admin;Password=admin
Richard MacCutchan 8-Sep-23 5:31am    
Yes, you already said that. So what is the actual problem you are having?

1 solution

It's not clear at all why you are having a problem - if you could type in the original connection string then you can overtype it with your new one.

Perhaps one of these resources will help you Google for Xamarin edit connection string[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900