By default there is no function in SQL Server that can split comma separated string into Table (Rows). Following t-sql is custom made function that can split csv string into table. CREATE FUNCTION dbo.SplitCSV (@CSVString VARCHAR(8000), @Delimiter CHAR(1)) RETURNS @temptable TABLE (items VARCHAR(8000)) AS BEGIN DECLARE @pos INT; DECLARE @slice VARCHAR(8000); SELECT @pos = 1; [...]
Split CSV String into Table in SQL Server
April 5, 2010
Data Mining in SQL Server 2008
March 30, 2010
Microsoft SQL Server 2008 empowers informed decisions with predictive analysis through intuitive data mining ─ seamlessly integrated within the Microsoft Business Intelligence platform and extensible into business applications. Top New Features Test multiple data mining models simultaneously with statistical scores of error and accuracy and confirm their stability with cross validation. Build multiple, incompatible mining [...]
Generate series using T-SQL
February 26, 2010
It is common developer requirement to get missing records from series. For that they generate temporary table and insert complete list of numbers and then find missing numbers using LEFT JOIN. In SQL Server 2005 and 2008, new keyword “WITH” introduced that works with SELECT, INSERT and UPDATE statement that use to create temporary resultset [...]
First Service Pack of SQL Server 2008
May 5, 2009
SQL Server 2008 First Service Pack (SP1) is now available. Service Pack 1 (SP1) focused on essential updates only, primarily roll-ups of cumulative updates 1 to 3 and fixes to issues reported through the SQL Server community. SP1 eases deployment and management of Service Packs by introducing Slipstream, Service Pack Uninstall, and Report Builder 2.0 [...]
Posted in
content rss
Recent Comments