I want to create a database sql shared between 2 o - Posted (3368 Views)
Junior Member
AHMEDHHH1
Posts: 105
105
I want to create a database sql shared between 2 or more computers
I use a local server asp
And Microsoft SQL Server 2005
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Carefree
Posts: 4224
4224
Of course, that's what the connection string should accomplish.
Posted
Junior Member
AHMEDHHH1
Posts: 105
105
I wanted to try my idea to do a shared database

To do the map network drive or sharing
And summoned the database file from the program
sql server software but does not show the files on the network

You can modify the program settings to access the files in a computer network?
Posted
Junior Member
AHMEDHHH1
Posts: 105
105
Ejrebit did not succeed Professor
Doug G
Posted
Support Moderator
Doug G
Posts: 6493
6493
You may need to open the SQL server TCP/IP port 1433 and maybe 445 in any firewalls, and/or forward these ports through any routers between your client and server.
======
Doug G
======
Computer history and help at www.dougscode.com
Posted
Junior Member
AHMEDHHH1
Posts: 105
105
Professor HuwR the
Use

microsoft sql server management studio express
Posted
Junior Member
AHMEDHHH1
Posts: 105
105
Originally posted by Carefree
Try changing the provider to SQLOLEDB
Professor Carefree same error when you change to SQLOLEDB


Professor Carefree same error when you change to SQLOLEDB


'strConnString = "Driver = {SQL Server}; Server = 192.168.1.2; Database = ahmed; UID = ahmed; PWD = 5555555;"
'Provider = SQLNCLI10; Server = tcp: 192.168.1.2; Database = ahmed; UID =ahmed; PWD = 5555555;
'Conn.Open "Provider = SQLNCLI10; Server = tcp: 192.168.1.2; Database = ahmed; UID = ahmed; PWD = 55555555;"
'Conn.Open "Provider = SQLOLEDB; Data Source = 192.168.1.2; database = ahmed; uid = ahmed; pwd = 5555555;"

'Conn.Open "Driver = {SQL Server}; Server = 192.168.1.2; Database = ahmed; UID = ahmed; PWD = 5555555;"
Posted
Forum Admin
HuwR
Posts: 20611
20611
is it sql 2005 or 2005 express database? have you got it set up to use SQL logins?
Posted
Advanced Member
Carefree
Posts: 4224
4224
Try changing the provider to SQLOLEDB
Posted
Junior Member
AHMEDHHH1
Posts: 105
105
Tried and did not succeed

strConnString = "Driver = {SQL Server}; Server = 192.168.1.2; Database = ahmed; UID = ahmed; PWD = 244434535;"

Did not recognize the database and receive this message

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

/5000/conn.asp, line 14
Posted
Advanced Member
Carefree
Posts: 4224
4224
That's easy enough. Create the database, then with your second computer, access it using the IP address of the first computer, something like this:
Code:
strConnString = "Provider=SQLOLEDB;Data Source=192.168.1.108;database=DBName;uid=UName;pwd=PWord;"