Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: It Works! Pin
Roger Wright28-May-10 15:45
professionalRoger Wright28-May-10 15:45 
GeneralRe: It Works! Pin
Mohsiul Haque21-May-10 22:52
Mohsiul Haque21-May-10 22:52 
GeneralRe: It Works! Pin
Ravi Bhavnani22-May-10 6:05
professionalRavi Bhavnani22-May-10 6:05 
GeneralRe: It Works! Pin
PIEBALDconsult22-May-10 8:18
mvePIEBALDconsult22-May-10 8:18 
QuestionC # Pin
Make Up Forever21-May-10 14:27
Make Up Forever21-May-10 14:27 
AnswerRe: C # Pin
Dr.Walt Fair, PE21-May-10 14:55
professionalDr.Walt Fair, PE21-May-10 14:55 
GeneralRe: C # Pin
Make Up Forever21-May-10 15:11
Make Up Forever21-May-10 15:11 
GeneralRe: C # Pin
AspDotNetDev21-May-10 15:31
protectorAspDotNetDev21-May-10 15:31 
Are you trying to add and remove SQL Server users? Use System.Data.SqlClient.SqlCommand to execute commands against SQL Server and get back results. Google for "SQL Server create user", "SQL Server 2005 create login" and the like and you'll come across which commands you need to perform the SQL Server operations. You might also consider SMO, but that sometimes has problems depending on the version of SQL Server you are using. Some other tips:
*SqlConnection (a C# class available via the .Net Framework) will help you connect to the database.
*SqlConnection requires a connection string. Use SqlConnectionStringBuilder (another C# class) to create one.
*Make sure you have SQL Server Management Studio installed and you are able to browse a database using it (I am assuming you are using SQL Server since you didn't mention what database you are using).

Play around with that stuff a bit. It might take you some time to get things working, but that's all part of the learning process. Ask us when you have SPECIFIC questions, after you've already tried searching and trying things. Good luck.

GeneralRe: C # Pin
Dr.Walt Fair, PE21-May-10 15:34
professionalDr.Walt Fair, PE21-May-10 15:34 
AnswerRe: C # Pin
Wes Aday21-May-10 17:05
professionalWes Aday21-May-10 17:05 
QuestionError Icomparer interface - To sort FileInfo Pin
quanvt21-May-10 13:55
quanvt21-May-10 13:55 
AnswerRe: Error Icomparer interface - To sort FileInfo Pin
Luc Pattyn21-May-10 14:20
sitebuilderLuc Pattyn21-May-10 14:20 
AnswerRe: Error Icomparer interface - To sort FileInfo Pin
AspDotNetDev21-May-10 15:39
protectorAspDotNetDev21-May-10 15:39 
GeneralRe: Error Icomparer interface - To sort FileInfo Pin
quanvt21-May-10 17:43
quanvt21-May-10 17:43 
Question.TableName, why use that? Pin
mprice21421-May-10 11:10
mprice21421-May-10 11:10 
AnswerRe: .TableName, why use that? Pin
Pete O'Hanlon21-May-10 12:29
mvePete O'Hanlon21-May-10 12:29 
AnswerRe: .TableName, why use that? Pin
PIEBALDconsult21-May-10 14:29
mvePIEBALDconsult21-May-10 14:29 
GeneralRe: .TableName, why use that? Pin
mprice21421-May-10 14:53
mprice21421-May-10 14:53 
GeneralRe: .TableName, why use that? Pin
PIEBALDconsult21-May-10 15:21
mvePIEBALDconsult21-May-10 15:21 
GeneralRe: .TableName, why use that? Pin
mprice21422-May-10 4:00
mprice21422-May-10 4:00 
QuestionSingle Sign On question Pin
Etienne_12321-May-10 10:56
Etienne_12321-May-10 10:56 
AnswerRe: Single Sign On question Pin
Pete O'Hanlon21-May-10 12:24
mvePete O'Hanlon21-May-10 12:24 
GeneralRe: Single Sign On question Pin
Etienne_12321-May-10 13:00
Etienne_12321-May-10 13:00 
GeneralRe: Single Sign On question Pin
Pete O'Hanlon21-May-10 23:49
mvePete O'Hanlon21-May-10 23:49 
GeneralRe: Single Sign On question Pin
Etienne_12324-Jun-10 1:38
Etienne_12324-Jun-10 1:38 

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.