How to avoid an expensive SORT after a JOIN?
I have an query with an expensive SORT after the join: use tempdb drop table tempdb..t1 drop table tempdb..t2 drop table tempdb..t3 create table t1(c1 int, c2 int, c3 int, c4 int, c5 int) create table...
View ArticleInternal memory pressure
Hi,Can anyone share links/examples on how to identify and troubleshoot sql server internal memory pressure from SQL Server 2005 onwards.Thanks in Advance.
View ArticleSQL Logshipping alert from LSAlert_Secondary issue
Hello all,I am facing a strange issue with Log Shipping. Currently I have logshipping setup between primary and secondary database servers. The Backup job runs once every hour and I set the alert to...
View ArticleQUERY
HI TO ALL,1. WHAT IS SCHEMA? HOW WILL U CREATE & ALTER SCHEMA? WHAT IS DEFAULT SCHEMA?2. How you will move DTS packages & SSIS packages?3. Shall we use AWE in 64bit system?4. WHERE CAN I FIND...
View Articlemy application was slow on a server of particular database related.
himy application related to particular database was slow . how can i find the database stats related to particular application. what are the all other reasons for make the application...
View ArticleDefine table row variable and access to data?
hi,we used from this code: execsp_spaceused@objname='Entity_Import_Letter_Zone1'we want define a table row variable to save command result and change type of one field(DATA) from varchar to...
View ArticleSQL Buffer Pool Size Management
Hi allI had a thread that discussed SQL Server's plan cache and eviction policy....
View ArticleSQL 2005 Database Mail Failure
I have set up database mail in SQL 2005 and it works fine when I am sending mail from within Agent Jobs. Also works fine when I send a test email by right clicking database mail and using Send Test...
View ArticleInternal Query Processor Error on SQL 2008 Express x64 when accessing from...
Hi All. I've spent huge amount of time trying to solve subj error. Fortunately, I've found a workaround, but the problem itself still exists. I created stored procedure which updates one field in one...
View ArticleError Connecting to SQLSERVER:SQL as a drive for LocalDb
Please see below. There is some kind of communication problem when I try to access "(localdb)\Projects" using the ability to connect to SQL Server as a drive, and then ultimately later (e.g. $server =...
View ArticleLog filling with "Starting up database xxxxxxx"
I am running 2008 R2 on Windows Server 8 64 bit configured with 4096gig. sqlservr.exe is currently using 2.85 gig according to Task Manager.I recently restored 7 small vendor databases (2005) to our...
View ArticleA connection was successfully established with the server, but then an error...
when i try to connect Database engine using windows autentication i get following error.A connection was successfully established with the server, but then an error occurred during the login process....
View ArticleBulk Insert format file
Hi,I am trying to insert a sectional CSV file into database using a format file. my CSV file looks like:Section::Test Column1,Column2 1,2 Section::Test2 Sec2Col1,Sec2Col2,sec3col3,sec4col4,sec5col5...
View ArticleTest Database Configuration
Firstly, I understand this is probably not the most appropriate forum for this question. I have tried a couple other places with no luck, and you guys are quick, so maybe I'll get an answer here. If...
View ArticleBulk Insert microsoft bug
Hi,I have an issue with bulk insert where it picks wrong rows for insertion from a CSV file with sections in it.my file looks likeSection::Test Column1,Column2 1,2 Section::Test2...
View Articlecustom query between Merge syntax conditions???
Can we write our query inside the merge syntax...Ex: Merge table as TUsing Table as Son (T.ID=S.ID)WHEN NOT MATCHED BY TARGETTHEN{insert query}-- Here, after inserting records i want to delete them...
View ArticleMSDB AND MODELDB
HI TO ALL,1. WHEN MSDB & MODEL DB CRASHED BEFORE TAKING BACKUP WHAT ACTION SHOULD BE TAKEN IN PRODUCTION LEVEL?2. HOW MANY DATA FILES AND LOG FILES CAN BE CREATED FOR 1 SERVER / 1 DATABASE IN...
View ArticleBulk Insert row terminator
HiI am trying to insert a .CSV file with sectional division of data in it. i am unable to insert the row, which i want to pick and insert as the row numbers are not taken as in the .CSV filePlease...
View Article