Questions tagged [sql-server-2008]

Use this tag for questions specific to the 2008 version of Microsoft's SQL Server.

Extended support for SQL Server 2008 and 2008 R2 have ended on July 9, 2019. That means the end of regular security updates. (source: SQL Server 2008 End of Support.)

If you're still using SQL Server 2008, you should seroiusly consider upgrading your SQL Server to a supported version.

SQL Server 2008 (codename Katmai, version number 10.00) was released on August 6 2008, and aims to make data management self-tuning, self organizing, and self-maintaining with the development of SQL Server Always On technologies, to provide near-zero downtime. SQL Server 2008 also includes support for structured and semi-structured data, including digital media formats for pictures, audio, video, and other multimedia data. In current versions, such multimedia data can be stored as BLOBs (binary large objects), but they are generic bitstreams. Intrinsic awareness of multimedia data will allow specialized functions to be performed on them. According to Paul Flessner, Senior Vice President, Server Applications, Microsoft Corp., SQL Server 2008 can be a data storage backend for different varieties of data: XML, email, time/calendar, file, document, spatial, etc as well as perform search, query, analysis, sharing, and synchronization across all data types.

Other new data types include specialized date and time types and a Spatial data type for location-dependent data. Better support for unstructured and semi-structured data is provided using the new FILESTREAM data type, which can be used to reference any file stored on the file system. Structured data and metadata about the file is stored in the SQL Server database, whereas the unstructured component is stored in the file system. Such files can be accessed both via Win32 file handling APIs as well as via SQL Server using T-SQL; doing the latter accesses the file data as a BLOB. Backing up and restoring the database backs up or restores the referenced files as well. SQL Server 2008 also natively supports hierarchical data and includes T-SQL constructs to directly deal with them, without using recursive queries.

The Full-text search functionality has been integrated with the database engine. According to a Microsoft technical article, this simplifies management and improves performance. Spatial data will be stored in two types. A "Flat Earth" (GEOMETRY or planar) data type represents geospatial data which has been projected from its native, spherical, coordinate system into a plane. A "Round Earth" data type (GEOGRAPHY) uses an ellipsoidal model in which the Earth is defined as a single continuous entity which does not suffer from the singularities such as the international dateline, poles, or map projection zone "edges". Approximately 70 methods are available to represent spatial operations for the Open Geospatial Consortium Simple Features for SQL, Version 1.1.

SQL Server includes better compression features, which also helps in improving scalability. It enhanced the indexing algorithms and introduced the notion of filtered indexes. It also includes Resource Governor that allows reserving resources for certain users or workflows. It also includes capabilities for transparent encryption of data (TDE) as well as compression of backups. SQL Server 2008 supports the ADO.NET Entity Framework and the reporting tools, replication, and data definition will be built around the Entity Data Model. SQL Server Reporting Services will gain charting capabilities from the integration of the data visualization products from Dundas Data Visualization, Inc., which was acquired by Microsoft. On the management side, SQL Server 2008 includes the Declarative Management Framework which allows configuring policies and constraints, on the entire database or certain tables, declaratively. The version of SQL Server Management Studio included with SQL Server 2008 supports IntelliSense for SQL queries against a SQL Server 2008 Database Engine. SQL Server 2008 also makes the databases available via Windows PowerShell providers and management functionality available as Cmdlets, so that the server and all the running instances can be managed from Windows PowerShell.

Source

53837 questions
15
votes
7 answers

PowerShell - List all SQL instances on my system?

Is there a Powershell command to list all SQL instances on my system? (MS SQL 2008)
LaPhi
  • 5,675
  • 21
  • 56
  • 78
15
votes
2 answers

SQL Server Query log for failed/incorrect queries?

I am using SQL Server 2008 and I would like to know if there's a way to find invalid SQL queries that have been executed in a database. For example: SELECT * FROM NonExistingTable ...where the database didn't exist or a SELECT/INSERT/UPDATE with…
Joe
  • 175
  • 1
  • 1
  • 5
15
votes
2 answers

Set variable to SCOPE_IDENTITY inside of IF statement

I am trying to write a stored procedure that will check for the existence of a record and if it does not exist do an insert returning the SCOPE_IDENTITY and if it does exist simply return the ID of the object. After I get this information in the…
jon3laze
  • 3,188
  • 6
  • 36
  • 69
