Showing posts with label hii. Show all posts
Showing posts with label hii. Show all posts

Sunday, March 25, 2012

Database Mirroring Setup Document.

Hi:

I am looking for a Step-by-Step document for setting up and configuring of database mirroring if one is available. I have gone through BOL and found some related documentation but want to see if a step-by-step document is available. If so can any one please direct me to the resource.

Thank you

AK

Please look at the How-to section in the BOL.

http://msdn2.microsoft.com/en-us/library/ms175059.aspx

Friday, February 24, 2012

Database Mail Configuration? Very Urgent

Hi!!!!

I'm a hobbyist Developer....

I'm would like to know how to send mails from Database Mail option in SQL Server 2005. I wil be glad if i can get a step-by-step procedure or any KB....

Moreover what i did was,

i tried to setup the database and i got the error message when i tried to send DB mails....

"An attempt was made to send an email when no email session has been established"

wil be thankful if i get help ASAP.

Thanks,

Jeffrey

Hi all....Why am i not getting any help? Seems that not even a single expert is having a look at this question.....

Please help me ASAP.......

TIA

Jeffrey

|||

I'm no expert; but, did you set up your email configuration?

I've set up my account / configuration; but, I'm getting the following error:

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2006-06-22T02:27:43). Exception Message: Cannot send mails to mail server. (The SMTP server requires a secure connection or the client was not authenticated. The server response was: authentication required - for help go to http://help.yahoo.com/help/us/sbc/dsl/mail/pop/pop-11.html). )

SBCGlobal (my ISP) says they don't support SQL Server 2005 DB Mail?

Anyone else have this problem?

|||

Hi Steve,

I'm getting the same message as you are - sure would like to know what it means!!

Dave

|||

I got hung up on this one too, and what I found was when I set up the mail account to send mail in SQL Server I had used the wrong name for the Account Name and Display Name. Many e-mail accounts have an "Alias" name to them and they may not be what the actual e-mail address looks like. So if your mail account address looks like SVCMail@.myISP.com, it may have an alias name of SVCSQLMail. It is critical that the alias name is right otherwise it won't work.

You can also try right clicking Database Mail/Send Test Message to see if the mail works at all. I have found that the mail does work quite often by using this method but then a job will fail to send mail if you try to set an alert for a job. That is pretty much how I discovered that if the Description and Alias name is wrong, it will fail to send mail under a job.

As far as the ISP not supporting SQL 2005 mail, it is probably not an issue because SQL 2005 just uses SMTP mail. There is also SQL Mail which uses the Outlook Client but that should not be an issue either as long as it is configured correctly.

Friday, February 17, 2012

Database Login fails

Hi

I can logon to my Sql server using the SSMS management tool, I am using Windows Authentication to logon to SSMS. Create a database OK, with all the necessary tables.

However when I start a VB Express app and try to connect to this database I get an error that login filed for user AMD\Larry, AMD is my PC name and my login (Larry) is the computer Administrator logon. The PC is a standalone ie not part of a domain etc.

Can anyone help?

Regards.

Larry.

Hi Larry,

to solve you problem: in SSMS, connect to your database, go to Security, Logins, New Login, Add new login as AMD\Larry and give it right to access your database.

good luck

mario

|||Are you also using integrated Authentication in VB Express. Make sure that you don′t really *type* in the user as this will be recognized as a SQL Server login. Integrated login is done in the background and don′t have be typed in somewhere (I also mention that becasue many people are always confused about that)


HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

|||Thanks for these I wil try them and get back.

Database Locking

Hi
I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
SQL Server 2000
I want to lock the Database, full/complete Database,
there are more than 100 tables so locking them one by one would not be
the ideal solution(i think)
the requirement is
i - all currently logged in users must automatically logged out
( all open connections should be closed )
ii - all transactions should automatically rolled back
iii - no user can login while EOD is running
solution plz
Regards
Wow... You could start by looking into Pausing SQL server in BOL?
Immy
<atif.aqeel@.gmail.com> wrote in message
news:1128084372.490596.85200@.z14g2000cwz.googlegro ups.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>
|||I assume you want to do this at the database level, not the SQL Server instance level. If so, use:
USE dbname
ALTER DATABASE dbname SET SINGLE_USER ROLLBACK IMMEDIATE
Do your job, and then set back to MULTI_USER
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
<atif.aqeel@.gmail.com> wrote in message news:1128084372.490596.85200@.z14g2000cwz.googlegro ups.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>

Database Locking

Hi
I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
SQL Server 2000
I want to lock the Database, full/complete Database,
there are more than 100 tables so locking them one by one would not be
the ideal solution(i think)
the requirement is
i - all currently logged in users must automatically logged out
( all open connections should be closed )
ii - all transactions should automatically rolled back
iii - no user can login while EOD is running
solution plz
RegardsWow... You could start by looking into Pausing SQL server in BOL?
Immy
<atif.aqeel@.gmail.com> wrote in message
news:1128084372.490596.85200@.z14g2000cwz.googlegroups.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>|||I assume you want to do this at the database level, not the SQL Server insta
nce level. If so, use:
USE dbname
ALTER DATABASE dbname SET SINGLE_USER ROLLBACK IMMEDIATE
Do your job, and then set back to MULTI_USER
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
<atif.aqeel@.gmail.com> wrote in message news:1128084372.490596.85200@.z14g2000cwz.googlegroup
s.com...
> Hi
> I have to run EOD i.e End of Day, a VB 6.0 Application(ADO 2.6) with
> SQL Server 2000
> I want to lock the Database, full/complete Database,
> there are more than 100 tables so locking them one by one would not be
> the ideal solution(i think)
> the requirement is
> i - all currently logged in users must automatically logged out
> ( all open connections should be closed )
> ii - all transactions should automatically rolled back
> iii - no user can login while EOD is running
> solution plz
> Regards
>