I want to create a database sql shared between 2 o - نوشته شده در (3371 Views)
Junior Member
AHMEDHHH1
مطلب: 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
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
Of course, that's what the connection string should accomplish.
نوشته شده در
Junior Member
AHMEDHHH1
مطلب: 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?
نوشته شده در
Junior Member
AHMEDHHH1
مطلب: 105
105
Ejrebit did not succeed Professor
Doug G
نوشته شده در
Support Moderator
Doug G
مطلب: 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
نوشته شده در
Junior Member
AHMEDHHH1
مطلب: 105
105
Professor HuwR the
Use

microsoft sql server management studio express
نوشته شده در
Junior Member
AHMEDHHH1
مطلب: 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;"
نوشته شده در
Forum Admin
HuwR
مطلب: 20611
20611
is it sql 2005 or 2005 express database? have you got it set up to use SQL logins?
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
Try changing the provider to SQLOLEDB
نوشته شده در
Junior Member
AHMEDHHH1
مطلب: 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
نوشته شده در
Advanced Member
Carefree
مطلب: 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;"