The Forum has been Updated
        The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
    
                        I want to create a database sql shared between 2 or more computers
I use a local server asp
And Microsoft SQL Server 2005
                I use a local server asp
And Microsoft SQL Server 2005
                                Posted 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        Of course, that's what the connection string should accomplish.
                                        
                                    
                                
                                Posted 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        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?
                                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?
                                Last edited by AHMEDHHH1 on 15 May 2013, 06:39
                                
                            
                        
                                Posted 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        Ejrebit did not succeed Professor
Doug G
                                Doug G
                                Posted 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        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
                                    Doug G
======
Computer history and help at www.dougscode.com
                                Posted 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        Professor HuwR the
Use
microsoft sql server management studio express
                                Use
microsoft sql server management studio express
                                Posted 
                                
                                
                                
                                    
                                    
                                
                            
                            Originally posted by CarefreeProfessor Carefree same error when you change to SQLOLEDB
Try changing the provider 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 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        is it sql 2005 or 2005 express database?
have you got it set up to use SQL logins?
                                        
                                    
                                
                                Posted 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        Try changing the provider to SQLOLEDB
                                        
                                    
                                
                                Posted 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        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
                                        
                                    
                                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 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        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;"
                                Last edited by Carefree on 09 May 2013, 22:44
                                
                            
                        Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
                    
                    Loading...