Is it correct way to write the following trigger?
USE [dbo] GO /****** Object: Trigger [dbo].[month_u2] Script Date: 02/01/2014 13:18:59 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER TRIGGER [dbo].[month_u2] ON...
View ArticleClustered index on Client_ID+ORderNO+OrdersubNo, If i create 3 noncluster...
Dear All. We had Teradata 4700 SMP. We have moved data from TD to MS_SQL SERVER 2003. records are 19.65 Millions. table is >> Order_DtlColumns are:-Client_ID varchar 10Order_ID varchar...
View ArticleBackup Job for User db's is failing
Backup job for User databases is failing.I found below errorsView job historyStep 0:The job failed. The job was invoked by schedule 4(DBMP_User). The last step to run was step 1(subplan)Step 1:Message:...
View Articlecopy diagram to clipboard for sql server 2012 the row did not appear when...
hello,i've been trying to create database diagram on my database on sql server 2012 platform. i can create the diagram, but when copy it to clipboard and try to paste it on paint, only the tables name...
View ArticleDB snapshot updates failing during update - SQL Server 2005 SP4 EE 64bit-...
We're able to create a snapshot of a 1.4TB database by using the following SQL commands:use mastergoCREATE DATABASE tws_prod_snapshot ON( NAME = tws_prod, FILENAME = 'E:\MSSQL\DATA\tws_prod_ss_file.ss'...
View ArticleBooks or articles for management/executives
This is not necessarily MSSQL specific, but anything SQL Server specific probably wouldn't hurt.Our company is highly dependent upon millions of customers and billions of their transactions. We have...
View ArticleMultiple SQL Server Program Files
I am very inexperienced using SQL Server and having a problem installing SQL Server Management Studio. I think a big part of my problem is the number of SQL Server files on my computer. There are 11...
View ArticleConverting IBM ASC (Viewpoint) to SQL Server 2005
Is there any other way besides manually changing and moving ASC Sequels. I was thinking there was a way that will do the translation without having to manually do it. Also if there is a way will it...
View ArticlePlease setup information of sql server database on web server
I have create database name and userid and password and now i want to create tables on sql server through enterprise manager. I have problem to connect registration.
View ArticleTruncate
HiHow does truncate works in logshipping, mirroring, replication when we use truncate in primary,principle,publisher databases. How does it effect in secondary,mirror, subscriber databases.
View ArticleShrink
Hi,Can any one explain shrinking problems in logshipping, mirroring, replication when we shrink the primary databases or secondary. Explain where we can shrink and where we cannot and why.
View ArticleHow to find table name using primary key name in sql?
I have names of primary keys in a variable and I need to find the table to which they belong. The db has many table so linear search is not an option.
View Articleremote connection - error 10053,10054
On my computer (WinXP En Prof SP2) I have installed SQL Express 2005 with instance name "SQL2005". Mixed Mode.I allowed Remote connection to this DB server, enabling TCP/IP protocol on port 1433.Also...
View Articlesql 2008 Issue restoring transaction logs....
** Update: I performed the same steps on the corresponding Dev and things worked as expected. Only our prod environment uses SnapManager for Sql (NetApp) and I'm beginning to suspect that may be...
View ArticleRemoving spaces in column names
Hi I have imported a number of tables from a legacy db. The column names in tables have spaces in them. Is there a script I can run to remove spaces from column names in all tables? Thanks Regards
View ArticleLIKE '[!agm]%'
Hi,I have created a Customer table with Country column and inserted 4 rows with country names (Germany, Mexico and Angola)When I execute the following query SELECT...
View Articlemay i ask why there is an error in this query "ALTER TABLE [dbo].[test] ALTER...
hi i'd like to ask where the following query is wrong:ALTER TABLE [dbo].[test] ALTER COLUMN [two] nvarchar(2) NOT NULL, CHECK (len([two])=2) why there is an error"Incorrect syntax near the keyword...
View ArticleSQL Server 2008 R2 Setup has stopped working
Hi, I have a server with Windows Server 2008 R2 Standard Edition English and when I try to installSQL Server 2008 R2 Standard Spanish the installer give to me:"SQL Server 2008 R2 Setup has stopped...
View ArticleSQL Server 2005 Express
I downloaded and installed the above without and incidents.I then went back to the download site to download and install the management tools (Part 2 of the suggested downloads) and received this...
View ArticleInsert string values into integer column
hi,could any one please tell me that is it possible to insert string values into integer column in sql datatable.Thanks,
View Article