cast varchar conatining & to XML
HI,I facing problem in using the XML embeded inside XML.from C# code am escaping the special characters and passing to SP as shown below.NOT able to cast the varchar as XML for below input:DECLARE @XML...
View ArticleSql: why delete top (1) from table does not work in store procedure?
Inside store procedure, we try to delete top row from a table @TableDeclare @Temp Table (ItemNumber int Primary key)Insert into @Temp select 1UnionSelect 2Delete Top (1) From @Tempselect * from @Tempwe...
View ArticleUDP ports 137/138 has to be allowed for sql server remote communication?
Can I use the host file to resolve instead of using NetBIOS?I am not using any file sharing or replication service, just using sql remote communication from server 1 to server 2(SELECT, insert , update...
View Articlecan i change Data & log file path for a single/specific database in sql server?
Is it possible to change data & log file path for single or individual database and keeping other databases data n log file paths to default location only.
View ArticleSingle script doesnt run, if I separate it, it runs
Hello everyone! I have a script that when I run it in parts, it works perfectly, but if I compile it into one, it wont run, keep saying that the column that was added in the script before it doesnt...
View ArticleService Pack Upgradation
Hi,While upgrading SP i am getting below errror.Please helpERROR: sql server setup has encountered the following error:The NT service 'MsDtsServer100 could not started.Error code 0X84B20001
View ArticleLike operator ignores latin small letter a with dot above [ȧ] in select query.
Hi,below query returns result in both the casesActual DatancharTitle ----------- JȧSØÑ when running query...
View ArticleSQL Server 2008 R2 VM only seeing 4 CPU's
Hi AllI have SQL Server 2008 R2 Server / CAL SQL licensingI have a Server 2008 / SQL Server 2008 R2 VM Guest Host is Hyper-V 2012 with 2x 6 core CPU's with HyperThreading, so 24 logical procsI have...
View ArticleWhy I cannot see the scalar function result?
Hi thereI have the following function:ALTER FUNCTION [dbo].[getVacQueuePriority]( @deadLine DateTime, @reqID integer ) RETURNS...
View ArticleLinked Server from SQL Server 2012 to SAS
Has anyone ever successfully setup a linked server to SAS? If so, what were the steps that you followed, or do you have any documentation on this? We have a base SAS 9.1 environment. I am trying to...
View ArticleWorking mode SqlServer
hello maintains sqlserver database in RAM, and will synchronize with disc; oracle as does every 10 seconds and 1 second approximately
View ArticleDatabase file size in SQL Server 2008 R2
What's the database file size limitation of SQL Server 2008 R2 Enterprise Edition and Professional Edition?Thank.
View Articlecant start sql-server cervice
hii installed sql-server 2012, i got some problem in installation....i try again and now its work.MSSQLSERVER - not work , so i make hem disableMSSQLSERVER2 - work excellentif i open the service...
View Articlequery on empty data and null dat
i have two tables dept (parent table){<DEPTNO (PK),DNAME,LOC>}; emp table (child table){EMPNO (PK),ENAME......MGR_ID(REFERENCE KEY WITH EMPNO).....DEPTNO}; in child table it has <MGR_id>...
View ArticleConnect to Server: Cannot connect to (loca)
After installing SQL server 2008R2, I go to MSSMS and find out there are only Integration Services available with Running packages and Stored Packages are there.When the, "Connect to Server" dialog...
View Articlereferencing a table of different database
Hi all:I have two databases, principal and cuentas in two serversIn a sp of principal I reference a table in cuentas I docuentas.dbo.paisesIn my local server it works fine, but not in my hosting. I...
View ArticleMaintainance plans
Hi,How to migrate the maintainance plans from one server to other server?
View ArticleLogfile
Hi,Difference in logfile when recovery model full and bulklogged?i.e For For full recovery model how logfile works and for bulklogged recovery model how logfile works?
View Article