Xamarin and Maui Sql Server (SSMS) Connection

  Переглядів 35,827

Xamarin Guy

Xamarin Guy

2 роки тому

#Xamarin #XamarinForms #DotNetMaui
Part 2 : • Xamarin Forms SSMS CRU...
Source Code : xamaringuyshow.com/xamarin-for...
Join Fb Group : / 319968148553576
SSMS : docs.microsoft.com/en-us/sql/...
SQL Server : www.microsoft.com/en-us/sql-s...

КОМЕНТАРІ: 52
@user-fv5ie1il7m
@user-fv5ie1il7m 11 днів тому
THANKS YOU SOOOOOO MUCH! MEN YOU SAVED MY LIFE AHAHHAAH I'll have a celebration in your honor tomorrow
@2005Azm
@2005Azm 2 роки тому
Fantastic !! This is one of your very best tutorial !!
@JetSettR
@JetSettR 2 роки тому
Hello. Will it also work with the 'Developer' version of SQL Server?
@mdottech6502
@mdottech6502 2 роки тому
Superb way to explain , Very nice keep it up bro
@samianouar2958
@samianouar2958 2 роки тому
That's great thank you. A question if you allow: can we call a sql server SP ?
@S3Kglitches
@S3Kglitches Рік тому
sure you can
@superguitar6784
@superguitar6784 11 місяців тому
my friend do you really was saved my life with you tutorial because i was search for hours one video who can explain that like this and men , you are the best ! thanks again my friend
@rajasundaram9890
@rajasundaram9890 9 місяців тому
nice work it 🥳🥳🥳
@saeednajmddin7676
@saeednajmddin7676 4 місяці тому
Why I am getting this error: Microsoft.Data.SqlClient.SqlException Message=A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 26 - Error Locating Server/Instance Specified)
@bengalsoftware8234
@bengalsoftware8234 4 місяці тому
I have same error like you
@CaliforniaSoftware
@CaliforniaSoftware 2 роки тому
Hi Is it better to use an API? Or will this work. I can connect my maui app directly to sql db. Im not sure if it is a good design. But it means we don't need to build an API. All mobile clients can talk directly to SQL database using a connection string over internet.
@xamaringuy1951
@xamaringuy1951 2 роки тому
Yes of course :) But api are used to connect with multiple devices on multiple areas where as direct SSMS connection is confined with same place over shared internet.
@saberint
@saberint Рік тому
Never do this! This is a horrible example and is exactly what not to do. You need an API. Yes it’s more work, but here he has opened SQL to attacks and removes any business logic. You mobile app will contain the username and password to your server. 30 seconds of decompiling will give a hacker access to your database. Furthermore this is horribly expensive as each query connects and authenticates before the query can be executed. An api allows you to use a connection factory which reuses connections. Done the way he does it here, each connecting device is another connection. Honestly you could write a whole book on why not to do this.
@airtonlj
@airtonlj 2 роки тому
Gostei muito! Aguardando a continuação, seria possível enviar uma consulta e obter o resultado em um datatable? Esta mensagem é do Brasil!
@xamaringuy1951
@xamaringuy1951 2 роки тому
Yes, It's possible please wait for the next video.
@SalimAlmoslim
@SalimAlmoslim 2 роки тому
thank you very much for this tutorial
@xamaringuy1951
@xamaringuy1951 2 роки тому
Welcome 😊
@AbdulAziz-xi1lo
@AbdulAziz-xi1lo Рік тому
can you help to get the same connection in Blazor MAUI I TRIED BUT ITS NOT WORKING
@islamicstatusofficial6670
@islamicstatusofficial6670 11 місяців тому
Thanks a lot. best tutorial
@MsMalcolmX
@MsMalcolmX 2 роки тому
Why you dont show if his works?
@madraven37
@madraven37 2 роки тому
Wow, Thank you, so basically, this method is for LAN connection only which doesn't require any internet connection? This is helpful, especially in the voting system within the school only and any other use cases apply. Any chance we could get the CRUD?? looking forward to it..👌👌
@xamaringuy1951
@xamaringuy1951 2 роки тому
We can make lots of small scale apps with in the organization. And this mobile apps needs internet connection for sure as it needs sql server IP address to be connected. But the main advantage is you can visualize the database and manipulate it with your own. CRUD Is the next part. 🙂
@madraven37
@madraven37 2 роки тому
Looking forward to it, TIA..
@knad9752
@knad9752 2 роки тому
This is so underrated. You're amazing
@xamaringuy1951
@xamaringuy1951 2 роки тому
Thank you
@engadnanturki9345
@engadnanturki9345 2 роки тому
Hi how can use it with ios app
@mohsenkadm5028
@mohsenkadm5028 2 роки тому
how can i secure my connection string ??
@SureshBabu-px2yt
@SureshBabu-px2yt 2 роки тому
Shall I create APK and use in mobile
@gyanisharma1942
@gyanisharma1942 Рік тому
My machine is not working SQL connection with visual studio and xamarin
@yaser107
@yaser107 Рік тому
this not working om maui it works in xamarin forms only have you tested it on maui
@gyanisharma1942
@gyanisharma1942 Рік тому
Namaskar sir
@ferencferenc4913
@ferencferenc4913 2 роки тому
Unfortunately it does not work with iOS devices. :(
@rdvansunger5607
@rdvansunger5607 Рік тому
using System.Data.SqlClient; not working in .NET MAUI for net6.0-android
@mdottech6502
@mdottech6502 2 роки тому
Excuse Me Bro I am Getting this Error Can You Please help me to Fix this Problem Thanks A lot , I am Using With .net Maui Project.. "A connection was successfully established with the server but then an error pre-login handshake "
@gokusan6169
@gokusan6169 Рік тому
i have the same problem and did not find a solution yet.
@gyanisharma1942
@gyanisharma1942 Рік тому
Please help me
@valimaties5789
@valimaties5789 Рік тому
A lot of wrong explanations here... Hard coded strings of connection is a WRONG approach, using Open() instead of OpenAsync() (why do you use Open()????), wrong settings for SqlServer as well... I don't know what to say about your video, but definitely, it is not a good setup!
@xamaringuy1951
@xamaringuy1951 Рік тому
I respect your thought. I am getting synchronized data and want to load my large data at first then only show my UI. I agree Open Async() is what need to be used
@valimaties5789
@valimaties5789 Рік тому
@@xamaringuy1951 OpenAysnc() is the way, getting data async, not synchronously and use an animated spinner to indicate that data is being received ;) Always use Async/Await, never block the UI.
@ffs_999
@ffs_999 2 роки тому
Lol, what is practical use of connection to SSMS on mobile app ? This is no sense, you should use your local sqlite.lol
@xamaringuy1951
@xamaringuy1951 2 роки тому
The practice use case will be you will be creating Api with the sql database. Where as local SQLite.net is just for local storage of info.
@bengalsoftware8234
@bengalsoftware8234 4 місяці тому
bad
@arastunasimsek8992
@arastunasimsek8992 Рік тому
the new maui doesnt support fucking system.data.sqlclient. ı take this error always. I'm gonna break my computer ı swear !!!!! Microsoft.Data.SqlClient.SqlException: 'A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)'
@xamaringuy1951
@xamaringuy1951 11 місяців тому
For windows and iOS app I was able to connect my sql clinet in dotnet Maui but there’s the issue with android.
@arastunasimsek8992
@arastunasimsek8992 11 місяців тому
@@xamaringuy1951 when will they fix it ?
@sbjakhotya
@sbjakhotya 2 місяці тому
same error to me also, trying to figure out since 1 month but still no luck. If anyone found the answer please share
@EMREKAB
@EMREKAB Рік тому
using System.Data.SqlClient; not working in .NET MAUI for net6.0-android
@salahboual1902
@salahboual1902 Рік тому
Same here How did you fix the problem?
@rdvansunger5607
@rdvansunger5607 Рік тому
Same goes for me How Did you Fix the Problem?
@fadingserenade4365
@fadingserenade4365 Рік тому
Did you get it to work? if yes, can you tell me how'd you do it? Thanks!
@gokusan6169
@gokusan6169 Рік тому
same. but no solution yet. Recommendations like "use package Version 3.0.1 and cs parameter encrypt = false does not work.
Xamarin Forms SSMS CRUD Operations
40:17
Xamarin Guy
Переглядів 14 тис.
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Переглядів 6 млн
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Переглядів 3,8 млн
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Working with the new Microsoft.Data.SqlClient
13:26
dotnet
Переглядів 10 тис.
Add Databases to Your App with this Xamarin SQLite Tutorial
19:05
Gerald Versluis
Переглядів 36 тис.
How To Use an Existing SQLite Database with Xamarin and .NET MAUI
17:18
Gerald Versluis
Переглядів 14 тис.
SQLite.Net Database for Xamarin.Forms | Visual Studio 2019
19:57
.Net Maui | App Configuration Settings | appsettings
27:11
DotNet Real world example
Переглядів 3,1 тис.
Xamarin forms desde cero con Visual studio 2022
1:27:01
Codigo 369
Переглядів 100 тис.
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Переглядів 6 млн