sql-server-express

Save documents as BLOB in SQL or on file system

元气小坏坏 提交于 2019-12-11 01:38:01
问题 For a (.net) web application I need to allow users to store many documents (pdf, .docx etc.). My first thoughts were to save all the documents as a BLOB in a SQL (Express) database. But how will my database grow? Is it better to save all the documents into the file system? Personally I still think that I'm better of saving the documents into the database, because of performance. But I'm not sure and curious what you folks think. Edit - My conclusion: If the file size is less then 1Mb and/or

SQL Server Express performance issue

99封情书 提交于 2019-12-11 00:06:25
问题 I know my questions will sound silly and probably nobody will have perfect answer but since I am in a complete dead-end with the situation it will make me feel better to post it here. So... I have a SQL Server Express database that's 500 Mb. It contains 5 tables and maybe 30 stored procedure. This database is use to store articles and is use for the Developer It web site. Normally the web pages load quickly, let's say 2 ou 3 sec. BUT, sqlserver process uses 100% of the processor for those 2

An attempt to attach an auto-named database for file **** failed

纵然是瞬间 提交于 2019-12-10 22:17:56
问题 I added new database file in my solution's app_data folder in VS2008. But when I tried to expand it from Server Explorer, I get this error An attempt to attach an auto-named database for file .... failed. Find the screen shot of the error which occurred in vs2008 IDE. Can anyone tell me what the problem is? And how to solve it 回答1: The error is clear in that dialog box, the file you are trying to attach is on a UNC share (any file path beginning with \\ is a UNC path), which is not supported.

Database Missing ! Finding the root cause

断了今生、忘了曾经 提交于 2019-12-10 18:47:47
问题 Assume one fine day an admin comes to the office like he always does to do his admin tasks on Sql Server Databases and to his surprise finds a database missing. He has no clue of who dropped it or was it from an external batch or SQL injection etc ... where do one start an investigation and what are the important parameters/ findings that should happen to find the root cause of the Drop DB. Like what logs shud be checked and what information shud be investigated ? 回答1: There is a defaul trace

Error when attempting Grails start up, following JDBC setup

别说谁变了你拦得住时间么 提交于 2019-12-10 12:14:26
问题 There is a potential that I should be reusing an existing question of mine. Connecting a groovy application to SQL server Express BUT this seems to be a bit different. The question was brought up while configuring a test application, now I am doing the real thing and this is the time that it goes really wrong. As you can see the Jar file is in my lib and classpath my datasource is configured as below (pretty much a copy paste job from my working example) dataSource { username = "sa" password

SQL Server 2008 Express SSRS: export to CSV

岁酱吖の 提交于 2019-12-10 11:40:45
问题 Do Reporting Services in SQL Server 2008 support export to CSV? I only see Excel/Word/PDF in the dropdown list on in the SSRS localhost server when previewing report. I found in internet that SSRS 2008 seems to support CSV but I don't see it; is it Express limitation? I haven't found any notes about this limitation. 回答1: CSV export is not supported in the Express edition: http://msdn.microsoft.com/en-us/library/cc281020.aspx The following list describes the features that are documented in SQL

How do you stop a user-instance of Sql Server? (Sql Express user instance database files locked, even after stopping Sql Express service)

瘦欲@ 提交于 2019-12-09 17:48:14
问题 When using SQL Server Express 2005's User Instance feature with a connection string like this: <add name="Default" connectionString="Data Source=.\SQLExpress; AttachDbFilename=C:\My App\Data\MyApp.mdf; Initial Catalog=MyApp; User Instance=True; MultipleActiveResultSets=true; Trusted_Connection=Yes;" /> We find that we can't copy the database files MyApp.mdf and MyApp_Log.ldf (because they're locked) even after stopping the SqlExpress service, and have to resort to setting the SqlExpress

How do I insert Chinese characters into a SQLExpress text field?

ε祈祈猫儿з 提交于 2019-12-09 15:43:53
问题 How do I insert Chinese characters into a SQLExpress text field? I'm using SQL Express from VS 2008. When I add Chinese characters, either via an import app I wrote or by pasting them in from the data view inside Visual Studio, they end up as question marks. 回答1: Just add an 'N' before your text delimiter in the INSERT/UPDATE statement for fields of the nchar/nvarchar/ntext type: INSERT INTO myTable (myField1, myField2) VALUES (N'any chinese character',N'any arabic character') 回答2: Be sure

Connecting to SQL Server Express - What is my server name?

强颜欢笑 提交于 2019-12-09 05:02:40
问题 I was just given a laptop to perform some development from a client and I am currently in the process of setting it up. Visual Studio 2010 is installed as well as SQL Server Management Studio 2008 R2. I'm trying to open SQL Server Management Studio to connect to the database but so far am not having much luck. I'm used typing in for a server name something like... localhost (local) SQLEXPRESS None of these are working. So my question is: How can I tell what type of SQL Server installation 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