HighTechTalks DotNet Forums  

Connectionstring problem

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Connectionstring problem in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rajani
 
Posts: n/a

Default Connectionstring problem - 04-23-2006 , 09:13 PM






Hi friends,

I have created a database in SQL Server which is SQLServer
authenticated. The user name is : abc123 and password is : xyz123 and the
server name is SERVER(in which SQL Server is installed, W2K Server). Database
name is : kanetopdb

How can i connect from .aspx.vb file?

i have given "SERVER=server;UID=abc123;PWD=xyz123;database=kane topdb;"

But i couldnt connect?

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: Connectionstring problem - 04-25-2006 , 03:34 PM






Try these
"SERVER=server;UID=abc123;PWD=xyz123;data source=kanetopdb;"
OR
"SERVER=server;User ID=abc123;Password=xyz123;data
source=kanetopdb;persist security info=true"
or you could follow the following
1. Create a text file
2. rename db.udl
3. double click on the file
4. in the graphical interface click on provider tab Select OLEDB
provider for SQL Server click next
5. Provide the required information
6. Close the form and open the file in wordpad


Reply With Quote
  #3  
Old   
John O
 
Posts: n/a

Default Re: Connectionstring problem - 04-27-2006 , 06:54 AM




This works for me.

"server=lisa;database=master;uid=saprow;pwd=fkgfub v;"

"Rajani" <Rajani (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi friends,

I have created a database in SQL Server which is SQLServer
authenticated. The user name is : abc123 and password is : xyz123 and the
server name is SERVER(in which SQL Server is installed, W2K Server).
Database
name is : kanetopdb

How can i connect from .aspx.vb file?

i have given "SERVER=server;UID=abc123;PWD=xyz123;database=kane topdb;"

But i couldnt connect?



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.