Sql server® 2012 t-sql fundamentals



Download 10,93 Mb.
Pdf ko'rish
bet426/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   422   423   424   425   426   427   428   429   ...   443
Bog'liq
BookSQL

 

APPENDIX

 

Getting Started



 

 391

8. 

Make sure you are currently connected to the TSQL2012 sample database. 

Note that at any point, you can change the server and database you are connected to by 

right-clicking an empty area in the query window and then choosing Connection | Change 

Connection.

9. 

You are now ready to start developing T-SQL code. Type the following code into the query 

window.

SELECT orderid, orderdate FROM Sales.Orders;



10. 

Press F5 to execute the code. Alternatively, you can click Execute (the icon with the red excla-

mation point—not the green arrow, which starts the debugger). You will get the output of the 

code in the Results pane, as shown in Figure A-16.



FIGuRE A-16

  Executing the first query.

You can control the target of the results from the Query | Results To menu item or by clicking 

the corresponding icons in the SQL Editor toolbar. You have the following options: Results To 

Grid (default), Results To Text, and Results To File.

Note that if some of the code is highlighted, as shown in Figure A-17, when you execute the 

code, SQL Server executes only the selected part. SQL Server executes all code in the script 

only if no code is highlighted. 

www.it-ebooks.info



392  

Microsoft SQL Server 2012 T-SQL Fundamentals




Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   422   423   424   425   426   427   428   429   ...   443




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish