|
-
Sep 10th, 2006, 01:42 AM
#1
Thread Starter
Junior Member
MS SQL Server Exprs - Connection via IP adress ?
I've got Microsoft SQL Server EXPRESS and have a .mdf file (SQL file).
My question is; (1) how do I connect this .mdf file to the Express server so that I can connect to the server externaly elsewhere in the network from an IP adress?
Now I only can connect to the file if it's placed locally on my harddrive, but this database will be used from different computers in the network, and I want the server to handle all these connection.
(2) Also, the SQL server says the login/password is incorrect, how do I set the login/passord on the Express server ?
-
Sep 11th, 2006, 04:31 AM
#2
Re: MS SQL Server Exprs - Connection via IP adress ?
1) See http://www.connectionstrings.com/ on how to create the apropriate connection string.
2) This example changes the password for the login Victoria to ok.
EXEC sp_password NULL, 'ok', 'Victoria'
Jorge
"The dark side clouds everything. Impossible to see the future is."
-
Sep 12th, 2006, 03:15 PM
#3
Thread Starter
Junior Member
Re: MS SQL Server Exprs - Connection via IP adress ?
Thanks for the reply for the second question.
But .. do anyone know why the application crashes when runned from a networked disk?
-
Sep 13th, 2006, 03:17 AM
#4
Re: MS SQL Server Exprs - Connection via IP adress ?
what error does it give before crashing?
"The dark side clouds everything. Impossible to see the future is."
-
Sep 13th, 2006, 02:04 PM
#5
Thread Starter
Junior Member
Re: MS SQL Server Exprs - Connection via IP adress ?
 Originally Posted by Asgorath
what error does it give before crashing?
No error at all, it crashes when using the .open statement without any error, only the,
"YourApplication has encountered a problem and needs to close. We are sorry for the inconvenience."
"EventType : clr20r3 P1 : yourapplication.exe P2 : 1.0.0.0 P3 : 45045147 P4 : imei checker P5 : 1.0.0.0 P6 : 45045147 P7 : 11 P8 : c6 P9 : system.invalidoperationexception "
-
Sep 16th, 2006, 09:51 AM
#6
Thread Starter
Junior Member
Re: MS SQL Server Exprs - Connection via IP adress ?
 Originally Posted by Asgorath
1) See http://www.connectionstrings.com/ on how to create the apropriate connection string.
2) This example changes the password for the login Victoria to ok.
EXEC sp_password NULL, 'ok', 'Victoria'
Jorge
This change the password, but how to open up a new login account.
I want to set up a new account named ACCOUNT1 with password VICTORIA.
-
Sep 18th, 2006, 10:50 AM
#7
Re: MS SQL Server Exprs - Connection via IP adress ?
This example creates a SQL Server login for the user Albert, with a password of food and a default database of corporate.
EXEC sp_addlogin 'Albert', 'food', 'corporate'
Jorge
"The dark side clouds everything. Impossible to see the future is."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|