Create database fails with
I have a VM set up with SQL 2008 R2 SP2. It has twi instances running on the box.As it is my dev box both instances use the same service account and they both use the same moutn piont for dat and log...
View ArticlePartitioning with clustered index -
Hi.I created a partitioned table and now like to add a clustered index that includes the partitioning column (like it is noted as requirement for this). The index storage setting was set automatically...
View ArticleHow to use sp_addmessage precisly
I run scriptEXEC sys.sp_addmessage @msgnum = 60000 ,@severity = 16 ,@msgtext = N'Test error message № (%d), Module (%s), procedure (%s).' ,@lang = 'us_english', @replace= 'replace' ; GOEXEC...
View ArticleDifference between running a query from a script and a Stored Procedure
Hi All -We are working on a performance tuning project for fixing slow running queries. We have used enhanced indices, temporary tables, query tuning techniques and succeeded in fixing all those...
View Articledifferential backup and restore strategy and recovery option
Hi. I learned today that our recovery simple star db is being backed up full once weekly and somehow differentials are generated daily with the expectation that we can forward recover from those...
View ArticleCLR Stored Procedures Not Able To Return Tabular Resultsets From Remote Servers
I'm using a CLR stored procedure to return a resultset from a remote server. The problem is that the SQLContext.Pipe commands only work if the "context connection=true". How can I return a resultset...
View ArticlePartitioning Help
I have a table that has 700 million records in it. The data is below. I thought the SPEC_ID would be the best field to do it on but it is far from unique. There is a composite key of 3 fields. Spec_id,...
View ArticleErrors running a query in Management Studio 2008
Hello all,I've never done this before to please bare with me.I transferred a SQL Server Express DB to SQL Server 2008 using "Publish to provider" in VWD 2010. All completed successfully. Executing the...
View ArticlePerformance testing help
I am testing the performance of compression. I want to test the database before and after compression. What is the best way to do this? I need results I can show my boss. I captured a replay trace on...
View ArticleUPDATE on single column on a heap with 1.2B rows
Hi,I have a table with 1.2Billion rows of data. It's currently a heap and around 300GB in size (un-partitioned).I'm trying to do a blanket UPDATE on the entire table on one of the columns by using a...
View Articlesql server 2008 R2 64 bit on VM using high memory
Please help me to see why sql is using high memory on a clusterBest Regards, Arun http://whynotsql.blogspot.com/
View Articlehow to script schedule in sql server agent
Hi,How to script schedule in sql server 2005. When I click on script option in manage schedule, there is message ' there is no action to script'. So my question is how to create script for these...
View ArticleDB Reindex
Yesterday i did rebuild my index but while checking I came to know that there are still some fragmentation..what is the reason ?
View ArticleHow to select data as randomized for 5%
I have 90 thousand records contains with 10 variables. I want to select 5% records from 90 thousand like first 10 number of rows then 17, 25. How ? Can anyone help me to write procedure in SQL Server...
View Articleview created and returns data fine but View Design mode will not execute in...
This is a valid view that was created. We can query the view and it works fine. But if we select View Design and try to execute it receives an error about ambiguous columns. when using CAST. SQL...
View ArticleAdd IBM.Data.DB2.iSeries.Dll Assembly To SQL CLR Causes Errors
I'm writing CLR procs against DB2. Code works as a standalone. When I try to add the IBM.Data.DB2.iSeries.dll as an assembly to my SQL Server database, I get the following error below. I can't find the...
View ArticleTransfer the data from the remote MySQL Database to SQL Server Database
I have 2 environments:(A) Client environment: An application that reads and writes real-time data into MySQL Database sitting on Linux environment at client site, and (B) In house environment: MySQL...
View ArticleDoes Workers are bound to a sqlos scheduler?
we know that Workers are not bound to a physical CPU unless the sp_configure affinity mask configuration value has been properly established.As the sqlos scheduler are bound to a physical CPU , So...
View ArticleDB reindex
While Rebuilding Indexes,the Database remain Online or Offline ? If it goes Offline then how the users will access the data.Will they face a downtime or will be directed to secondary ?
View Articleexport query results to CSV
Hi, i am using SSMS 2008 R2. I am trying to export data with column delimuter as "|" (PIPE).There is one column with value 'korea,republic of' for some of the rows. When I try to export such a file in...
View Article