Click here to Skip to main content
15,895,084 members
Home / Discussions / Database
   

Database

 
GeneralRe: query inside a dataset Pin
fuel2run30-May-04 23:55
fuel2run30-May-04 23:55 
GeneralRe: query inside a dataset Pin
ekolis31-May-04 13:54
ekolis31-May-04 13:54 
GeneralRe: query inside a dataset Pin
fuel2run31-May-04 22:02
fuel2run31-May-04 22:02 
GeneralProblems porting a DataSet from SQL Server to XML Pin
Jordan Breckenridge24-May-04 6:23
Jordan Breckenridge24-May-04 6:23 
GeneralADO and Excel File Pin
bigBA24-May-04 1:45
bigBA24-May-04 1:45 
GeneralRe: ADO and Excel File Pin
-Dr_X-26-May-04 17:17
-Dr_X-26-May-04 17:17 
GeneralDBase file table names Pin
IJay24-May-04 0:27
IJay24-May-04 0:27 
GeneralProblem connecting to sql with C# and ASP.NET Pin
Aviv Halperin23-May-04 10:38
Aviv Halperin23-May-04 10:38 
Hi,

I have the following problem:

I downloaded Microsoft sql server 2000 MSDE Service pack 3 (sql2ksp3).

Then I installed it with the command line :
setup SECURITYMODE=SQL SAPWD="sa"

Next I tried to open a connection to a database from an ASP.NET using C#.
I tried to use the following to connect:
OleDbConnection conn = new OleDbConnection(@"Provider=SQLOLEDB;User ID=sa;Initial Catalog=master;Data Source=(local);");

conn.Open();

this failed with the error:Login failed for user 'sa'

then I tried this:
OleDbConnection conn = new OleDbConnection(@"Provider=SQLOLEDB;Integrated Security=SSPI;User ID=sa;Initial Catalog=master;Data Source=(local);");

conn.Open();

this failed with the error :Login failed for user 'HOME-35NVKYBV8B'
were 'HOME-35NVKYBV8B' is my local host name

Now the conn.Open(); allways gets the following error:




Please help me if you have an answer.I've read every possible doc I could find but could not find the answer!

Thanks.


avivhal
GeneralRe: Problem connecting to sql with C# and ASP.NET Pin
Grimolfr24-May-04 3:30
Grimolfr24-May-04 3:30 
GeneralConnection String for Database access Pin
Ali Alaradi22-May-04 19:55
Ali Alaradi22-May-04 19:55 
GeneralRe: Connection String for Database access Pin
Hesham Amin23-May-04 11:12
Hesham Amin23-May-04 11:12 
GeneralSQL Pin
Member 110684620-May-04 21:02
Member 110684620-May-04 21:02 
GeneralRe: SQL Pin
Hesham Amin20-May-04 21:48
Hesham Amin20-May-04 21:48 
Generaltext to ntext Pin
ShankarPS20-May-04 16:59
ShankarPS20-May-04 16:59 
GeneralRe: text to ntext Pin
Grimolfr21-May-04 4:17
Grimolfr21-May-04 4:17 
GeneralRe: text to ntext Pin
ShankarPS23-May-04 19:54
ShankarPS23-May-04 19:54 
GeneralRe: text to ntext Pin
Grimolfr24-May-04 4:36
Grimolfr24-May-04 4:36 
GeneralDataTable Pin
IamADotNetGuy20-May-04 10:35
IamADotNetGuy20-May-04 10:35 
GeneralRe: DataTable Pin
Jackiemcki25-May-04 12:39
Jackiemcki25-May-04 12:39 
GeneralSQL Server Pasword Changing Pin
Imtiaz Murtaza19-May-04 21:09
Imtiaz Murtaza19-May-04 21:09 
GeneralRe: SQL Server Pasword Changing Pin
Aryadip19-May-04 21:36
Aryadip19-May-04 21:36 
GeneralRe: SQL Server Pasword Changing Pin
Grimolfr20-May-04 1:49
Grimolfr20-May-04 1:49 
GeneralRe: SQL Server Pasword Changing Pin
mozka20-May-04 14:14
mozka20-May-04 14:14 
GeneralEncrypt stored procedure Pin
CT CHANG19-May-04 19:24
CT CHANG19-May-04 19:24 
GeneralRe: Encrypt stored procedure Pin
Grimolfr20-May-04 1:44
Grimolfr20-May-04 1:44 

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.