CTE Error
I am attaching the SQL CTE Code with error message and DDL. Please review to see if you can help solve this error. First, I have never done anything with CTE before. Here is what I am trying to do:...
View Article"Nightly index rebuild job" and "don't shrink trans log file" advice
Are the two compatible?Our nightly re-index job can really inflate the log files sizes and one weekend we ran out of disk space on the server. This caused all other DBs on that server to fail because...
View ArticleUsing Ola's scripts..... (a bit off topic)
I just installed Ola's scripts. 1. On his site is this example: >>>>>>EXECUTE dbo.IndexOptimize @Databases = 'USER_DATABASES', @FragmentationLow = NULL, @FragmentationMedium =...
View ArticleProcedure or function 'udsp_insert_wkt' expects parameter '@point', which was...
Trying to execute a Altered procedure ALTER PROCEDURE udsp_insert_wkt (@point VARCHAR(MAX), @label VARCHAR(50)) ASDECLARE @multi_point GEOMETRYSET @multi_point =...
View Articlefetch current date records
Tables contains follow dataproductIDTypeColordate1Bikeblack2013-04-17 19:31:40.0972CarRed2013-05-17 19:31:40.6031CarBrown2013-04-17 19:31:40.6732CycleBlack2014-06-03 19:31:40.6731CarBrown2013-04-17...
View ArticleSQL - Complex join - Cascading conditions
Hi all,I've the following two tables - MasterData - Project_IDCategoryParent_IDP1ANULLP2ANULLP3ANULLP4AP1P5AP1P6ENULLP7AP2P8AP2P9AP3P10DP6Project_TotalsProject_IDTotalP1500P2600P6700P10800I need to...
View ArticleInserting bulk values into a table in sql server2008
Hi All, I am stuck up with inserting bulk values into a table,Pls help me out with this.I want to make a bulk insert into a table, Here i am getting two list of values as a parameter. Below is...
View ArticleHow Shrinking will increase the DB Fragmentation ?
Hi all, We are familiar with SHRINK command, but we know shrinking is bad.I need to know How shrinking will increase DB fragmentation ? I want to read in depth.thanksSelva
View Articlewhere are the jar files located in the server in which the MS SQL Server is...
Hello All,Please tell me the place where jar files are located in the system in which the MS SQL Server is installed.Please help me as early as possible.Thanks in advance.Thanks and Regards, Readers...
View ArticleI Cant Connect To Sql Server 2008
i want to create a server based database (mdf) in visual studio 2010 but this error happens :http://i.stack.imgur.com/gzmTp.pngAnd this error is in Microsoft Sql Server Configuration Manager when I...
View ArticleOracle Connector
Hi I have SQL Server 2008 R2 installed in my machine. Now I need to access tables in Oracle, is there anyway to do this without installing oracle in my machine. Appreciate your help.Royal Thomas
View ArticleObject reference not set to an instance of an object
hi, In my application getting above exception for first time submit. string strSPmain = "testinsert"; SqlCommand sqlCmd = new SqlCommand(); sqlCmd.Connection = sqlConn; sqlCmd.CommandType =...
View Articlemicrosoft access to sql
I have been using visual studio 2012 and created(database project) a project using database Microsoft access.I want to move it in to SQLserver 2012 how and where shall i start from. please help ?or...
View ArticleREturn results for multiple categories
I have a text box that users can type names in using an ajax auto complete extender a web service will bring back te matching names as you tyoe. However, it uses first name /last name only. I would...
View ArticlePostGres 9.3.4 kicks off a 4688 Process Start in Security Log every 30...
I'm using windows OS with elevated Security. I'm using PostGres 9.3.4. My Security Log is being spammed with 4688 messages from postgres.exe every 30 seconds. Is this normal? Is there some kind of...
View ArticleInsert row to table with computed primary key
I have a table with a computed primary key where I'm trying to insert a row but I'm getting this error:Msg 515, Level 16, State 2, Line 1Cannot insert the value NULL into column 'PriKey', table...
View ArticleThe time has come! Step up SQL Server Gurus! Your community needs heroes like...
TechNet Gurus... we salute you!You're awesome, and we know it!Your knowledge uploads and nifty info nuggets are our life blood at TechNet Wiki.Every awesome article that gets an award is just the...
View ArticleHow to get a notification if a job is running for too long
Hi everyone,I'm using a SQL Server 2k5. Recently I got an occasional job issue, that is, sometimes(usually once in a week), the job was stuck in running status and didn't finish. So I wonder if there...
View ArticleHow to get data from 1st June Each Year ?
Hi,We have to run a query so that it will return all records from 1/6 each year to today. The previous query is Select * from AAA where System_Date_Time > '2013-06-01 00:00:00.000' and we have to...
View ArticleExecute a procedure with a list of array in sql server 2008
HI all,I have a procedure which has a list of values passed as an array . How can i execute my procedure with array list? how to implement this?Please help me.Thanks in advanceDeepa
View Article