sql-server-2008r2-express

Create an ETL with SQL Server 2008 R2 Express

℡╲_俬逩灬. 提交于 2019-12-13 05:41:15
问题 I've recently installed the latest version of SQL Server (2008 R2 x64) and I'm now trying get my first steps to create an ETL. Is it possible to create an ETL with SQL Server 2008 R2 Express, and if not is there some tool that provides that for free? What I plan to do is collect data from multiple sources like a web services, rss feeds, a parsed url request, a file or maybe other database engine. Transform this collected data for an understandable schema (for my purposes) and store this in my

Simple SQL Bulk Insert not working

一世执手 提交于 2019-12-12 03:05:43
问题 I'm trying to create a simple Bulk Insert command to import a fixed width text file into a table. Once I have this working I'll then expand on it to get my more complex import working. I'm currently receiving the error... Msg 4866, Level 16, State 7, Line 1 The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly. Obviously I have checked the terminator in the file. For test data I just typed

Max number of tables (objects) in SQL Server editions (compact, express)

坚强是说给别人听的谎言 提交于 2019-12-12 02:58:46
问题 What are the maximum number of tables that you can have in: SQL CE4 SQL 2008 R2 Express Numbers here http://msdn.microsoft.com/en-us/library/ms143432.aspx I guess is for SQL Server 2008, but are they valid for Express and what about SQL CE4? The sum of the number of all objects in a database cannot exceed 2,147,483,647 BTW. Sorry for duplicating questions, but it seems to me Stackoverflow is providing answers more quickly. 回答1: No word about CE, but Express is normal SQL Server + database

Slow SQL transaction blocks table

感情迁移 提交于 2019-12-11 10:06:31
问题 I have a very slow sql transaction, which inserts new rows in the table. All other "select" queries from another connections wait for this transction to unlock the table. Is it posible to fetch old rows from the table, while the first transaction works? SqlExpress 2008 R2. For exapmle: private void button1_Click(object sender, EventArgs e) { System.Threading.Thread t = new System.Threading.Thread( delegate() { var conn = new SqlConnection(@"Data Source=ARTNB\SQLEXPRESS;Initial Catalog=test

run-time error '3197'. MS Access 2010 and SQL Server 2008R2

旧巷老猫 提交于 2019-12-11 02:44:23
问题 I have an application written in MS Access 2007-2010 and a back end is an SQL database. After building a new database, when I view the records from SQL in the Access report, trying to edit or enter new input results with a run-time error 3197. The specific error says: This record has been changed by another user since you started editing it Then I have Copy to Clipboard and Drop Changes options, while the Save Record is grayed out. Clicking on the Drop changes brings the error: "Run-Time

SQL: Comparing Dates with only Month and Year columns

前提是你 提交于 2019-12-10 16:59:12
问题 I have a table MonthlyShipments that looks like: partnumber | quantity | month | year | part1 | 12 | 6 | 2011 | part1 | 22 | 5 | 2011 | part1 | 32 | 4 | 2011 | part1 | 42 | 3 | 2011 | part1 | 52 | 2 | 2011 | I want to sum the quantities of the past 3 months, excluding the current month. My where clause currently looks like: where MonthlyShipments.Month <> MONTH(GETDATE()) AND CAST( (CAST(MonthlyShipments.Month as nvarchar(2)) + '-01-' + CAST(MonthlyShipments.Year as nvarchar(4))) as DateTime)

How to connect Visual Studio 2010 Express C# to SQL Server Express

强颜欢笑 提交于 2019-12-10 16:17:46
问题 Is there any real workaround to getting the Express edition of C# connected to database options other than the lightweight options allowed (Access, SQL Compact, or SQL file)? As has been noted elsewhere, it's possible in the web edition to do so. It has also been noted that you can create a project file, open it in the web edition, create a connection, and create a project with your database entities, and then switch back to C#. However, as a workaround this is quite clunky, as it seems like

How to get current instance name from T-SQL

醉酒当歌 提交于 2019-12-09 04:03:45
问题 How can I get the SQL Server server and instance name of the current connection, using a T-SQL script? 回答1: Just found the answer, in this SO question (literally, inside the question, not any answer): SELECT @@servername returns servername\instance as far as this is not the default instance SELECT @@servicename returns instance name, even if this is the default (MSSQLSERVER) 回答2: How about this: EXECUTE xp_regread @rootkey='HKEY_LOCAL_MACHINE', @key='SOFTWARE\Microsoft\Microsoft SQL Server

how to import an excel file into sqlserver 2008

独自空忆成欢 提交于 2019-12-07 11:28:03
问题 How can i import an excel file into a new table in sqlserver2008 express edition using an sql query without using the import wizard Thanks Prady 回答1: There is a microsoft knowledge base article that lays out all the ways this is possible. http://support.microsoft.com/kb/321686 I think using OPENROWSET or OPENDATASOURCE will be the easiest way, without the wizard. (see Distributed Queries) SELECT * INTO XLImport4 FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\test\xltest.xls

SQL based encryption performance

倖福魔咒の 提交于 2019-12-06 09:14:49
I am doing some research for a future project and it requires some data to be encrypted. In my research today, I have noticed that there are many different encryption algorithms (including AES, Triple-DES, X-DES etc) and I wish to use one of the algorithms in SQL-Server (2008r2 express probs), how would you recommend doing this, like best practices etc? I am planning to do something like the following: -- Create the master key. CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Som3Rand0m!3y?na' -- Create the cert. CREATE CERTIFICATE someCert WITH SUBJECT = 'c3p009xFR?' -- Create Symmetric Key CREATE