I want to create a database sql shared between 2 o - Postet den (3372 Views)
Junior Member
AHMEDHHH1
Innlegg: 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
   
 Sidestørrelse 
Postet den
Advanced Member
Carefree
Innlegg: 4224
4224
Of course, that's what the connection string should accomplish.
Postet den
Junior Member
AHMEDHHH1
Innlegg: 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?
Postet den
Junior Member
AHMEDHHH1
Innlegg: 105
105
Ejrebit did not succeed Professor
Doug G
Postet den
Support Moderator
Doug G
Innlegg: 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
Postet den
Junior Member
AHMEDHHH1
Innlegg: 105
105
Professor HuwR the
Use

microsoft sql server management studio express
Postet den
Junior Member
AHMEDHHH1
Innlegg: 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;"
Postet den
Forum Admin
HuwR
Innlegg: 20611
20611
is it sql 2005 or 2005 express database? have you got it set up to use SQL logins?
Postet den
Advanced Member
Carefree
Innlegg: 4224
4224
Try changing the provider to SQLOLEDB
Postet den
Junior Member
AHMEDHHH1
Innlegg: 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
Postet den
Advanced Member
Carefree
Innlegg: 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;"