Questions tagged [sql-server-2008r2-express]
Use this tag for questions specific to scaled down, free edition of SQL Server 2008 R2.
223
questions
0
votes
0
answers
38
views
Connecting a SQL Server Express 2008 R2 database to Visual Studio 2017 without upgrading it
I am looking for a way to get a form application that I currently have designed in Visual Studio 2017 to run on Windows XP.
To do this (and as far as my limited knowledge allows me to understand), the ...
0
votes
1
answer
130
views
User Input Date And Time as SQL Query Parameters in RDLC Reports
I am trying to build an ASP NET website which generates RDLC reports from SQL DataBase data but while trying to use user input by two TextBoxes it just doesn't show anything in the report, can someone ...
0
votes
1
answer
169
views
Join syntax not being recognized by SSMS
When I try to build a simple join query, all of the join syntax is not being recognized by the query editor (inner, outer, left, right join).
FULL and ON are still recognized. I have never seen this ...
0
votes
1
answer
114
views
Restore SQL Server 2008 R2 database to SQL Server 2012 and getting syntax errors
My application is working on SQL Server 2008 R2 and I need to move it to SQL Server 2012, so first I restored the database backup on SQL Server 2012 and then set compatibility level to 100, but ...
0
votes
1
answer
650
views
SQL Server make Column data undeletable
I am using SQL Server 2008 R2. I want to make a column data undeletable. Is it possible to make the data undeletable without using Triggers? If it is, please let me know.
2
votes
1
answer
3k
views
Controls spill over to next page in RDLC Report
Problem no 1 (refer pics): When the horizontal tablix expands at runtime, controls which are positioned after the tablix get pushed to the next page.
Problem no 2 (refer pics): How to get vertical ...
0
votes
2
answers
47
views
SQL Qry required to get a comma separated string from a table [duplicate]
In my database there is a table with values below
image attached
In need a qry to get the result like this
0
votes
1
answer
87
views
How to make event/function in SQL Server 2008 R2 database instead of VBA Macros?
I have a SQL Server 2008 R2 Express database with one table. Windows XP.
I wrote this macro to request table size and delete rows if the table bigger than I need, I call VBA from SCADA every 1 hour.
...
4
votes
2
answers
267
views
How to delete oldest week(period) in MS SQL database?
MS SQL 2008R2 Express, I have database - one table with rows. And when db size became about 10gb I need to clean one oldest week in this table (I dont know the date). Could you help me with script? ...
1
vote
1
answer
787
views
SQL Server 2008 R2 Express 10GB Filesize limit
I have reached the file size limit on my SQL Server 2008 R2 Express database which I believe is 10Gb. I know this because I see Event ID 1101 in the event log.
Could not allocate a new page for ...
0
votes
0
answers
29
views
SQL Server 2008 R2 Express cant connect to my editors
I'm using SQL Server 2008 R2 Express to edit my database. I can edit my database with query codes but there is a editor program which can help me to edit my database easily.
But when I'm trying to ...
0
votes
2
answers
331
views
SQL Server Login failed for user after a couple hours
I've been struggling with this problem for a while. When I tried to connect to my database I'm getting the error 18456: "Login failed for user ". I've checked all my settings and everything seems to ...
0
votes
1
answer
296
views
SQL Server 2008 R2 Recordset apears not created
Environment: SQL Server Express 2008 R2, EW4, Windows XP SP3
Here are a few important program statements from the ASPX page.
conn=Server.CreateObject("ADODB.Connection")
conn.Open (connString) --&...
0
votes
3
answers
2k
views
Simple SQL Bulk Insert not working
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 ...
2
votes
4
answers
5k
views
Read from Database and Insert into DataGridView
How i can read records from Database and Can insert into DataGridView. I don't want to bind data source. Just want to read and insert using While Loop. I know how to read from Database Sql Server 2008 ...
0
votes
0
answers
192
views
DataGridView CheckBox Functionality Not Working
I have a DataGridView that has CheckBox Field. I am trying to update Checkbox values in database. But it's giving me this Error. I already implement method ufGview_DataError with value e.Cancel = true....
1
vote
1
answer
1k
views
Unable to install SQL Server 2008 R2 Express
When I try to install SQL Server 2008 R2 Express, I get the following message :
The feature you are trying to use is on a network resource that is unavailable
Click ok to try again or enter an ...
4
votes
3
answers
14k
views
What is Best Approach for Opening/Closing SqlConnection in C#
I would like to know what could be best approach to open a SqlConnection with Sql Server 2008R2 Express Edition Database. This Version of Sql has Limitations of RAM Usage and CPU Usage so we must ...
0
votes
1
answer
393
views
Export contents of SQL Server 2008 R2 table to CSV WITHOUT xp_cmdshell
I need to export the contents of a SQL SErver 2008 R2 Express table to a CSV or TXT file.
I cannot enable xp_cmdshell nor can I allow ad hoc distributed queries.
It needs to be executable from a ...
0
votes
1
answer
208
views
Cannot connect to SQL Server Express with SSMS and SQL Server Authentication
I've been using SQL Server Express with Windows authentication for many years with no problems. However, for a different application I need to use server authentication. I'm running SQL Server 2008 R2 ...
0
votes
1
answer
457
views
Database in restoring state
Hope to get a solution on my issue facing in SQL Server 2008 R2 Express.
One of my colleague mistakenly restored a database in my working database.
While getting restored he realize the error & ...
-1
votes
3
answers
315
views
How to run distinct and Sum in one query in sql server 2008 R2
I have a table #1 as shown in image attached. First i want to sum all quantity of all distinct id. Then want to show number of id that have same quantity.
0
votes
3
answers
1k
views
How to Check Valid Date Time from Sql Table
I want to check either my current DateTime is between two DateTimes or not.
I have first time 2016-05-19 04:23:00.000 and second time 2016-05-19 04:50:00.000.
How to write a query to return true ...
0
votes
1
answer
433
views
Mdf file is not attaching in Sql Server after data written in mdf file by windows application
I developed a windows based application where I use .mdf file for backend operations. When no data is passed through application into .mdf file that means a fresh .mdf file, I am able to attach this ....
0
votes
1
answer
6k
views
Local SQL Server 2008 R2 database not accessible on Windows 10
I've inherited the job of maintaining an application which uses a local SQL Server 2008 R2 SP2 Express database as a back-end. I successfully installed the application some months back after upgrading ...
3
votes
3
answers
51
views
order by in select statement sql server
I try to fetch date from table in descending order but when i write order by clause in query this shows date in ascending order .. i can not post whole query i post specific line e.g. order by .. when ...
1
vote
1
answer
1k
views
Cannot open database requested by login
I have a SQL Server 2008 R2 Express database.
I have written a Delphi application that uses a TADOConnection object to connect to the database. It works just fine on my computer. It fails to connect ...
4
votes
1
answer
200
views
Query that worked for months now timesout
I have a query run from a Delphi application that suddenly started timing out last week after running perfectly for months. further more when it runs it slows the server to a crawl leaving other users ...
1
vote
1
answer
5k
views
Memory error: Allocation failure : Excel Powerpivot Add on
The table I am trying to refresh using the Excel 2010 PowerPivot add on is currently 2,670,634 rows, and approximately 473 MB when I export the query results from SQL server into a CSV file format. ...
0
votes
0
answers
27
views
How can I know when my table got hit in sql server 2008 r2 express profiler when run from browser
I have one important table called Person among hundreds of tables. But, I'm not sure when it is coming into play. I have to capture table information in such a way that as soon as the Person table is ...
-3
votes
3
answers
810
views
how to fix this below error?
connected successfully..
Notice: Undefined index: blog_id in C:\xampp\htdocs\lendkarma\dashboard\editpost.php on line 3
Notice: Undefined index: empid in C:\xampp\htdocs\lendkarma\dashboard\...
1
vote
1
answer
739
views
Importing Excel Data into SQL Server 2008 R2 Express
There seems to have been many discussions on this but I couldn't find something specific to what I am looking for. I am trying to use a query to import data from Excel to an existing table in SQL ...
0
votes
1
answer
160
views
Data from SQL view in entity collection are not sorted
I have a simple SQL view with 2 columns. First is the primary key, which is an nvarchar, and the second is an int. View is ordered by the int column. When I load data using EF, data is not sorted how ...
0
votes
2
answers
2k
views
asp.net cannot open database login failed
I'm using the following to retrieve data from a database but the SqlConnection won't open. It throws an error at scon.Open(). I'm sure it's elementary but I can't work it out.
protected void ...
0
votes
1
answer
69
views
Could not connect to SQL Server 2008 R2 Express
I am using Microsoft SQL Server 2008 R2 Express, suddenly I got a error while I am trying to connect:
TITLE: Connect to Server
Cannot connect to DEBANJAN\SQLEXPRESS.
ADDITIONAL ...
1
vote
1
answer
33
views
Installing SQL Server 2005 Express on a server that already has SQL Server 2008 R2 installed
I am trying to installing SQL Server 2005 Express edition on a Windows Server 2008 where we already have SQL Server 2008 R2 Express edition installed.
Will that be possible?
0
votes
0
answers
63
views
Incremental commit to optimise insert query
I have the following insert statement that i am running daily and updating approx 55,000 records.
INSERT INTO dbo.ETL_INPUT (
SCH_APPT_ID
,SCH_EVENT_ID
,MRN
,PERSON_ID
,...
1
vote
0
answers
31
views
Visual Studio 2013 Click Once With SQL Server Express 2008 R2
I am struggling to find information on if it is possible to use command line arguments for SQL Server 2008 R2 Express when it's deployed as a prerequisite with an app. I would like to configure SQL ...
0
votes
1
answer
356
views
How to pass absolute database name,server name as parameter?
I have a requirement where I need to select data from database DB1 and insert into database DB2.
update [Server1\SQLEXPRESS].[DB1].dbo.table1
set CName = (select CName
from [Server2\...
1
vote
1
answer
515
views
Migration MSSql Db - from SQL Server 2008 R2 Enterprise backup can restore in SQL Server 2008 R2 Express version
I have a quick simple question: can a SQL Server 2008 R2 Enterprise/ Developer edition backup be restored in a SQL Server 2008 R2 Express version?
Source: SQL Server 2008 R2
10.50.1600.1 RTM ...
0
votes
0
answers
178
views
error: 40 - Could not open a connection to SQL Server:-provider: Named Pipes Provider
I created a Windows Forms application using C# and SQL Server 2008 R2 as back-end. I also created a click-once installer package by adding Microsoft SQL Server Compact 3.5 as a prerequisites.
If I ...
4
votes
1
answer
4k
views
Live sync between SQL Server 2008 R2 and MongoDB with Express
I have created custom script in Express that actually migrates SQL Server database to MongoDB.
But I am facing problems in live syncing between the two databases.
Currently I have added a column ...
1
vote
2
answers
5k
views
Cannot start SQL Server agent
I re-installed w7 ultimate and installed Microsoft® SQL Server 2008 R2.
Firstly, it was problem of permissions, because I had error log like this
User does not have permission to perform this ...
0
votes
1
answer
227
views
SQL Server produces bad/invalid/damaged XML with FOR XML
I've got a simple (?) problem.
I have a table t_dane_nieruch with one column nr_ewid (int, not null)
My query looks like this:
select top 40
nr_ewid
from
t_dane_nieruch
for xml auto, ...
0
votes
2
answers
869
views
Install SQL Server 2008 R2 Express using C#
I am in a situation where I need to Install SQL Server 2008 R2 Express silently. I want to use C# for this but couldn't get a working solution.
Can someone post a working C# code for above scenario?
1
vote
2
answers
116
views
How can I improve the speed of this SQL query?
We have two devices collecting data at roughly 30-second intervals. The devices are located at two widely-spaced sites. The absolute time of each collection for each site can vary +/- 30 seconds. ...
0
votes
2
answers
344
views
Using sql function on CHECK constraint for newly inserted row
First of all i need help with this for my bachelor thesis. I'm doing the whole database on sql server 2008 Release 2.
The problem is with check constraint that is using a function that is working on ...
2
votes
1
answer
92
views
SQL Server : update multiple records from joined tables
I'm using SQL Server 2008 R2 Express in my test environment and the full version in production.
I have written a select statement that finds all the records I want to update. About 1200 of them.
It ...
1
vote
1
answer
54
views
Cannot connect to SQL Server 2008R2 Express
I have just installed SQL Server 2008 R2 Express. I haven't set anything unusual during the installation process. Everything was default, that the instance name is SQLExpress, the connection is via ...
0
votes
0
answers
681
views
Using batch file for running SQL Server Express with parameter silently
I use this code for running Microsoft SQL Server 2008 R2 Express in silent mode but this program exit with error
@echo off
set DIRPATH=%~dp0%Sql Express 2008 R2
set Auth=""NT Authority\SYSTEM""
if ...