sql-server-2014-express

Connection string for SQL Server 2014 Express (VBA)

南笙酒味 提交于 2019-11-30 16:13:16
I am trying figure out what needs to go in the connection string for SQL server via VBA. This is the code I have right now, Sub ConnectSqlServer() Dim conn As ADODB.Connection Dim rs As ADODB.Recordset Dim sConnString As String ' Create the connection string. sConnString = "Provider=SQLOLEDB;Data Source=INSTANCE\SQLEXPRESS;" & _ "Initial Catalog=MyDatabaseName;" & _ "Integrated Security=SSPI;" ' Create the Connection and Recordset objects. Set conn = New ADODB.Connection Set rs = New ADODB.Recordset ' Open the connection and execute. conn.Open sConnString 'Do my stuff here If CBool(conn.State

Connection string for SQL Server 2014 Express (VBA)

江枫思渺然 提交于 2019-11-30 15:59:12
问题 I am trying figure out what needs to go in the connection string for SQL server via VBA. This is the code I have right now, Sub ConnectSqlServer() Dim conn As ADODB.Connection Dim rs As ADODB.Recordset Dim sConnString As String ' Create the connection string. sConnString = "Provider=SQLOLEDB;Data Source=INSTANCE\SQLEXPRESS;" & _ "Initial Catalog=MyDatabaseName;" & _ "Integrated Security=SSPI;" ' Create the Connection and Recordset objects. Set conn = New ADODB.Connection Set rs = New ADODB

After installing SQL Server 2014 Express can't find local db

安稳与你 提交于 2019-11-28 19:07:27
I have downloaded and installed SQL Server 2014 Express (from this site: http://www.microsoft.com/en-us/server-cloud/products/sql-server-editions/sql-server-express.aspx#Installation_Options ). The problem is that I can't connect/find my local DB server, and I can't develop DB on my local PC. How can I reach my local server? My system consists of Windows 8.1 (no Pro or Enterprise editions) 64 bits Checking the configuration of SQL Server with SQL Server 2014 Configuration Manager tool, I see an empty list selecting "SQL Server Services" from the tree at the left. Below you can find a

SQL Server “pseudo/synthetic” composite Id(key)

拜拜、爱过 提交于 2019-11-27 09:36:24
Sorry but I don't know how to call in the Title what I need. I want to create an unique key where each two digits of the number identify other table PK. Lets say I have below Pks in this 3 tables: Id Company Id Area Id Role 1 Abc 1 HR 1 Assistant 2 Xyz 2 Financial 2 Manager 3 Qwe 3 Sales 3 VP Now I need to insert values in other table, I know that I may do in 3 columns and create a Composite Key to reach integrity and uniqueness as below: Id_Company Id_Area Id_Role ...Other_Columns..... 1 2 1 1 1 2 2 2 2 3 3 3 But I was thinking in create a single column where each X digites identify each FK.