MAS
MAS
  • 19
  • 280 112
How to create SQL Server Maintenance Plan
Learn how to create SQL Server Maintenance Plans to update/manipulate data, this can be used to update or insert or delete data in SQL. Step by steps on how to create a maintenance plan
Переглядів: 976

Відео

Learn how to write SQL update statement from SQL Select statement
Переглядів 2,9 тис.3 роки тому
Learn how to join multiple tables in SQL and then update one table from the joined tables
SQL Aggregate Functions
Переглядів 2553 роки тому
Learn how to use SQL aggregate functions, what are the rules and how to apply these rules in real life examples. Use Sum, Max, Min, Avg and filter your aggregate function using the Have clause and learn when to apply the Group By Clause
Learn How to Create SSRS Matrix Report in 15 minutes
Переглядів 1,6 тис.3 роки тому
Learn How to Create SSRS Matrix Report 1-How to write complex query using the Datepart SQL function 2-How to create the SSRS report with parameters 3-How to do conditional formatting on the report 4-How to publish the report
Learn how to write SQL Case When and IIF
Переглядів 9723 роки тому
Learn how to use Case when and IIF and the difference between them
Learn the difference between Cross Apply and Outer Apply in SQL
Переглядів 5 тис.3 роки тому
Learn how to write subqueries and use cross apply and outer apply. Also learn the difference between cross apply and outer apply
SQL export data to csv (Automatically)
Переглядів 63 тис.3 роки тому
SQLCMD -S ChangeToServerName -d ChangeToDatabaseName -E -Q "select * from [CustomerInvoices] where convert(date,invoicedate)=convert(date,getdate())" -s "," -o "D:\Result\Excel Export\DailySales.csv" Microsoft Help docs.microsoft.com/en-us/sql/tools/sqlcmd-utility?view=sql-server-ver15
SQL Inner Join Vs Left Join
Переглядів 7 тис.3 роки тому
Explanation of Inner Join vs Left Join with business example
sql division by zero error
Переглядів 3,6 тис.3 роки тому
best practices to avoid sql division by zero error using the nullif and isnull commands
How to generate Barcodes/Cards using SQL Report, Barcode SSRS report
Переглядів 6 тис.3 роки тому
How to generate a barcode report from SSRS, Barcode SSRS report Formula used in the query select (row_number() over (order by p.Product) 1) - ((row_number() over (order by p.Product) -1) % 4) [RowGroup], 1 ((row_number() over (order by p.Product) - 1) % 4) [ColumnGroup] ,p.Product ,p.Barcode from [dbo].[InventoryProducts] p
Let's Talk SQL Lesson 3, learn SQLfor beginners free
Переглядів 2613 роки тому
Inner join vs left join How to create a view how to present your data in excel
Learn how to create SQL Reports SSRS in less than 5 minutes, ssrs tutorial for beginners
Переглядів 128 тис.3 роки тому
Learn how to create SQL Reports SSRS in less than 5 minutes, ssrs tutorial for beginners
Let's talk SQL - Lesson 2, learn sql for beginners free
Переглядів 1,5 тис.3 роки тому
Learn the basics of select statement, sql tutorial for beginners Select, From, Where, inner join, Order,
Let's Talk SQL - Lesson 1, learn sql for beginners free
Переглядів 10 тис.3 роки тому
Learn how to write SQL and create your own reports, sql tutorial for beginners -Setup SQL Server To Download SQL Server Database www.microsoft.com/en-ca/sql-server/sql-server-downloads To Download Sample Data github.com/Microsoft/sql-server-samples/releases/tag/wide-world-importers-v1.0
How to use XLOOKUP in Excel
Переглядів 7753 роки тому
Learn how to use xLookup vs Using VLookup, how to add vlookup in excel 2019
Fill in excel blank cells
Переглядів 2,2 тис.3 роки тому
Fill in excel blank cells
How to Pull Data from SQL Server to excel to create your own report, excel sql query
Переглядів 31 тис.3 роки тому
How to Pull Data from SQL Server to excel to create your own report, excel sql query
How to Debug your T-SQL code,
Переглядів 7 тис.3 роки тому
How to Debug your T-SQL code,
T-SQL Left Join vs Outer Apply
Переглядів 8 тис.3 роки тому
T-SQL Left Join vs Outer Apply

