Showing posts with label management. Show all posts
Showing posts with label management. Show all posts

Tuesday, March 27, 2012

Embed SQL Management Studio

I'm trying to embed SQL Management Studio in an installation package and although the SQL website says that it CAN be embedded there are no instructions on HOW to embed it. I can only find instructions on embedding SQL Express edition. If anyone can help with this I'd appreciate it!

Karen

You can NOT distribute SQL Server Management Studio with SQL Server Express. That would be a license violation. And I believe that because of the EULA, Management Studio Express requires the end user to install the tool.

sql

Monday, March 19, 2012

E-mail notification issues

I just set up an SMTP email account though the Management Studio à Server à Database Mail.The test email was successfully delivered to my mail box.

Now I’m trying to test the notifications.I created an Operator with my email address, and my test job is set to email the operator when the job completes using the email account above.

However I am not receiving any emails upon the completion of the job.When I go to notification history under the Operator, there is none.

What am I missing?

Thanks a lot for your help!

The answer is simple - reboot SQL Server Agent|||

I am connecting remotely to my server. Is there a way to test an email account or do I need to log in locally? I have set up an operator and am able to set a notification on my job, but it doesn't send the email. I'm not able to see the same path you used above. Any ideas?

|||

LoveDanger wrote:

I just set up an SMTP email account though the Management Studio à Server à Database Mail. The test email was successfully delivered to my mail box.


I think I have a similar scenario here (see also SQL Server Agent Mail (SQL Server 2005 Database E-Mail) in this forum).


LoveDanger wrote:

Now I’m trying to test the notifications. I created an Operator with my email address, and my test job is set to email the operator when the job completes using the email account above.

It looks like I forgot to create an operator. What exactly is this and where can I create this? I'm using the german version of SQL Server and can't translate the term operator to a SQL Server related term i know.

Thanx in advance and best regards,
Gerald

|||I have found it now in the German version, defined an operator and now everything is working fine :-)

@.LoveDanger
Try to do the trouble shooting for database mail, i.e. have a look in the associated tables, e.g.

SELECT * FROM msdb.dbo.sysmail_allitems
SELECT * FROM msdb.dbo.sysmail_sentitems
SELECT * FROM msdb.dbo.sysmail_faileditems
SELECT * FROM msdb.dbo.sysmail_event_log

regards,
Gerald

|||

I couldn't find that because I'm connecting to an earlier version of SQL Server with a newer version.

E-mail notification issues

I just set up an SMTP email account though the Management Studio à Server à Database Mail.The test email was successfully delivered to my mail box.

Now I’m trying to test the notifications.I created an Operator with my email address, and my test job is set to email the operator when the job completes using the email account above.

However I am not receiving any emails upon the completion of the job.When I go to notification history under the Operator, there is none.

What am I missing?

Thanks a lot for your help!

The answer is simple - reboot SQL Server Agent

Email notification does not send

Hello,
re: SQL Server 2005, SP1
I set up Database Mail on a clustered server using the db mail wizard
in Management Studio. I set up an operator using a mail group. The test
email worked fine. I also restarted the SQL Server Agent on node 1 of
the cluster (twice).
Next, I set up a notification on a simple backup job to send an email
to the operator when the job completes.
However, the email is never sent out when the job completes. I have
checked the operator history and there is no history of an email ever
being sent. I also checked the current log and there are no error
messages whatsover regarding the mail not being sent. I also checked
the application log on node 1, and there is no error there either.
I have run the backup job several times now, sent myself another test
email from the server (which works fine), but for some reason the email
just won't send on job completion.
Has anyone had this problem and how to resolve it? I though restarting
the Agent would solve the problem, but it has not.
Thanks
I would check 2 things:
In Surface Configuration, is Database mail enabled
When you used the wizard to setup database mail, you had to create a
profle. Is that profile set as the "default"?
tootsuite@.gmail.com wrote:
> Hello,
> re: SQL Server 2005, SP1
> I set up Database Mail on a clustered server using the db mail wizard
> in Management Studio. I set up an operator using a mail group. The test
> email worked fine. I also restarted the SQL Server Agent on node 1 of
> the cluster (twice).
> Next, I set up a notification on a simple backup job to send an email
> to the operator when the job completes.
> However, the email is never sent out when the job completes. I have
> checked the operator history and there is no history of an email ever
> being sent. I also checked the current log and there are no error
> messages whatsover regarding the mail not being sent. I also checked
> the application log on node 1, and there is no error there either.
> I have run the backup job several times now, sent myself another test
> email from the server (which works fine), but for some reason the email
> just won't send on job completion.
> Has anyone had this problem and how to resolve it? I though restarting
> the Agent would solve the problem, but it has not.
> Thanks
|||If you are installed on a 64-bit platform, you will need to continue to use
SQL Mail and Outlook Express as your SMTP client.
How to configure SQL Server Agent to send job status notifications and alert
notifications in SQL Server 2005 64-bit editions
http://support.microsoft.com/kb/908360
Anthony Thomas

