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
2 answers

Workaround for calling table-valued function remotely in SQL Server has even more issues

I had a query with a set of parameters that needed to be run multiple times with different parameters, so I wrapped it in a table-valued function. That table valued function needed called from a remote server. Unfortunately, the call fails on the…
Triynko
  • 18,766
  • 21
  • 107
  • 173
15
votes
4 answers

SQL-Server: Incorrect syntax near the keyword 'with'. If this statement is a common table expression

create table #temp ( pName Varchar(20), DateBegin DateTime, DateEnd DateTime ) Insert Into #temp(pName, DateBegin, DateEnd) Values('Player1', '01/04/2012', '01/05/2012') Insert Into #temp(pName, DateBegin, DateEnd) Values('Player2',…
Nilish
  • 1,066
  • 3
  • 12
  • 26
15
votes
6 answers

Hide Column if all Rows are empty

I have a a Tablix in SSRS 2008 and I have a Column that sometimes has data and sometimes doesn't. I want to hide the column if NO rows have data. So this would hide Column 2: Column 1 Column 2 Column 3 Column 4 1 …
user482375
15
votes
2 answers

The specified cast from a materialized 'System.Guid' type to the 'System.Int32' type is not valid

The specified cast from a materialized 'System.Guid' type to the 'System.Int32' type is not valid. We have several WCF services that have concurrency mode of Multiple and InstanceContextMode of Single. Our architecture focuses on a loosely coupled…
15
votes
4 answers

How to export data from SQL Server 2008.2010 in DML (SQL script)?

Is there a tool or special query to do that. I'm not an database administrator.
Bastien Vandamme
  • 17,659
  • 30
  • 118
  • 200
15
votes
3 answers

SQL Server: Checking the datatype of a column

How to check if a column in a table has a specific datatype? For example, how to check if a column in SQL Server table is of datatype char(11)?
user1274655
  • 151
  • 1
  • 4
  • 9
15
votes
2 answers

Is it possible to select a specific ORDER BY in SQL Server 2008?

I have a table that holds days and times, the day column, can have any of the seven days entered into it, and they are set to data type varchar. As this table holds booking times for a client, I want to select all days from the table where the id…
deucalion0
  • 2,422
  • 9
  • 55
  • 99
15
votes
7 answers

Encoding SQL_Latin1_General_CP1_CI_AS into UTF-8

I'm generating a XML file with PHP using DomDocument and I need to handle asian characters. I'm pulling data from the MSSQL2008 server using the pdo_mssql driver and I apply utf8_encode() on the XML attribute values. Everything works fine as long as…
SGr
  • 853
  • 2
  • 9
  • 15
15
votes
3 answers

Update ANSI_NULLS option in an existing table

In our database there is a table which is created with ANSI_NULLS OFF. Now we have created a view using this table. And we want to add a clustered index for this view. While creating the clustered index it is showing an error like can't create an…
Mahesh KP
  • 6,248
  • 13
  • 50
  • 71
14
votes
5 answers

is not a recognized built-in function name

I am getting this error: Msg 195, Level 15, State 10, Line 1 'fnParseName' is not a recognized built-in function name. On this query: SELECT fnParseName(DOCTORFIRSTNAME+' ' +DOCTORLASTNAME) FROM [PracticeandPhysician] Here's the code for…
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
14
votes
3 answers

SqlCommand.Dispose() before SqlTransaction.Commit()?

would it work to dispose a command assigned to a transaction before the transaction is committed? I tested the following code myself, and it seems to have worked fine, but this is a rather small example, so I'm looking for confirmation if someone…
David S.
  • 5,965
  • 2
  • 40
  • 77
14
votes
1 answer

How can i change or update password in asp.net membership via sql server

I have to change a password to something else, I have got all the details like userid, username, encrypted password, password format. How can I change the password via SQL in asp.net membership?
Mr A
  • 6,448
  • 25
  • 83
  • 137
14
votes
1 answer

How to implement polymorphic associations in an existing database

Polymorphic assiociations (PA's) is quite a mouthful for a relatively simple database requirement: let various tables have child records in one shared table. The classic example is a single table with comment records that apply to different not…
14
votes
1 answer

How do I clean SqlDependency from SQL Server memory?

How do I clean up the SQL Server to get rid of expired SqlDependency objects? After I receive the event from the SqlDepedency object, I need to create a new one before I can get a new event. However, the memory use of the SQL Server process climbs…
JeremyK
  • 1,075
  • 1
  • 22
  • 45
14
votes
1 answer

SQL Server 2008 Page/Row Compression Thoughts

Have other people here played with SQL Server 2008 Compression at either the page or the row level on their datasets much? What have your impressions been on performance both speed and disk-space wise? Has anyone ever seen compression demonstrably…
Bob Albright
  • 2,242
  • 2
  • 25
  • 32