Click here to Skip to main content
15,921,179 members
Home / Discussions / C#
   

C#

 
GeneralRe: Add reference problem ? Pin
Kash31-Aug-05 23:34
Kash31-Aug-05 23:34 
GeneralRe: Add reference problem ? Pin
Dave Kreskowiak1-Sep-05 1:33
mveDave Kreskowiak1-Sep-05 1:33 
GeneralRe: Add reference problem ? Pin
Kash1-Sep-05 1:46
Kash1-Sep-05 1:46 
Questionremote database connection question Pin
theStorminMormon31-Aug-05 4:39
theStorminMormon31-Aug-05 4:39 
Answermy code doesn't really have smileys in it Pin
theStorminMormon31-Aug-05 4:42
theStorminMormon31-Aug-05 4:42 
AnswerRe: remote database connection question Pin
Susan Hernandez31-Aug-05 14:08
Susan Hernandez31-Aug-05 14:08 
GeneralRe: remote database connection question Pin
theStorminMormon31-Aug-05 14:44
theStorminMormon31-Aug-05 14:44 
AnswerRe: remote database connection question Pin
Susan Hernandez31-Aug-05 15:09
Susan Hernandez31-Aug-05 15:09 
OK so I'm going to attempt to answer what I can, and I would welcome any rebuttals from anyone with conflicting information. I am pretty much a newbie, and all I can offer are suggestions to get you started. So forgive me if I get too basic.

It looks like your first job is to figure out what security you need to connect to your SQL Server remotely, forgetting your code. Just figuring out what credentials you need, and in what context, will help you figure out what to put in your code.

First of all, "Integrated Security" is to say "Windows Authentication", or, taking the credentials of whomever is logged in, and passing those credentials automatically. So if I'm logged in locally to MYCOMPUTER, my credentials being passed would be UserName: MYCOMPUTER\SueH Password:SuesPassword. If I'm logged into the domain MyDomain, my credentials being passed would be MyDomain\SueH Password:SuesPassword.

SQL Server Authentication is the other choice, which is to say, give me a User Name and Password. You have to set up this name and password in SQL Server, through Enterprise Manager.

To get to Enterprise Manager, select All Programs -> Microsoft SQL Server -> Enterprise Manager. This should be installed on the machine where your database resides.

When you bring up Enterprise Manager, you will want to expand the database in question. Drill through until you see the folder for Security, and check out Logins. That's where you want to put your security. If you just want to pass in a name and password through SQL Server auth, just type in Name for the username; however if you want a domain account to have access, don't forget to type in the username as Domain\User such as MyDomain\SueH.

Next, if you want to enable your SQL Server to accept SQL Server authentication and not just integrated security, right-click on the database in question, and select Properties. Go to the Security tab, and choose "SQL Server and Windows" instead of "Windows Only". CAUTION: If you are not the database administrator, I would highly recommend you consult with them. Screwing around with security can leave holes all over the place if you're not careful.

For each login you want to give access to, you can right-click on the login and select Properties, and it will allow you to "lock down" each login to the level of security you want the application to use. With a little investigation, you can lock down an account to only the databases, tables, views, and sprocs you want, and even read-only I think.

Once you are a little more familiar with the login process, you can look at how best to integrate your code with it. Try logging in from Query Analyzer (another tool in the SQL Server folder) using different methods, and see which accounts have which types of access.

Good luck, hope any of this helps.
Sue
Generalcan't find Enterprise Manager Pin
theStorminMormon1-Sep-05 2:08
theStorminMormon1-Sep-05 2:08 
GeneralRe: can't find Enterprise Manager Pin
Susan Hernandez1-Sep-05 5:32
Susan Hernandez1-Sep-05 5:32 
GeneralRe: can't find Enterprise Manager Pin
theStorminMormon1-Sep-05 6:07
theStorminMormon1-Sep-05 6:07 
GeneralRe: can't find Enterprise Manager Pin
Susan Hernandez1-Sep-05 5:36
Susan Hernandez1-Sep-05 5:36 
GeneralRe: can't find Enterprise Manager Pin
theStorminMormon1-Sep-05 6:10
theStorminMormon1-Sep-05 6:10 
GeneralRe: remote database connection question Pin
Susan Hernandez31-Aug-05 15:20
Susan Hernandez31-Aug-05 15:20 
GeneralRe: remote database connection question Pin
theStorminMormon1-Sep-05 1:37
theStorminMormon1-Sep-05 1:37 
AnswerMore info on MSDE Pin
Susan Hernandez1-Sep-05 7:35
Susan Hernandez1-Sep-05 7:35 
QuestionGetting CMYK colors from bmp Pin
yarns31-Aug-05 4:19
yarns31-Aug-05 4:19 
AnswerRe: Getting CMYK colors from bmp Pin
Niklas Ulvinge31-Aug-05 8:10
Niklas Ulvinge31-Aug-05 8:10 
GeneralRe: Getting CMYK colors from bmp Pin
Dario Solera31-Aug-05 8:54
Dario Solera31-Aug-05 8:54 
GeneralRe: Getting CMYK colors from bmp Pin
Niklas Ulvinge31-Aug-05 8:57
Niklas Ulvinge31-Aug-05 8:57 
GeneralRe: Getting CMYK colors from bmp Pin
Dario Solera31-Aug-05 9:29
Dario Solera31-Aug-05 9:29 
GeneralRe: Getting CMYK colors from bmp Pin
Niklas Ulvinge31-Aug-05 9:33
Niklas Ulvinge31-Aug-05 9:33 
GeneralRe: Getting CMYK colors from bmp Pin
Dario Solera31-Aug-05 9:41
Dario Solera31-Aug-05 9:41 
AnswerRe: Getting CMYK colors from bmp Pin
Andrew Kirillov31-Aug-05 9:01
Andrew Kirillov31-Aug-05 9:01 
QuestionEnterprise Library Data Block - ExecuteNonQuery method with rows affected as return value Pin
Member 106086631-Aug-05 4:14
Member 106086631-Aug-05 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.