Showing posts with label configure. Show all posts
Showing posts with label configure. Show all posts

Thursday, March 29, 2012

getting the list of connection strings to display in the SqlDataSource Wizard

I've added an SqlDataSource control to my web page and selected "Configure Data Source" on it. This brings up a "Choose Your Data Connection" wizard, and it asks you to select from a dropdown list of presumably pre-existing connection strings in my web.config file. However none of my connection strings will display in that dropdown list. The only thing i can do is hit the "Create New Connection" button and this adds yet another connection string to my web.config file.

I've already ran through the wizard once, created a new connection string, but when i run through the wizard again, even the new connection string - the one created by the last wizard will not appear in the dropdown list.

Any suggestions?

Jason

Hi Jason,

Are the connection strings actually appearing in the web.config file? Are they actually working - that is, if you call one of the connection strings, does it actually do what you expect? I can't offer any actual solutions to this one, but have you tried creating a new web.config file and checking if this fixes the problem? Personally, I would set up a new application just to test this, and if it works OK in the new application then perhaps something in your current application has caused the issue.

Hope this helps.

Paul

|||

Hi Paul - yes i've tried your suggestions before but nothing works. In fact, even after already running "Choose Your Data Connection" wizard (and selecting the new datasource option) to let it generate a datasource for me, and then running the wizard again to see if the previously created datasource will appear, and it doesn't.

Not a big deal i guess but a bit of a pain. I wonder if its a bug...

Jason

|||

Hi Jason,

Please be sure that you have saved the string (a checkbox for you to select) the first time you use it.

Thanks.

sql

Sunday, February 19, 2012

Getting error 22022: SQLServerAgent Error

Hi,
I'm trying to configure the mail notification on SQL Server and I'm
getting the following error "Error 22022: SQLServerAgent error: The
SQLServerAgent mail session is not running; check the mail profile
and/or the SQLServerAgent service startup account ...". PLEASE HELP!!!!!
I really don't know where to look at, what to configure. I'm an Oracle
DBA, and sometimes SQL Server DBA, I know stuff on SQL Server but not
how to configure the mail notification. So if someone could help me to
solve this issue that would be great.
Thanks in advance
Patrick
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!Hello Patrick
There are several steps in configuring SQLMail to be used with SQL and
SQLAgent. Basically SQLAgent is the scheduling engine for SQL Server and
runs as a separate service (shows up under Windows Services as
SQLServerAgent (or SQLAgent$<InstanceName> for named instances). This
service needs to be starting under a domain account which has access to the
mailbox (if using Exchange).
For more information I would advise you to look at the following articles :
263556 INF: How to Configure SQL Mail
http://support.microsoft.com/?id=263556
311231 INF: Frequently Asked Questions - SQL Server - SQL Mail
http://support.microsoft.com/?id=311231
Thank you for using Microsoft newsgroups.
Sincerely
Pankaj Agarwal
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.

Getting error 22022: SQLServerAgent Error

Hi,
I'm trying to configure the mail notification on SQL Server and I'm
getting the following error "Error 22022: SQLServerAgent error: The
SQLServerAgent mail session is not running; check the mail profile
and/or the SQLServerAgent service startup account ...". PLEASE HELP!!!!!
I really don't know where to look at, what to configure. I'm an Oracle
DBA, and sometimes SQL Server DBA, I know stuff on SQL Server but not
how to configure the mail notification. So if someone could help me to
solve this issue that would be great.
Thanks in advance
Patrick
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!
Hello Patrick
There are several steps in configuring SQLMail to be used with SQL and
SQLAgent. Basically SQLAgent is the scheduling engine for SQL Server and
runs as a separate service (shows up under Windows Services as
SQLServerAgent (or SQLAgent$<InstanceName> for named instances). This
service needs to be starting under a domain account which has access to the
mailbox (if using Exchange).
For more information I would advise you to look at the following articles :
263556 INF: How to Configure SQL Mail
http://support.microsoft.com/?id=263556
311231 INF: Frequently Asked Questions - SQL Server - SQL Mail
http://support.microsoft.com/?id=311231
Thank you for using Microsoft newsgroups.
Sincerely
Pankaj Agarwal
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.

Getting error 22022: SQLServerAgent Error

Hi,
I'm trying to configure the mail notification on SQL Server and I'm
getting the following error "Error 22022: SQLServerAgent error: The
SQLServerAgent mail session is not running; check the mail profile
and/or the SQLServerAgent service startup account ...". PLEASE HELP!!!!!
I really don't know where to look at, what to configure. I'm an Oracle
DBA, and sometimes SQL Server DBA, I know stuff on SQL Server but not
how to configure the mail notification. So if someone could help me to
solve this issue that would be great.
Thanks in advance
Patrick
*** Sent via Developersdex http://www.codecomments.com ***
Don't just participate in USENET...get rewarded for it!Hello Patrick
There are several steps in configuring SQLMail to be used with SQL and
SQLAgent. Basically SQLAgent is the scheduling engine for SQL Server and
runs as a separate service (shows up under Windows Services as
SQLServerAgent (or SQLAgent$<InstanceName> for named instances). This
service needs to be starting under a domain account which has access to the
mailbox (if using Exchange).
For more information I would advise you to look at the following articles :
263556 INF: How to Configure SQL Mail
http://support.microsoft.com/?id=263556
311231 INF: Frequently Asked Questions - SQL Server - SQL Mail
http://support.microsoft.com/?id=311231
Thank you for using Microsoft newsgroups.
Sincerely
Pankaj Agarwal
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.