<tootsuite@.gmail.com> wrote in message
news:1162832443.165881.76790@.i42g2000cwa.googlegro ups.com...
> Hello,
> re: SQL Server 2005, SP1
> I set up Database Mail on a clustered server using the db mail wizard
> in Management Studio. I set up an operator using a mail group. The test
> email worked fine. I also restarted the SQL Server Agent on node 1 of
> the cluster (twice).
> Next, I set up a notification on a simple backup job to send an email
> to the operator when the job completes.
> However, the email is never sent out when the job completes. I have
> checked the operator history and there is no history of an email ever
> being sent. I also checked the current log and there are no error
> messages whatsover regarding the mail not being sent. I also checked
> the application log on node 1, and there is no error there either.
> I have run the backup job several times now, sent myself another test
> email from the server (which works fine), but for some reason the email
> just won't send on job completion.
> Has anyone had this problem and how to resolve it? I though restarting
> the Agent would solve the problem, but it has not.
> Thanks
>

Email notification does not send

Hello,
re: SQL Server 2005, SP1
I set up Database Mail on a clustered server using the db mail wizard
in Management Studio. I set up an operator using a mail group. The test
email worked fine. I also restarted the SQL Server Agent on node 1 of
the cluster using services manager.
Next, I set up a notification on a simple backup job to send an email
to the operator when the job completes.
However, the email is never sent out when the job completes. I have
checked the operator history and there is no history of an email ever
being sent. I also checked the current log and there are no error
messages whatsover regarding the mail not being sent. I also checked
the application log on node 1, and there is no error there either.
I have run the backup job several times now, send myself another test
email from the server (which works fine), but for some reason the email
just won't send on job completion.
Has anyone had this problem and how to resolve it? I though restarting
the Agent would solve the problem, but it has not.
Thanks
I have run into the same problem. I use sp_send_dbmail and run this step at
the end of my job:
EXEC msdb.dbo.sp_send_dbmail
@.profile_name = 'Hilary',
@.recipients = 'myemail@.myemail.com,
@.query = 'exec master.dbo.xp_fixeddrives' ,
@.subject = 'Disk Space from MyDB'
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
<tootsuite@.gmail.com> wrote in message
news:1162832367.375831.237680@.h48g2000cwc.googlegr oups.com...
> Hello,
> re: SQL Server 2005, SP1
> I set up Database Mail on a clustered server using the db mail wizard
> in Management Studio. I set up an operator using a mail group. The test
> email worked fine. I also restarted the SQL Server Agent on node 1 of
> the cluster using services manager.
> Next, I set up a notification on a simple backup job to send an email
> to the operator when the job completes.
> However, the email is never sent out when the job completes. I have
> checked the operator history and there is no history of an email ever
> being sent. I also checked the current log and there are no error
> messages whatsover regarding the mail not being sent. I also checked
> the application log on node 1, and there is no error there either.
> I have run the backup job several times now, send myself another test
> email from the server (which works fine), but for some reason the email
> just won't send on job completion.
> Has anyone had this problem and how to resolve it? I though restarting
> the Agent would solve the problem, but it has not.
> Thanks
>

Email notification does not send

