sql-server-2008-express

Does Sql Server Compress Database size on similar data

可紊 提交于 2019-12-13 03:33:29
问题 Just to find out my would be DB size on production environment, I just populated my tables with 1.5 million rows of nearly same data (Except Primary key). It currently shows 261 MB... Now, Whether I can rely on this, or since the Data is almost similar on all other columns the SQL server has compressed the size. ie. Will the size be different if the values in each rows are different... Further.. Does even columns will null values contribute to the size of the DB ? Thanks for your time... Edit

Updates to Records not allowed - Write Conflict

浪尽此生 提交于 2019-12-11 18:16:32
问题 This stems from a previous question I asked - about a write conflict with a form, but the problem seems to be originating from the fact that I can update existing records in a linked table provided by one System DSN, but not another linked table provided by another DSN (different database) - allowing me to enter records at first, but then preventing me from making any changes to the records as if another user has changed the data before me. There are no check constraints defined on the server

change collation of DB SQL Server 2008

▼魔方 西西 提交于 2019-12-11 11:58:24
问题 I have created some new databases in SQL Server 2008 Express (10.0.1600.22) and I have also restored one from SQL Server 2005 Express (9.00.1399.06). The collations for these are different and I cannot execute queries across them as a result. So I am trying to change the restored database collation from: SQL_Latin1_Genral_CP1_CI_AS to: Latin1_General_CI_AS However the new collation does not appear in the list of options. Not sure if this is possible. BTW - workarounds that are not options: I

SQL Server version of MySQL's group_concat and escaped strings

爷,独闯天下 提交于 2019-12-11 08:32:09
问题 I only have the Express versions of MS SQL Server 2008 and Visual Studio. Given that I can't create a SQL Server project and therefore CLR solutions are out of the question, I've attempted to use select col1, stuff( ( select ' ' + col2 from StrConcat t1 where t2.col1 = t1.col1 for xml path('') ),1,1,'') from StrConcat t2 group by col1 order by col1 to get a row concatenated col2. col2 is a varchar field with some control characters like & and \n . When it is concatenated with the above SQL,

SQL data retrieve - C#

折月煮酒 提交于 2019-12-11 08:19:41
问题 how do i retrieve data from a table within a loop or something. That means I want to retrieve row by row at a time. but the sequence of rows may differ. For example, 1st time i want 5rd row,then 2nd, then 9...so on. I searched it through the internet. I got only two answers. Use several SqlConnection objects. reader= sqlCommand.ExecuteReader(); While(reader.Read()){ reader["Column Name"].ToString(); } If you got my problem, please help me Thank you. 回答1: Sounds like you should correct your

SQL 2000 and SQL 2008 Express side by side?

自闭症网瘾萝莉.ら 提交于 2019-12-11 04:28:40
问题 This question has been asked in regards to 2005, but did not see anything with 2000. We have a new application that needs to run on 2005 or better but everything else we have is geared towards 2000. We could upgrade, but that is not within budget at this time. We were thinking we could run SQL Server 2008 Express on the same server as 2000 for the period of time it takes before we upgrade. Anyone do this? Have any issue? Ok to proceed? Thanks in advance 回答1: On our development server we have

Sql Server 2008 Express Edition Licensing

孤街浪徒 提交于 2019-12-10 08:06:19
问题 I'm deploying a web application into a server (hosting company). The application uses Sql Server 2008 Express Edition as its database. It seems from the license agreement that this state is ok, as Microsoft says: "All editions of SQL Server Express are free downloads that can be redistributed subject to agreement. Each edition can function both as the client database and as a basic server database. Any edition of SQL Server Express is an ideal choice for independent software vendors (ISVs),

SQL: Deleting duplicate records in SQL Server

↘锁芯ラ 提交于 2019-12-09 04:55:10
问题 I have an sql server database, that I pre-loaded with a ton of rows of data. Unfortunately, there is no primary key in the database, and there is now duplicate information in the table. I'm not concerned about there not being a primary key, but i am concerned about there being duplicates in the database... Any thoughts? (Forgive me for being an sql server newb) 回答1: Well, this is one reason why you should have a primary key on the table. What version of SQL Server? For SQL Server 2005 and

Need to create new database without using management studio

混江龙づ霸主 提交于 2019-12-08 15:46:42
问题 How to create new database with SQL Server Express 2008 without using Management Studio? Do i need to download sp1? 回答1: You can use the SqlCmd utility from the command line to execute SQL. Open a command prompt and then type SqlCmd.exe and press enter, you should then get 1) which means you are connected. Once connected execute 1) CREATE DATABASE dbname 2) GO 回答2: Use CREATE DATABASE via sqlcmd or another other database connection (even VBA from Excel...) 回答3: You could connect to it in code

Using ANY free SQL Server version to simply create a local SSIS/dtsx file run on local machine

左心房为你撑大大i 提交于 2019-12-08 14:09:15
问题 Yes I KNOW there are a lot of questions about this on styack overflow, and I'm sorry but all I found was reading through dozens and dozens where every one seemed to disagree, or things were terribly version specific and more importantly - many of them were out of date as the rules seem to change over time. All I want to know is, can I download and install (actually on my client's computer), any free or almost-free version of SQL Server (I really don't care if it's 2005, 2008, 2012 etc) to