КОМЕНТАРІ

  • @yourshames
    @yourshames 21 день тому

    Thanks!

  • @maxsongs5937
    @maxsongs5937 Місяць тому

    Awesome in just two min you solved my Bigger problem. thanks a lot brother.

    • @MAS777
      @MAS777 Місяць тому

      @@maxsongs5937 happy I can help 😊

  • @maxsongs5937
    @maxsongs5937 Місяць тому

    Awesome in just two min you solved my Bigger problem. Toms of thanks brother.

  • @ManuelBasurto-lt8kw
    @ManuelBasurto-lt8kw 2 місяці тому

    Very useful, thank you

  • @myabowen9696
    @myabowen9696 3 місяці тому

    This was exactly what I needed and I love that it was short and understandable.

  • @gracechew8130
    @gracechew8130 3 місяці тому

    this video is worked and very simple to follow! Thank you very much!

  • @friendsbirds2130
    @friendsbirds2130 3 місяці тому

    how can we remove ---- when its exported to csv

  • @Quoteswave2
    @Quoteswave2 5 місяців тому

    I used same process for one of my. Qurey which joins 3 tables and some where condition of invoicemonth = ‘2023-06-01’. So when i run this bat file “2023-06-01 -s “ is creating….. could u please help on this???

  • @khwajanamatullahseddiqy6999
    @khwajanamatullahseddiqy6999 5 місяців тому

    Good

  • @sarahelen1877
    @sarahelen1877 6 місяців тому

    Hello, do you know how to do the same but from SQL Server to .xls file? I mean not a .csv file. I did it in the past but I can't replicate it again :( I think it was with bcp or OpenRowSet. Thank you in advance

  • @suryasampath
    @suryasampath 6 місяців тому

    how to remove logs more than 60 days

  • @chieduagain
    @chieduagain 6 місяців тому

    what I love is straight to the point, no side talk 👍🏾

  • @diwakarmishra5986
    @diwakarmishra5986 6 місяців тому

    from where i can download this ssrs tools

  • @jonnypena7651
    @jonnypena7651 7 місяців тому

    High, im even newer on this, how I can get into the localhost website?

  • @ianluigilastra1850
    @ianluigilastra1850 8 місяців тому

    it was explained thoroughly.. the only problem was the mic :) but I really need to learn it so I had to survive my ADHD

  • @higiniofuentes2551
    @higiniofuentes2551 10 місяців тому

    Thank you for this very useful video!

  • @afzaalawan
    @afzaalawan 10 місяців тому

    Excellent simple explanation

  • @AlenirCesarGuimaraesJunior
    @AlenirCesarGuimaraesJunior 11 місяців тому

    Thanks a lot man, you really helped me a lot

    • @MAS777
      @MAS777 11 місяців тому

      Glad I can help

  • @JohnRobertLim
    @JohnRobertLim 11 місяців тому

    nice

  • @santanuchakraborty5844
    @santanuchakraborty5844 Рік тому

    Thank you, This is excellent and really useful. I have one question can we generate the CSV file without column heading and the dotted line? it will be very helpful for me. Thank you in advance.

  • @amrselim2167
    @amrselim2167 Рік тому

    how did u create the batch file :(

    • @MAS777
      @MAS777 Рік тому

      It is a text file and just change the extension to .bat

  • @Latif127
    @Latif127 Рік тому

    Looked good, thank you

  • @noahsitu8126
    @noahsitu8126 Рік тому

    is that possible that when exporting the file we include the time and date in the file name?

  • @arpitsharma1614
    @arpitsharma1614 Рік тому

    Hi, I need to execute the same scenario for teradata. Need to execute a query and save the data on csv. How I can do that please help.

    • @MAS777
      @MAS777 Рік тому

      Apologies, I did not work with teradata before

  • @inchara015
    @inchara015 Рік тому

    I'm new to sql server, May I know how you have created the .bat file?

    • @MAS777
      @MAS777 Рік тому

      Just a txt file and rename the extention

    • @inchara015
      @inchara015 Рік тому

      @@MAS777 Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : SQL Server Network Interfaces: No credentials are available in the security package What is this error for?

    • @MAS777
      @MAS777 Рік тому

      You need to specify credentials as per the video

    • @inchara015
      @inchara015 Рік тому

      I need sql server query to automatically export result into csv, is this possible?

    • @MAS777
      @MAS777 Рік тому

      Yes, make sure your credentials work and follow the video . Try an admin password

  • @gr43t
    @gr43t Рік тому

    Perfect! You make the video and put the command in the Desciption ;-) Thanks friend!

  • @lauraeli2286
    @lauraeli2286 Рік тому

    Thank you! Simple vid to address simple error!

  • @samcaseybolade5368
    @samcaseybolade5368 Рік тому

    Thanks for the video @MAS however i keep getting error. How can one fix this error when the output file produces 3 lines of these comments? Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Named Pipes Provider: Could not open a connection to SQL Server [2]. . Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..

    • @MAS777
      @MAS777 Рік тому

      Are you running the file on the same server hosting the DB, of not try that. Or make sure to use an admin user having access to both the DB and the server

    • @samcaseybolade5368
      @samcaseybolade5368 Рік тому

      @@MAS777 This is all done on my personal laptop so yes I'm the admin and also on the same server.

    • @MAS777
      @MAS777 Рік тому

      It is hard without seeing the confiiguration of your server, but try to check if the user running thr sql server is the same user in the batch file configurarion. Also try to specify the username and password in the batch file

  • @Achinta-lk9ex
    @Achinta-lk9ex Рік тому

    I am not getting the output file instead getting a file named "cast(getdate() as date). In my query i have a condition where reportdate> cast(GetDate() as date) . In sql my query is running fine

  • @samuelsicard1029
    @samuelsicard1029 Рік тому

    I think I finally get it! Thanks for explaining these joins!

  • @hudott
    @hudott Рік тому

    Thanks! Good job!

  • @apkaapnachannel742
    @apkaapnachannel742 Рік тому

    I am new one so could u tell this is the only to share the reports with the help of sql server reporting services

  • @CozBlueOcean
    @CozBlueOcean Рік тому

    Thank you so very much for this video. Very informative and simple to understand and follow. A++++

  • @confusingmaverick892
    @confusingmaverick892 Рік тому

    So concise and so clear.. thanks..

  • @thehiennguyen9275
    @thehiennguyen9275 Рік тому

    thanks for you video! can we compress to reduce storage capacity?

  • @tonyp35
    @tonyp35 Рік тому

    Thank you so much for this video! Very informative. Is there a way to place a timestamp on the file to know when it was ran, for archiving purposes?

  • @vishnusalukuti
    @vishnusalukuti Рік тому

    This is excellent and really useful. It would be nice if you could explain how to switch Windows authentication to I.D. and Password.

  • @ThatGuyCanCode
    @ThatGuyCanCode Рік тому

    Very clearly explained,, thank you!

  • @m.s.krishnamurthykitta
    @m.s.krishnamurthykitta Рік тому

    Unfortunately your link came & it became best tutorial so far for me.. I loved the way you explain #Tq brother

    • @MAS777
      @MAS777 Рік тому

      Thanks, appreciate your feedback

    • @m.s.krishnamurthykitta
      @m.s.krishnamurthykitta Рік тому

      @@MAS777try to do entire SSRS course brother in sequence...

  • @carlosbraga1902
    @carlosbraga1902 Рік тому

    Excellent ! Thank you

  • @arnabsen1131
    @arnabsen1131 Рік тому

    Msg 102, Level 15, State 1, Line 1 Incorrect syntax near 'Sales'. sir,why this error is showing please help

    • @MAS777
      @MAS777 Рік тому

      Can you please post your syntax? Or a screenshot of syntax and error?.

  • @modheenmaddy2509
    @modheenmaddy2509 Рік тому

    can we export SQL results to text file using batch file, and I have nvarchar columns to export.

  • @haseeb1712
    @haseeb1712 Рік тому

    I want to add two rows and then divide by another row eg (row 1 + row 2)/(row3) how would I go about doing this assuming division by zero is still an issue? How would I then convert that as a decimal to one point and then convert final figure to a percetnage (to 1 decimal point). Thanks so much if you can help me on this!!

    • @MAS777
      @MAS777 Рік тому

      Hi Hasseb, do you want to add rows or columns? Like how many rows your query is returning?

    • @haseeb1712
      @haseeb1712 Рік тому

      A B C 41 83 130 14 57 91 13 56 82 Please see above sample. So i would want to produce a new column as 'D' that will add A and B and divide by C. eg in data set above, top row - (41 + 83)/130 which is 0.95. The issue I am getting using your method in your video, all of the results return as 0? Is there a way I can include the decimal point that might be the issue? When I also try to query a percentage as column 'E' that will add A and B and divide by C and multiply by 100, I still get 0. eg (41 + 83)/130*100 = 95.3%. If you can help on how I can produce columns D and E that would be absolutely amazing!

    • @MAS777
      @MAS777 Рік тому

      Convert(decimal(10,1),(a+b)/nullif(c,0))

    • @haseeb1712
      @haseeb1712 Рік тому

      @@MAS777 Thanks but looks like still gives me 0.0 It basically doesn't give the value after the first decimal point. For example if we were to do : Convert(decimal(10,1),(b)/nullif(a,0)) for the last row which would be 56/13= 4.3. But on SQL it shows as 4.0? Is there a solution to this? Thanks once again!

    • @MAS777
      @MAS777 Рік тому

      @@haseeb1712 Try this Convert(decimal(10,1),(convert(decimal(10,1),(b))/nullif(convert(a),0)) you have to convert one of the factors to decimal

  • @haseeb1712
    @haseeb1712 Рік тому

    ABSOLOTE LEGEND

    • @MAS777
      @MAS777 Рік тому

      Appreciate it Haseeb

  • @munci01
    @munci01 Рік тому

    thanks a lot

  • @cencom01
    @cencom01 Рік тому

    very good video, easy to follow along. Question though, is there a way not to have the 2nd row in the csv file that has all the ------------- not to appear in the csv file?

  • @edvansilvagamer
    @edvansilvagamer Рік тому

    perfect !!!! thanks...

  • @mahisingh9888
    @mahisingh9888 Рік тому

    Good video, but you misses to inform which exact bar code font you used, where to get that etc.

  • @reyvincentalcantara5563
    @reyvincentalcantara5563 2 роки тому

    Great video.

  • @mollyoesterling7317
    @mollyoesterling7317 2 роки тому

    Hi Mas! - Great video! If I wanted to change the -E parameter to a username and password, what would the syntax look like?