Hello,
re: SQL Server 2005, SP1
I set up Database Mail on a clustered server using the db mail wizard
in Management Studio. I set up an operator using a mail group. The test
email worked fine. I also restarted the SQL Server Agent on node 1 of
the cluster using services manager.
Next, I set up a notification on a simple backup job to send an email
to the operator when the job completes.
However, the email is never sent out when the job completes. I have
checked the operator history and there is no history of an email ever
being sent. I also checked the current log and there are no error
messages whatsover regarding the mail not being sent. I also checked
the application log on node 1, and there is no error there either.
I have run the backup job several times now, send myself another test
email from the server (which works fine), but for some reason the email
just won't send on job completion.
Has anyone had this problem and how to resolve it? I though restarting
the Agent would solve the problem, but it has not.
ThanksI have run into the same problem. I use sp_send_dbmail and run this step at
the end of my job:
EXEC msdb.dbo.sp_send_dbmail
@.profile_name = 'Hilary',
@.recipients = 'myemail@.myemail.com,
@.query = 'exec master.dbo.xp_fixeddrives' ,
@.subject = 'Disk Space from MyDB'
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
<tootsuite@.gmail.com> wrote in message
news:1162832367.375831.237680@.h48g2000cwc.googlegroups.com...
> Hello,
> re: SQL Server 2005, SP1
> I set up Database Mail on a clustered server using the db mail wizard
> in Management Studio. I set up an operator using a mail group. The test
> email worked fine. I also restarted the SQL Server Agent on node 1 of
> the cluster using services manager.
> Next, I set up a notification on a simple backup job to send an email
> to the operator when the job completes.
> However, the email is never sent out when the job completes. I have
> checked the operator history and there is no history of an email ever
> being sent. I also checked the current log and there are no error
> messages whatsover regarding the mail not being sent. I also checked
> the application log on node 1, and there is no error there either.
> I have run the backup job several times now, send myself another test
> email from the server (which works fine), but for some reason the email
> just won't send on job completion.
> Has anyone had this problem and how to resolve it? I though restarting
> the Agent would solve the problem, but it has not.
> Thanks
>

Email notification does not send

Hello,
re: SQL Server 2005, SP1
I set up Database Mail on a clustered server using the db mail wizard
in Management Studio. I set up an operator using a mail group. The test
email worked fine. I also restarted the SQL Server Agent on node 1 of
the cluster using services manager.
Next, I set up a notification on a simple backup job to send an email
to the operator when the job completes.
However, the email is never sent out when the job completes. I have
checked the operator history and there is no history of an email ever
being sent. I also checked the current log and there are no error
messages whatsover regarding the mail not being sent. I also checked
the application log on node 1, and there is no error there either.
I have run the backup job several times now, send myself another test
email from the server (which works fine), but for some reason the email
just won't send on job completion.
Has anyone had this problem and how to resolve it? I though restarting
the Agent would solve the problem, but it has not.
ThanksI have run into the same problem. I use sp_send_dbmail and run this step at
the end of my job:
EXEC msdb.dbo.sp_send_dbmail
@.profile_name = 'Hilary',
@.recipients = 'myemail@.myemail.com,
@.query = 'exec master.dbo.xp_fixeddrives' ,
@.subject = 'Disk Space from MyDB'
--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
<tootsuite@.gmail.com> wrote in message
news:1162832367.375831.237680@.h48g2000cwc.googlegroups.com...
> Hello,
> re: SQL Server 2005, SP1
> I set up Database Mail on a clustered server using the db mail wizard
> in Management Studio. I set up an operator using a mail group. The test
> email worked fine. I also restarted the SQL Server Agent on node 1 of
> the cluster using services manager.
> Next, I set up a notification on a simple backup job to send an email
> to the operator when the job completes.
> However, the email is never sent out when the job completes. I have
> checked the operator history and there is no history of an email ever
> being sent. I also checked the current log and there are no error
> messages whatsover regarding the mail not being sent. I also checked
> the application log on node 1, and there is no error there either.
> I have run the backup job several times now, send myself another test
> email from the server (which works fine), but for some reason the email
> just won't send on job completion.
> Has anyone had this problem and how to resolve it? I though restarting
> the Agent would solve the problem, but it has not.
> Thanks
>

Wednesday, February 15, 2012

Editing views in 2005 Management Studio

