|
-
Dec 28th, 2010, 02:36 AM
#1
[SQL Server] Switch to Messages tab programatically
Is there any way to switch to the Messages tab programatically so that my users can see the progress of script execution and what is being printed in the Messages window?
-
Dec 28th, 2010, 07:12 PM
#2
Re: [SQL Server] Switch to Messages tab programatically
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Dec 29th, 2010, 02:59 AM
#3
Re: [SQL Server] Switch to Messages tab programatically
His problem is exactly same as mine, but no solution mentioned there.
-
Dec 29th, 2010, 05:35 AM
#4
Re: [SQL Server] Switch to Messages tab programatically
Any way to switch it to "Results to Text" programatically? That only has one window tab.
-
Dec 29th, 2010, 12:38 PM
#5
Re: [SQL Server] Switch to Messages tab programatically
 Originally Posted by szlamany
Any way to switch it to "Results to Text" programatically? That only has one window tab.
This is also worksome if there is some way, as the purpose of showing progress messages is fulfilled. Is there any such way?
-
Dec 29th, 2010, 12:42 PM
#6
Re: [SQL Server] Switch to Messages tab programatically
There is one way I know of, to switch to that window: Raise an error and print something using the RAISERROR statement.
But I don't want to use that unless there are no other options because it prints in red (like a real error message) and might scare the user running the query.
-
Dec 29th, 2010, 12:53 PM
#7
Re: [SQL Server] Switch to Messages tab programatically
 Originally Posted by Pradeep1210
There is one way I know of, to switch to that window: Raise an error and print something using the RAISERROR statement.
But I don't want to use that unless there are no other options because it prints in red (like a real error message) and might scare the user running the query.
Isn't there some way to change the severity level so that it doesn't come up red?
-
Dec 29th, 2010, 02:11 PM
#8
Re: [SQL Server] Switch to Messages tab programatically
 Originally Posted by szlamany
Isn't there some way to change the severity level so that it doesn't come up red?
If we change the severity level to low, then it would print immediately (in black like the PRINT command), but it won't automatically switch to the Results tab.
So I have
bad fonts and switch to Results tab immediately,
or good fonts but no automatic switch to Result tab.
-
Dec 29th, 2010, 02:20 PM
#9
Re: [SQL Server] Switch to Messages tab programatically
If it's going to be RED then make it large and obvious that it's not an error like
******* THIS IS THE START OF THE SCRIPT - successful progress will appear in black below *******
so that they don't wonder about it.
-
Dec 29th, 2010, 08:37 PM
#10
Re: [SQL Server] Switch to Messages tab programatically
Hmm.
This is a peculiar request.
I suppose you could try to create an add in and have a command console to execute your sp.
But i cannot say i ever tried that.
http://jcooney.net/post/2007/11/26/T...05-Add-In.aspx
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|