best way to run about 200,000 update statements?
Just throw them all in SSMS all at once? That doesn't seem like the best way especially since something may fail part way through. What would you suggest? Do it in code?
View ArticleWARNING: Could not obtain SQL Server Service information ...
I’m using Microsoft SQL Server 2014 Management Studio. I tries to connect with Start Powershell from the menu i get from some servers ”WARNING: Could not obtain SQL Server Service information. An...
View ArticleCan't connect to MSSQL-server via SQL Server Management Studio. Noone else...
Suddenly the mSSQL-server has stopped working, and the application doesn't have any connection to it.Also, I cant connect locally via SQL Server Management Studio.Any ideas on where to start?Have SQL...
View ArticleDROP vs TRUNCATE which is faster?
I work with datafiles containing more than 1 million records. Which would be faster DROP TABLE or TRUNCATE TABLE?
View Articlemultiple instances
we have 6 standalone instances sql server 2008r2. we have planned to move all the instances to cluster envrionment with mulitple instances. we builted active/passive node windows server 2012 and sql...
View ArticleSQL Server system setup
I want to connect 5 computers for a database system using sql server. I will make one of the computers as database server and the other 4 will be client machines. Which operating system should I use...
View Article127.0.0.0
what is local server?where do I use . or 127.0.0.0 connection?My SSMS is connecting to sqlexpress at the startup as in the picture. When i use . or 127.0.0. it does not connect anywhere.
View ArticleBCP Utility Comma
I have the following problem. I need to create a .csv file with SQL (with the bcp utility). I can create this .csv file and the following data is inserted: 1","ad","dsa","333","","2","0","","","",""" I...
View ArticleBest Practice for Distributing Databases to Customers
I did a little searching and was surprised to not find a best practice document for how to distribute Microsoft SQL Databases. With other database formats, it's common to distribute them as scripts. It...
View ArticleWhat is the equivalent RowVersion in SQL 2008 R2
What is the equivalent type to create a RowVersion in SQL 2008 R2 in an existing table so i could use this value to compare if a row has been changed since loading?Thanks
View ArticleHow to remove the OR clause in this query?
Hello Everyone,I have this query where i have a lot of joins and in the where clause there is a ISNULL and conditions based on OR clause.How to remove the use of the OR clause which may cause...
View Articlesql server agent not starting
I installed sql server 2008 r2 sp2 sql server agent is not allowing me to start it.I run SSCM right click agent but start,stop menus are disabled
View ArticleSQLException: Read timed out...
INFO | jvm 1 | 2014/08/24 14:03:41 | SEVERE: [EXCEPTION].[com.datasweep.plantops.datamgt.exception.DataMgtException]: PlantOps.DataMgt: [Error initializing site 112 with guid...
View Articlenew instance
I have a named instance of SQL Server as SQLExpress.I want to create a new instance. I create a new server registration as myservers but when using connection properties->connect to...
View ArticleHow do i get the approximate size of back up file required to save on disk...
hi i am face with problem that is i want to show the how much approximate space required for backup or .bak file to get backup using sql query because i want to show the required memory for backup file...
View ArticleRegarding Shrink log
Hello,I am using sql sever 2012 standard edition.This is production server, replication is configured.My log is 142 GB and the recovery model is simple.I am using the below query to shrink the log but...
View ArticleSELECT hangs despite Snapshot Isolation
- I'm trying to learn isolation levels. SET TRANSACTION ISOLATION LEVEL Read Snapshot I thought this would allow me to issue a SELECT on a dirty row (I thought it would show me the clean version...
View ArticleUpdating Views in sql server
Hi,I am trying to update a view but the result is 0 row(s) updatedALTER VIEW vw_AuthorizedStationeries AS SELECT StationeryID, CreatedOn, StationeryName FROM dbo.Stationeries WHERE Authorized = 1 GO...
View Article127.0.0.1
I installed sqlserver 2008 r2 developer and used default instance. I also have a SQLEXPRESS instance which worksI can connect to the default connection using . or (local) directly without using...
View ArticleWhich RAID level is recommended for tempdb?
Hello All, I came to know from many different SQL forums is that RAID level 0 & 10 are recommended, If have a choise of options RAID 0,1,5 & 10, Please advise which one i can best used for?...
View Article