15
votes
2 answers

TransactionScope and Isolation Level

we have a problem to use TransactionScope. TransactionScope get to us very good flexibility to use transactions across our Data Access Layer. On this way we can use transactions implicit or explicit. There are some performance boost again ADO.NET…
Anton Kalcik
  • 2,107
  • 1
  • 25
  • 43
15
votes
1 answer

Is it possible to disable the 'shift+space' shortcut in SQL Server Management Studio 2008?

When I am editting data in the "edit top 200 rows" tab, I frequently press 'shift+space' as I am entering capitalized data, which kicks me out of edit mode. This is extremely annoying, and reduces my typing speed to around ~10% of normal. Is there…
Matthew
  • 28,056
  • 26
  • 104
  • 170
15
votes
2 answers

T-SQL: issue with string concat

I have a set of audio files with names GreenLine1.mp3, GreenLine2.mp3 e.t.c. I'm going to write them into a table as BLOB (I use MS SQL Server'08), here's my sql request: DECLARE @aud AS VARBINARY(MAX) DECLARE @num AS INT -- Load the audio…
Ilya Blokh
  • 11,923
  • 11
  • 52
  • 84
15
votes
2 answers

Is "SELECT COUNT(column)" faster/slower than "SELECT COUNT(*)"?

I'm running a query like this in MSSQL2008: select count(*) from t1 inner join t2 on t1.id = t2.t1_id inner join t3 on t1.id = t3.t1_id Assume t1.id has a NOT NULL constraint. Since they're inner joins and t1.id can never be null, using…
Justin Morgan - On strike
  • 30,035
  • 12
  • 80
  • 104
15
votes
8 answers

alias not working on sql server 2008 r2

I have several servers with SQL Server 2008 R2 instances on them, and alias doesn't work on any of them. Clients connect to these servers using TCP/IP without any problem, telnet works on IP/Port I use for my alias, the firewall exceptions are…
Saam
  • 385
  • 1
  • 3
  • 12
15
votes
1 answer

Server Role to execute SQL Server Agent Jobs in SQL SERVER 2008

The users from other departments ask me to grant them to execute Schedule Jobs / SSIS in SQL Server Agent. At present, they cannot see SQL Server Agent tree in their ManagmentStudio. I think, it's because they don't have the rights to execute…
TTCG
  • 8,805
  • 31
  • 93
  • 141
15
votes
2 answers

Entity Framework 4 Code First - Prevent DB Drop/Create

I've written an ASP.Net MVC 3 application using the Code First paradigm whereby when I make a change to the model the Entity Framework automatically attempts to re-create the underlying SQL Server Database via DROP and CREATE statements. The…
user745229
15
votes
4 answers

How to check the SSIS package job results after it has completed its execution?

I have an SSIS package which imports the data into the SQL Server 2008 database. I have set up the schedule job in the SQL Server Agent to run that package. When I check the history, I could only see whether the job ran successfully or not. I could…
TTCG
  • 8,805
  • 31
  • 93
  • 141
15
votes
4 answers

SSRS report subscriptions cannot be created

I am not able to create subscriptions for SSRS reports as it gives the following error: Subscriptions cannot be created because the credentials used to run the report are not stored, or if a linked report, the link is no longer valid. My set…
paranjai
  • 531
  • 2
  • 5
  • 26
15
votes
3 answers

How to write a column name with dot (".") in the SELECT clause?

I'm trying to write a column name using "." with no success sample: SELECT PrmTable.Value = MAX(Value) FROM TempTable or SELECT MAX(Value) AS PrmTable.Value FROM TempTable Any idea ?
Liran Ben Yehuda
  • 1,568
  • 3
  • 12
  • 23
15
votes
1 answer

Please explain the parts of a PIVOT

I have read lots of blog posts. I have read the docs. I am usually fairly good at picking up new stuff but even though I keep reading, but I just don't understand the parts of a PIVOT in SQL Server (2008). Can someone please give it to me, nice…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
15
votes
3 answers

unique key based on 2 columns in SQl Server 2008?

is it posible to have SQL Server to have a unique key based on 2 columns? I can have duplicates in both columns but not at the same time: MfgID : CustNum 1 : Cust01 1 : Cust02 2 : Cust02 1 : Cust03 …
Slee
  • 27,498
  • 52
  • 145
  • 243