I using visual studio 2005 and SQl server 2005, and every thing run will. when i installed Visual studio 2008 and make code for connection to sqlserver 2005 an error box raise shows this error:
system.data.sqlclient.sqlexception login failed for user 'DomainName\User' ... .
Any body have an idea to solve this problem. thanks in advanced
What is the connection string.
the username and password which are given in the connection string is wrong..!
This is a basic error.
type the user name and password in the sql server management studio..!
try this link for connection strings..! http://www.connectionstrings.com/[^]
Why Do Some People Forget To Mark as Answer .If It Helps.
I told you same code exactly was written in visual studio 2005 , and successfully make a connection. there is no error in my connection string. by the way, the security type is integrated security=true. and what you told me about username and password it is true, i mean it doesn't work in sql server management studio. so any idea.
when the end dates comes before ten days we have to remind him that your contract is left for 10 days only. for every 2 days he should get the reminder . when the date ends then he should get the message that you are not in contract how to do this.
There are several ways to accomplish this Like
-Create a windows service which check the databse and send the mails accordingly to all.
- Create a exe which which check the databse and send the mail and schedule this exe to a specific time daily in windows scheduler.
Please follow the following steps
-Develop a console Application which will do the following things
-- Connects to DB and get the list of all the recipients where you need to send the reminder mail.This you can calculate with the help of enddate.This list you can prepare by C# also.Do as per you convenience.
-- Create/get a mail format that is to be sent the reciepients.
-- Loop all the reciepients, update the subject and mail body according to the reciepient and send mail one by one.
-- Create a task in windows scheduler,which will execute your exe at regular interval.
Please let me know if you face problem at any step.
i have one problem in my web application,i have two layouts.
iam giving user can change the header colors and font size in the css.but how to save user changes colors and font size.. and where ?
give me information or give url's..
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
I want to get the index of the row where the button is clicked.
Please note that I am using EventArgs, not GridViewCommandEventArgs, since with GridViewCommandEventArgs nothing is happening, once the button is clicked.