It was always the custom in Enterprise Manager, when creating a view, to
create a dummy view, e.g.:
SELECT 1
save it, then go back and edit the view. This way, you could edit the view
definition without Enterprise Manager destroying your formatting, and you
can add comments.
Now using "Microsoft SQL Server Management Studio", there is no longer a
"Properties" option if i right-click a view name.
So where is the option to edit a vew in MS?
(Is "MS" what we're abbreviating "Management Studio" these days?)Right click the view name in Management Studio and select Modify from
the context sensitive pop-up menu. Personally I always write creation &
alter scripts for every DDL object I create - that way you don't have
some GUI changing all your formatting etc. (also it's good for getting
the DDL syntax in your head).
I think Management Studio is commonly abbreviated SSMS (SQL Server
Management Studio). It seems to be the way Microsoft have marketed the
SQL 2005 products:
SSMS - SQL Server Management Studio
SSAS - SQL Server Analysis Service
SSIS - SQL Server Integration Services
SSRS - SQL Server Reporting Services (although I've often seen this as
just RS)
etc.
Although now that I think about it I've never seen Service Broker
abbreviated and I've seen Reporting & Notification Services abbreviated
as RS & NS (in fact I can't remember ever seeing Notification Services
abbreviated SSNS). Hmmm...
*mike hodgson*
http://sqlnerd.blogspot.com
Ian Boyd wrote:

>It was always the custom in Enterprise Manager, when creating a view, to
>create a dummy view, e.g.:
> SELECT 1
>save it, then go back and edit the view. This way, you could edit the view
>definition without Enterprise Manager destroying your formatting, and you
>can add comments.
>Now using "Microsoft SQL Server Management Studio", there is no longer a
>"Properties" option if i right-click a view name.
>
>So where is the option to edit a vew in MS?
>(Is "MS" what we're abbreviating "Management Studio" these days?)
>
>|||Do you mean using the query building tool? If you just want to edit in
text, click on Script View, Create As, To New Query Window and edit it
there. I tend to do that with all objects in SSMS
----
Louis Davidson - http://spaces.msn.com/members/drsql/
SQL Server MVP
"Arguments are to be avoided: they are always vulgar and often convincing."
(Oscar Wilde)
"Ian Boyd" <admin@.SWIFTPA.NET> wrote in message
news:OWljNm4KGHA.3984@.TK2MSFTNGP14.phx.gbl...
> It was always the custom in Enterprise Manager, when creating a view, to
> create a dummy view, e.g.:
> SELECT 1
> save it, then go back and edit the view. This way, you could edit the view
> definition without Enterprise Manager destroying your formatting, and you
> can add comments.
> Now using "Microsoft SQL Server Management Studio", there is no longer a
> "Properties" option if i right-click a view name.
>
> So where is the option to edit a vew in MS?
> (Is "MS" what we're abbreviating "Management Studio" these days?)
>|||Not completely. BIDS is Business Intelligence Studio (though it could be
SSBIDS :)
----
Louis Davidson - http://spaces.msn.com/members/drsql/
SQL Server MVP
"Arguments are to be avoided: they are always vulgar and often convincing."
(Oscar Wilde)
"Mike Hodgson" <e1minst3r@.gmail.com> wrote in message
news:%23f$o554KGHA.1312@.TK2MSFTNGP09.phx.gbl...
Right click the view name in Management Studio and select Modify from the
context sensitive pop-up menu. Personally I always write creation & alter
scripts for every DDL object I create - that way you don't have some GUI
changing all your formatting etc. (also it's good for getting the DDL syntax
in your head).
I think Management Studio is commonly abbreviated SSMS (SQL Server
Management Studio). It seems to be the way Microsoft have marketed the SQL
2005 products:
SSMS - SQL Server Management Studio
SSAS - SQL Server Analysis Service
SSIS - SQL Server Integration Services
SSRS - SQL Server Reporting Services (although I've often seen this as just
RS)
etc.
Although now that I think about it I've never seen Service Broker
abbreviated and I've seen Reporting & Notification Services abbreviated as
RS & NS (in fact I can't remember ever seeing Notification Services
abbreviated SSNS). Hmmm...
mike hodgson
http://sqlnerd.blogspot.com
Ian Boyd wrote:
It was always the custom in Enterprise Manager, when creating a view, to
create a dummy view, e.g.:
SELECT 1
save it, then go back and edit the view. This way, you could edit the view
definition without Enterprise Manager destroying your formatting, and you
can add comments.
Now using "Microsoft SQL Server Management Studio", there is no longer a
"Properties" option if i right-click a view name.
So where is the option to edit a vew in MS?
(Is "MS" what we're abbreviating "Management Studio" these days?)|||"Mike Hodgson" <e1minst3r@.gmail.com> wrote in message
news:%23f$o554KGHA.1312@.TK2MSFTNGP09.phx.gbl...
> Right click the view name in Management Studio and select Modify from
> the context sensitive pop-up menu. Personally I always write creation &
> alter scripts for every DDL object I create - that way you don't have
> some GUI changing all your formatting etc. (also it's good for getting
> the DDL syntax in your head).
That doesn't work. It shows me the SQL of the view, but not the view
defintion itself. And if i modify the SQL formatting, or add comments, the
formatting is destroyed and comments are removed.
Any other suggestions?|||> Do you mean using the query building tool? If you just want to edit in
> text, click on Script View, Create As, To New Query Window and edit it
> there. I tend to do that with all objects in SSMS
i want the equivalent of Enterprise Manager's
Right-Click->Properties
i don't want to have to script the view, and then run a drop-create.
Everyone, it's okay to admit that it cannot be done in SSMS.|||> Everyone, it's okay to admit that it cannot be done in SSMS.
Sorry, just trying to figure out what you want and fit an answer to your
request.
If you are asking is the paradigm of SSMS the same as EM. No, not at all.
(And I don't like query editors at all, so I would never have used it in EM
either.) SSMS uses an editing paradigm of files, and you start one by
scripting objects to the file.
Instead of scripting it as CREATE, script is as ALTER and you can save
changes by just executing the batch.
----
Louis Davidson - http://spaces.msn.com/members/drsql/
SQL Server MVP
"Arguments are to be avoided: they are always vulgar and often convincing."
(Oscar Wilde)
"Ian Boyd" <ian.msnews010@.avatopia.com> wrote in message
news:eWlEZi$KGHA.1236@.TK2MSFTNGP10.phx.gbl...
> i want the equivalent of Enterprise Manager's
> Right-Click->Properties
> i don't want to have to script the view, and then run a drop-create.
> Everyone, it's okay to admit that it cannot be done in SSMS.
>|||"Louis Davidson" <dr_dontspamme_sql@.hotmail.com> wrote in message
news:ellSfRALGHA.2780@.tk2msftngp13.phx.gbl...
> If you are asking is the paradigm of SSMS the same as EM. No, not at all.
> (And I don't like query editors at all, so I would never have used it in
> EM either.)
i also don't like query editors, and always created and edited view DDL
directly

> Sorry, just trying to figure out what you want and fit an answer to your
> request.
...which was different from Right-Click->Design View|||Yeah, OK. Looks like the Modify menu option is about as close as SSMS
gets to the old SQLEM view properties. But you're right - it reformats
stuff (don't you hate it when tools do that!).
The easiest thing for you to do (doesn't require hand-crafting scripts)
is to just right click the view name and select Script View As | ALTER
To | New Query Editor Window. That will automatically generate the
ALTER VIEW script for you from the actual view schema (ie. it'll keep
whatever comments & whitespace were in the code). All you have to do is
change the bits you want changed and then execute the ALTER VIEW
statement. You don't even have to save the script if you don't want
(although, personally, I would always keep a record of what I changed in
the DDL). And since it's an ALTER statement it'll keep dependencies,
permissions & all those other things that tend to disappear and get
forgotten when you DROP VIEW... CREATE VIEW...
That's about as close as I can suggest to simulate the old View
Properties dialog box in SQLEM.
*mike hodgson*
http://sqlnerd.blogspot.com
Ian Boyd wrote:

>"Louis Davidson" <dr_dontspamme_sql@.hotmail.com> wrote in message
>news:ellSfRALGHA.2780@.tk2msftngp13.phx.gbl...
>
>i also don't like query editors, and always created and edited view DDL
>directly
>
>
>
>
>...which was different from Right-Click->Design View
>
>|||use Script as Alter.
EM scripts the view to the properties window using a CREATE, so it ran a
drop-create under the hood, and restored permissions.
The only thing the properties window gave you that scripting doesn't is
the permissions button.
But if you script as alter instead, you don't have to worry about losing
permissions, so that's moot.
The advantages of having the script (you can search, it's not a modal
window, it's far easier to read, you can save to a file directly from
it, etc.) far outweight the EM properties window. [i rap knuckles around
here when i see people using EM props window :)]
Ian Boyd wrote:
>
> i want the equivalent of Enterprise Manager's
> Right-Click->Properties
> i don't want to have to script the view, and then run a drop-create.
> Everyone, it's okay to admit that it cannot be done in SSMS.
>

Editing text fields using standard tools

Is there possibility to edit easily data type "text" field using standard tools such as SQL server 2005 Management Studio or Server Explorer in Visual Studio 2005 Professional. I want multiline editing akin to multiline textbox in Windows Form. I understand that something may be written/generated in Windows Forms , but I want this possibility for any table.
My pressing "Enter" to create another line for in-place editing just leaves a text cell for the tools mentioned above.
No, I am afraid they don′t. Some editors support Shift+Enter or Alt+Enter, but as far as I know these one don′t.

Jens K. Suessmeyer.

http://www.sqlserver2005.de