Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2006, 02:59 PM
Authorized User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to alirezaaali
Default Connect to SQL Sever in a local computer

Dear All
how can I connect to a database in SQL SERVER 2000 in a local computer
please help me

__________________
I Really Love to learn ASP
 
Old August 11th, 2006, 04:22 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Maybe this helps??

http://www.catb.org/~esr/faqs/smart-questions.html

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old August 13th, 2006, 01:35 AM
Authorized User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to alirezaaali
Default

I did not get ur mean!!!!!!!
mybe i am asking wrong question?
i say it like this
I wanna connect to a sql server 2000 data base with asp pages but i cant
how can i connect?????

 
Old August 13th, 2006, 05:20 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, that's what I was trying to say. You need to ask better questions to get good answers....

Still, you may need to provide more information. What is it exactly what you're having problems with? Don't you know where to start? Don't you know how to build a proper connection string? Don't you know how to setup SQL Server? Don't you know how to write ASP pages? And so on and so on. We can't guess it so you have to tell us.

Tell us what you already do know, what you don't know and what you're having problems with. Also, tell us what you have already done to figure this out yourself (Google, books and so on) You can't expect us to write a full-blown beginners guide to ASP with SQL Server, only to find out that wasn't what you were asking for... ;)

In short: read the article I linked to and follow its recommendations...

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old August 13th, 2006, 02:54 PM
Authorized User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to alirezaaali
Default

i installed SQL SERVER and make this
SET objConn=Server.CreateObject("ADODB.Connection")
conStr="Provider=SQLOLEDB;data Source=(local);Initial catalog=testdb;user ID=alireza;Password=12345;"
objConn.open conStr
name=REQUEST.FORM("name")
MAIL=REQUEST.FORM("MAIL")
COMMENT=REQUEST.FORM("COMMENT")
STRSQL="INSERT INTO CONTACT (NAME,E_MAIL,COMMENT) VALUES('"&name&"','"&MAIL&"','"&COMMENT&"')"
SET RS=objConn.EXECUTE(STRSQL)

in asp page
but when i run this it gives me this error
Microsoft OLE DB Provider for SQL Server (0x80004005)
Login failed for user 'alireza'. Reason: Not associated with a trusted SQL Server connection.
/irinventory1/CONTACT.asp, line 3

do u get it now



 
Old August 13th, 2006, 03:05 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you use Google for this??

The first or second hit brings you here:

http://support.microsoft.com/kb/889615/en-us

You probably want to go for the option of "Windows account with insufficient permissions" and look here as well:

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=287
http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=290

I don't want to sound rude or unfriendly, but I guess you also need to reread the article I linked to earlier.

Not only are you cross-posting your question here without a good reason, but you also ask questions that you can solve yourself in a split second using Google.

There's nothing wrong with asking questions here, just as you don't try to let us do your work...

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old August 14th, 2006, 05:27 AM
Authorized User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to alirezaaali
Default

thansk







Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the all user name of local computer? fany_han Pro VB.NET 2002/2003 0 June 6th, 2006 11:10 PM
Can't connect to SQL server 2000 in local PC shalim SQL Server 2000 1 November 24th, 2005 01:09 AM
How to connect to sql sever using servlets method Servlets 1 May 18th, 2005 06:17 AM
How to Flush out Cache on my local computer bekim VB.NET 2002/2003 Basics 1 June 16th, 2004 08:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.