I successfully set up a database and the table structure using a query
utility. My Visual Studio logs in to the server using a system account that
magically exists.
but...
I can't make my web application log in to the database. I can't configure
the connection string to connect. I can't figure out how to create new
authorized user accounts that might work either. The SQL desktop engine is
a black box.
I'm stuck. How do you work this thing?
Bob
--== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==--
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
--= East and West-Coast Server Farms - Total Privacy via Encryption =--Robert Dickow wrote:
> I set up the MS SQL Desktop server engine on my computer.
> I successfully set up a database and the table structure using a
query
> utility. My Visual Studio logs in to the server using a system
account that
> magically exists.
> but...
> I can't make my web application log in to the database. I can't
configure
> the connection string to connect. I can't figure out how to create
new
> authorized user accounts that might work either. The SQL desktop
engine is
> a black box.
> I'm stuck. How do you work this thing?
> Bob
> --== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet
News==--
> http://www.newsfeeds.com The #1 Newsgroup Service in the World!
120,000+ Newsgroups
> --= East and West-Coast Server Farms - Total Privacy via Encryption
=--
---------
Dim lsConn ' ConnectionString for database
Dim ladoConn ' Database connection
' Server connection
lsConn = "Provider=sqloledb;" + _
"Data Source=<ServerName>;" + _
"Database=<DatabaseName>;" + _
"UID=<UserID>;" + _
"PWD=<Password>"
' Connect to the database
Set ladoConn = CreateObject("ADODB.Connection")
ladoConn.Open(lsConn)
---------
HTH
--
David Rowland
http://dbmonitor.tripod.com
No comments:
Post a Comment