Excel VBA Introduction Part 56.1 - Connect to SQL Server using ADO and the MSOLEDBSQL Driver

  Рет қаралды 27,110

WiseOwlTutorials

WiseOwlTutorials

Күн бұрын

Пікірлер: 43
@nuhzakir8896
@nuhzakir8896 5 жыл бұрын
As always just perfect. Thank you.
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
Thank you for watching and taking the time to comment, it's much appreciated!
@pollipudlipotty8300
@pollipudlipotty8300 3 жыл бұрын
This was great, the video helps me in my work. Thanks!
@WiseOwlTutorials
@WiseOwlTutorials 3 жыл бұрын
You're welcome, happy to hear that it helped!
@soalanmedia5523
@soalanmedia5523 5 жыл бұрын
Thanks for your video, its very helpful for my work.
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
You're very welcome! Happy to hear that you found the video useful and thank you for leaving a comment!
@KhalilYasser
@KhalilYasser 5 жыл бұрын
Thanks a lot for great tutorials.
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
You're welcome Yasser!
@dineshkumarachari8757
@dineshkumarachari8757 Жыл бұрын
can you please create video for VBA connect to oracle sql developer database with using option service name ,hostname and more
@joshuakilian3206
@joshuakilian3206 Жыл бұрын
Thank you so much for Part 56! This has helped me so much with setting up a User Frontend on Excel with SQL Server Express! I am wanting to eventually take the Database online to allow colleagues to add data and generate reports using the Excel Frontend. However, I am unsure of how to use the ADO connection to connect to this online remote server. Do you have any readings or knowledge on how to achieve this? Thank you again!
@WiseOwlTutorials
@WiseOwlTutorials Жыл бұрын
Hi Joshua! It depends which software you decide to use to host your database. I'm guessing that you're running SQL Server Express on your local machine for testing? If you're intending to continue using SQL Server Express and install it on a server machine you'll just need to adjust your connection string to point to that server rather than your local machine. If you're intending to use different database software you'll need to alter the connection string to take that into account. You can find lots of connection string examples for different software at connectionstrings.com I hope it helps!
@joshuakilian3206
@joshuakilian3206 Жыл бұрын
@@WiseOwlTutorials Thank you for such a quick response! Yes I am using SQL Server Express on my local machine for testing. Ok perfect, I was hoping it would be something simple like just changing the server name. However, I am assuming there is additional work required for setting up Firewalls on the host machine and local machines to enable the communication? Thanks again!
@WiseOwlTutorials
@WiseOwlTutorials Жыл бұрын
@@joshuakilian3206 Hi Joshua! Yes indeed, there's quite a lot of work involved in setting up your server, but at least your VBA code won't need to change much!
@joshuakilian3206
@joshuakilian3206 Жыл бұрын
@@WiseOwlTutorials Amazing! Thank you for all the input! I really appreciate it! Keep up the amazing work! Your videos are by far the best I have come across!
@WiseOwlTutorials
@WiseOwlTutorials Жыл бұрын
@@joshuakilian3206 Thanks Joshua, good luck!
@tejamarneni
@tejamarneni 5 жыл бұрын
First comment. Back on track. Yay!!!!!
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
:D excellent!
@gayathrie5903
@gayathrie5903 2 жыл бұрын
The video was really helpful. Can we connect to Azure Devops through macro? What provider should we need to use?
@WiseOwlTutorials
@WiseOwlTutorials 2 жыл бұрын
Hi! I'm sorry I don't know!
@OrangeBossa
@OrangeBossa 2 жыл бұрын
Thank you very much for these excellent tutorial videos! Got a question at 2:50, once you check the box for a library and click OK, next time when you open Excel and VBE, do you need to make the reference setting again? What about you send your Excel workbook for someone else to use, will Excel remember the setting, if not, where does it store the setting? Thanks!!
@WiseOwlTutorials
@WiseOwlTutorials 2 жыл бұрын
Hi! A reference that you set is saved in the VBA project (and therefore the Excel workbook) that you set the reference in. If you reopen the same Excel workbook the reference will still be set. If you create a new Excel workbook, you'll need to set the reference in the new VBA project. As for what happens when you send the Excel file to someone else, you may find this video helpful kzbin.info/www/bejne/p56tgZWrl5J3Zqc I hope it helps!
@krn14242
@krn14242 5 жыл бұрын
Thanks Andrew. Are you going to watch the Yankees vs Red Sox today in London?
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
Honestly, I didn't even realise that was happening! I can't claim to be much of a baseball fan I'm afraid. I do try to keep up with what's happening in the NFL although I rarely get chance to watch it these days!
@manjuanth
@manjuanth 4 жыл бұрын
Could you please help me out connection reflection session
@vinayupadhayay4004
@vinayupadhayay4004 2 жыл бұрын
How to copy from Microsoft access passsword protected table from vba
@noorsalh2822
@noorsalh2822 2 жыл бұрын
Hello, Thanks for those powerful videos. I am trying to use your method to connect to SQL server via VBA code in my FactoryTalk SE HMI. However, i am getting this error " SQL server network interface: connecting string is not valid [87]" any suggestion ?? Q2: my SQL server is not local, how can VBA communicate with the SQL ? Thanks and appreciate your support in advance.
@WiseOwlTutorials
@WiseOwlTutorials 2 жыл бұрын
Hi Noor, I've added a reply to your question on the other SQL video, I hope it helps!
@Seema-vl1gb
@Seema-vl1gb 2 жыл бұрын
CopyFromRecordset is used for vba excel. I am writing same in vba word. Pls help me how can I fetch the record
@WiseOwlTutorials
@WiseOwlTutorials 2 жыл бұрын
Hi Prachi! There's no built-in method for this in Word as far as I know. You could loop through the recordset and write each record into the Word document one-by-one. Or you could just use the CopyFromRecordset method in Excel to get the data into a worksheet quickly and then copy the Excel table into the Word document. There are some other suggestions which you might find useful here www.pcreview.co.uk/threads/copy-from-recordset-ms-word.3650874/ I hope it helps!
@rks42188
@rks42188 4 жыл бұрын
As a Indian how can I join your self paced classes.
@soalanmedia5523
@soalanmedia5523 5 жыл бұрын
God
@barrysmith6416
@barrysmith6416 9 ай бұрын
How do I write the string so the user gets an Azure AD Prompt to sign in and then allows access to the specified Azure SQL Server??? I've tried Authentication=ActiveDirectoryInteractive, but it gives me an error about not being federated...
@WiseOwlTutorials
@WiseOwlTutorials 9 ай бұрын
Sorry I don't know the answer to that one
@juanpablohorn6642
@juanpablohorn6642 4 жыл бұрын
Does the old code of part 30-32 work with the new driver?
@WiseOwlTutorials
@WiseOwlTutorials 4 жыл бұрын
Hi Juan Pablo, yes the MSOLEDBSQL Driver allows you to use the same techniques described in the earlier videos.
@juanpablohorn6642
@juanpablohorn6642 4 жыл бұрын
@@WiseOwlTutorials Thanks a lot Andrew! I've been following the whole VBA Introduction playlist and I've learned so much. So thanks again! Your content is great!
@WiseOwlTutorials
@WiseOwlTutorials 3 жыл бұрын
@@juanpablohorn6642 Thanks Juan Pablo, really pleased to hear that you found the VBA videos helpful, thanks for watching!
@jayjayf9699
@jayjayf9699 5 жыл бұрын
I have a question; do you think VBA will become obsolete? Because I don't want to spend a lot of time learning , and find out time has been wasted.
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
In the short to medium term, no, definitely not. Even if it does, the general programming skills you'll pick up by learning VBA will be transferable to other languages. I learnt BASIC in the 1980s and that's about as dead as languages get, but the general principles are still very much the same in modern languages.
@jayjayf9699
@jayjayf9699 5 жыл бұрын
@@WiseOwlTutorials thanks, i'm so confused in my career direction, I think of booking my self in to one of your London courses, I've graduated in mathematics a while ago, and was a data analyst for a while, not sure if I want to become an actuary as I heard they use VBA a lot, same as a pricing analyst. what other languages would be easy to learn after picking up the concepts from VBA?
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
Indeed, you'll find VBA used in plenty of financial roles (we do a fair amount of VBA training across a range of departments at PwC for example). After VBA you'll find the same basic concepts (along with many more advanced ones) in pretty much any other object-oriented language. VB.NET would be an obvious choice although will provide perhaps fewer opportunities - Visual C# would be my choice as it's more widely used. If analysis is your thing then maybe Python or R. Bear in mind that I'm not a careers advisor so take all this with a pinch of salt. Maybe try looking for some job listings for a particular role and see what skills they're asking for. Best of luck with whatever you choose!
@carlitos4007
@carlitos4007 2 жыл бұрын
Is compatible con TLS 1.2?
@WiseOwlTutorials
@WiseOwlTutorials 2 жыл бұрын
I'm sorry I don't know!
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 2,8 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 6 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 139 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 6 МЛН
Excel VBA Introduction Part 56.6 - ADO Commands and Parameters
55:25
WiseOwlTutorials
Рет қаралды 10 М.
Excel VBA Introduction Part 35 - Class Modules
59:32
WiseOwlTutorials
Рет қаралды 158 М.
Step-by-Step Data Migration: Excel to SQL Server with Power Automate Flow
17:33
Passing Parameter Values from Excel to SQL Server
21:47
Anthony Smoak
Рет қаралды 32 М.
Connect to Microsoft SQL Server using VBA
6:36
SimpleExcelVBA
Рет қаралды 13 М.
Connect Excel To SQL Server Using VBA/Macros
4:33
codewithvb
Рет қаралды 840
Use Excel to Connect to SQL Server Data
13:51
Anthony Smoak
Рет қаралды 117 М.
Excel VBA Introduction Part 54.1 - The IIf Function
22:37
WiseOwlTutorials
Рет қаралды 15 М.
Excel VBA Introduction Part 56.5 - Basic ADO Commands
37:21
WiseOwlTutorials
Рет қаралды 8 М.
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 2,8 МЛН