Not
Bu sayfaya erişim yetkilendirme gerektiriyor. Oturum açmayı veya dizinleri değiştirmeyi deneyebilirsiniz.
Bu sayfaya erişim yetkilendirme gerektiriyor. Dizinleri değiştirmeyi deneyebilirsiniz.
SSMS'de Copilot, SQL Server Management Studio (SSMS) kullanıcılarına SQL veritabanlarını yönetme ve geliştirme konusunda yardımcı olmak için tasarlanmış gelişmiş bir yapay zeka aracıdır. Veritabanı yöneticisi, veritabanı geliştiricisi, uygulama yöneticisi, iş analisti veya arada bir yerde olmanız fark etmeksizin, SSMS'deki Copilot size zaman kazandırabilir ve iş akışınızda daha verimli olmanıza yardımcı olabilir.
SQL Server, Azure SQL Veritabanı, Azure SQL Yönetilen Örneği veya Fabric'teki SQL Veritabanı'ndaki veritabanları hakkındaki soruları yanıtlamak için SSMS'de Copilot kullanın. Doğal dil (NL2SQL) kullanarak Transact-SQL (T-SQL) sorguları yazma konusunda da yardım isteyebilirsiniz. Copilot ayrıca hata iletileri, belgeleme, açıklama ve T-SQL sorgularını düzeltme konusunda da yardımcı olabilir.
Veritabanı ve ortam keşfi
Sidecar sohbetinde, istediğiniz sırayla Copilot'a herhangi bir soru sorun. Örneğin:
What version of SQL is this?
List the databases on this instance.
List server configuration settings that have been changed from the default in table format with the setting and current value
How do I find out who is connected to this database?
What is the compatibility mode for the database?
hat's the largest table in the database?
What columns store email addresses?
How many customers do we have and where are they located?
Have any SQL Agent jobs have failed in the last week and if so, which ones?
Çoklu dönüş deneyimi
Copilot'a, her bir sonraki sorunun önceki cevaba bağlı veya onun üzerine kurulu olduğu bir dizi soru sorun. Örneğin:
What is the compatibility mode for this database?
What is the latest compatibility mode available for this version of SQL?
How do I change the compatibility mode?
How will this change affect query performance?
Give me step-by-step instructions for testing a change in compatibility mode for a query without changing the compatibility mode for the entire database.
Betik oluşturma ile çok aşamalı deneyim
Copilot'a bir dizi soru sorarken, konu ile ilgili sorgular oluşturmasını da isteyebilirsiniz.
What is a database backup?
What is the difference between a full and log backup?
How do I create a database backup?
Does my database need a transaction log backup?
How do I create a transaction log backup?
Create the script to backup the database
How do I automate backups?
What should my backup schedule be if the RPO is 30 minutes?
Create the script to create SQL Agent jobs for the recommended backup schedule
Transact-SQL ile ilgili yardım için Copilot kullanma
SSMS'deki Copilot, sorgu düzenleyicisi bağlantınızı temel alan bir bağlama sahiptir, ancak şu anda sorgu düzenleyicisine doğrudan erişimi yoktur. Özellikle, boş bir düzenleyicide yazmak Copilot yardımı çağırmaz. Buna ek olarak, şu anda doğrudan düzenleyiciden okuyamaz (vurgulanmış bir şey varsa) veya buna bir şey kopyalayamaz.
Yazma Transact-SQL
Copilot, sepet sohbeti içinde sağladığınız istemi (T-SQL'e doğal dil veya NLtoSQL) kullanarak T-SQL yazma konusunda yardımcı olabilir.
Write a query to return sales information for the last week
Write a query to find all the customers who placed orders in July 2024 that totaled more than $1000 and order based on total descending
Write the query to change the ReferenceID column in the Tickets table from an INT to a VARCHAR(25)
Give me the query to find how much space is being used in tempdb
Give me the query to find all open transactions
T-SQL sorguları yazma konusunda çoklu adım deneyimiyle yardım alın
Sorgu yazma konusunda Copilot'dan yardım istemenin yanı sıra, sorguyu kendiniz yazabileceğiniz gibi sohbette sorgu geliştirme konusunda da yardım isteyebilirsiniz.
How many customers spent over $100000 in 2023?
Give me the query you ran to find that information
Take the inner query and change it to select customer ID, customer name, and total spent and order it by total spent descending
I forgot I want to include the state where the company is located in the output, please update the query to add that
Copilot'un yürütmesi için sorguları onaylama
Copilot varsayılan olarak salt okunur modda çalışır. Copilot yalnızca verileri okuyan sorguları yürütür. Ancak sohbetteki komutu kullanarak modu /rwa
olarak değiştirebilirsiniz.
Modu değiştirin:
/rwa
Copilot'dan güncel olmayan istatistikleri güncelleştirmesini isteyin:
Update statistics that are out of date
Doğru analizi yapabilmesi için Copilot'a daha fazla ayrıntı sağlayın:
List the name of statistics that haven't been updated in over a week that have more than 10% data changed for all tables in the database
Copilot istatistikleri listeler ve güncelleştirmek isteyip istemediğinizi sorar. Eğer sormazsa, istatistikleri güncellemesini söyleyebilirsiniz.
Copilot güncelleştirme için T-SQL'i sağlar ve Çalıştır veya İptal'i seçme seçeneği sunar.
Copilot'un istatistikleri güncelleştirmesini sağlamak için Çalıştır'ı seçin.
Veritabanı geliştirme için Copilot kullanma
Copilot, veritabanınızda Okuma/Yazma modunda nesneleri hızla geliştirmenize yardımcı olabilir.
Okuma/Yazma modunu etkinleştirmek için komutunu kullanın/rw
.
Modu değiştirin:
/rw
Copilot'dan veritabanı için bir tablo kümesi oluşturmasını isteyin:
We're designing a database for a fictional company called Contoso Wireless. They are similar to existing wireless companies in the sense that they sell cell phones, accessories, phone plans, chargers, headsets, and more. Can you suggest some tables that will support my application? This application will support browsing a website, creating orders, paying bills, tracking customer activity, tracking usage, etc. Please provide scripts to create all the tables you see fit and make sure each table has a clustered index for the primary key.
Copilot'dan dizin oluşturmasını isteyin:
Are there any indexes you think I need based on the kinds of queries that we will run to find data?
Copilot'dan örnek veri oluşturmasını isteyin:
We need to generate data for each of the tables. Each table should have 100-1000 rows. The data needs to be realistic (we can't repeat names, products, etc.). Can you help generate scripts for that? It's ok if the scripts are long. Variability in the data is more important than having a short script. For the customers table, use a combination of 50 first names and 50 last names and also use 30 different city/state combinations.
Diğer örnekler
Copilot'a SQL hakkında herhangi bir soru sorabilir veya T-SQL yazabilirsiniz. Yapay zeka hatalara neden olabileceğinden betikleri yürütmeden önce her zaman gözden geçirin.
List the 10 largest tables in the database based on row count in a bulleted list
What are the file sizes for this database, their file growth settings, and how much free space do they have?
What are the worst performing queries for the last hour?
What queries executed most frequently in the last two hours?
List all employes and their email address in comma delimited format
What are the top 5 products ordered the most in 2024?
Calculate the total number of orders for each company in 2023
Create a table named Offices in the Sales schema. It should have the columns officeID, office name, address, city, state, zip code, and office manager ID which is foreign key to the People table.